program编程设计讲解、辅导C/C++,Java,CS语言程序
- 首页 >> Matlab编程 Project #1
1.Using form 1, create a program that will allow the user to enter 3 test scores and output the scores entered, plus output the SUM and the AVERAGE of the three test scores. Use the following test data 100, 90 and 80. DO NOT Accept characters on any of the three text box objects
Output the data using a MessageBox object, ensure to use separate lines. 1st line for the scores entered, 2nd line for the SUM and a 3rd line for Average of the scores.
Format of the output on the MessageBox as shown below:
Score 1 = 100, Score 2 = 90, Score 3 = 80
SUM = 270
Average = 90
Rubrics:
Measure Worth
Form design (neatness) 8.3%
Message Box Output with calculations in correct format 8.3%
Percentage format 8.3%
Character restrictions 8.3%
Total: 33.33%
#1 print screen your message box below here
#2 copy and paste your code below here
Project #2
2.Create a 2nd form and complete the following: To create a perfect evening for your group, the Broadway Ticket Discount Program offers a discount based on group size for excellent orchestra seating. The following table specifies the cost per person. Write a program using If statements for the total cost of the tickets. DO NOT accept negative values or any group size over 12. Be sure to have an output for the restriction.
Example: If the group size is 1-8 then the ticket cost will be $249 per person >> 8 * $249.00
Display the total in Currency Format.
The student will design the form and use ANY objects he/she desires.
Rubrics:
Measure Worth
Form design (neatness) 8.3%
Number range restrictions 8.3%
Currency format 8.3%
Calculations 8.3%
Total: 33.33%
#3 print screen for group size 1-8 below here
#4 print screen the group size 9-12 below here
#5 print screen if the user enters a negative number below here
#6 copy and paste your code below here
Project #3
3.Create a 3rd form and complete the following: A software company offers their customers the option to lease the software yearly or purchase it for a one-time fee. Also, they offer numerous add-on options such as technical support, training, and cloud backup services. Your task is to write a program that offers the user these types of options. Use radio buttons and check boxes. The test data is shown below:
Design the following app as shown below: Notice that we have two Group Boxes that houses two radio buttons and 3 check boxes. Be sure to rename the Group Boxes as shown (Licensing Options) & (Optional Features). Create two labels and two text boxes that are set to enabled = false. Be sure to format the outputs in Currency Format (Not shown below).
Running the program: for the 1st output choose the 1st Radio Button (Yearly License) and the 1st and 3rd checkboxes then print screen under the 1st output (see below). Then choose the 2nd Radio Button (One-Time Purchase) and the ALL three Check Boxes and print screen under the 2nd output (see below).
Rubrics:
Measure Worth
Form design (neatness) 8.3%
1st output (calculation) 8.3%
2nd output (calculation) 8.3%
Clear and Close button 8.3%
Total: 33.33%
#7 print screen the 1st output below here
#8 print screen the 2nd output below here
#9 copy and paste the code below here
Submit this document to module 4 Quiz
1.Using form 1, create a program that will allow the user to enter 3 test scores and output the scores entered, plus output the SUM and the AVERAGE of the three test scores. Use the following test data 100, 90 and 80. DO NOT Accept characters on any of the three text box objects
Output the data using a MessageBox object, ensure to use separate lines. 1st line for the scores entered, 2nd line for the SUM and a 3rd line for Average of the scores.
Format of the output on the MessageBox as shown below:
Score 1 = 100, Score 2 = 90, Score 3 = 80
SUM = 270
Average = 90
Rubrics:
Measure Worth
Form design (neatness) 8.3%
Message Box Output with calculations in correct format 8.3%
Percentage format 8.3%
Character restrictions 8.3%
Total: 33.33%
#1 print screen your message box below here
#2 copy and paste your code below here
Project #2
2.Create a 2nd form and complete the following: To create a perfect evening for your group, the Broadway Ticket Discount Program offers a discount based on group size for excellent orchestra seating. The following table specifies the cost per person. Write a program using If statements for the total cost of the tickets. DO NOT accept negative values or any group size over 12. Be sure to have an output for the restriction.
Example: If the group size is 1-8 then the ticket cost will be $249 per person >> 8 * $249.00
Display the total in Currency Format.
The student will design the form and use ANY objects he/she desires.
Rubrics:
Measure Worth
Form design (neatness) 8.3%
Number range restrictions 8.3%
Currency format 8.3%
Calculations 8.3%
Total: 33.33%
#3 print screen for group size 1-8 below here
#4 print screen the group size 9-12 below here
#5 print screen if the user enters a negative number below here
#6 copy and paste your code below here
Project #3
3.Create a 3rd form and complete the following: A software company offers their customers the option to lease the software yearly or purchase it for a one-time fee. Also, they offer numerous add-on options such as technical support, training, and cloud backup services. Your task is to write a program that offers the user these types of options. Use radio buttons and check boxes. The test data is shown below:
Design the following app as shown below: Notice that we have two Group Boxes that houses two radio buttons and 3 check boxes. Be sure to rename the Group Boxes as shown (Licensing Options) & (Optional Features). Create two labels and two text boxes that are set to enabled = false. Be sure to format the outputs in Currency Format (Not shown below).
Running the program: for the 1st output choose the 1st Radio Button (Yearly License) and the 1st and 3rd checkboxes then print screen under the 1st output (see below). Then choose the 2nd Radio Button (One-Time Purchase) and the ALL three Check Boxes and print screen under the 2nd output (see below).
Rubrics:
Measure Worth
Form design (neatness) 8.3%
1st output (calculation) 8.3%
2nd output (calculation) 8.3%
Clear and Close button 8.3%
Total: 33.33%
#7 print screen the 1st output below here
#8 print screen the 2nd output below here
#9 copy and paste the code below here
Submit this document to module 4 Quiz