An instructor gives three tests to a class of 10 students. The grades on these tests are integers in the range from 0 to 100. The instructor has asked you to develop an app to keep track of each student's average and the Letter Grade. Create a Function to Calculate the Letter Grade. Form1 Form1 Student Test 1 Test 2 Test3 Student #1 90 80 80 Enter Grades Student #2 70 90 89 Student #3 90 78 50 Student #4 90 50 30 Student #5 40 40 50 Student #6 50 50 50 Display Grades Student #7 50 50 50 Student #8 50 50 50 Student #9 50 50 50 Student #10 45 4 56 Letter Grade Student # Test 1 Test 2 Test3 Grade Avg Student #1 90 80 80 83.33 B Enter Grades Student #2 70 90 89 83.00 Student #3 90 78 50 72.67 Student #4 90 50 30 56.67 Student #5 40 40 50 43.33 Student #6 50 50 50 50.00 Display Grades Student #7 50 50 50 50.00 Student #8 50 50 50 50.00 Student #9 50 50 50 50.00 Student #10 45 4 56 35.00 BCFFFFFFF
Added by Laura C.
Close
Step 1
First, we need to create a form with the necessary controls. In this case, we need a label for each student, three textboxes for each test grade, and a button to calculate and display the grades. Show more…
Show all steps
Your feedback will help us improve your experience
Neel Patel and 72 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Supreeta N.
Write a program to read a list of exam scores given as integer percentages in the range 0 to 100. Display the total number of grades and the number of grades in each letter-grade category as follows: 90 to 100 is an A, 80 to 89 is a B, 70 to 79 is a C, 60 to 69 is a D, and 0 to 59 is an F. Use a negative score as a sentinel value to indicate the end of the input. (The negative value is used only to end the loop, so do not use it in the calculations.) For example, if the input is: 98 87 86 85 85 78 72 70 66 63 50 -1 The output would be: Total number of grades = 14 Number of A's = 1 Number of B's = 4 Number of C's = 6 Number of D's = 2 Number of F's = 1
Cora M.
Write a program using Visual Studio C#. The average cost of a college textbook is $125. There is a premium of 20% on the hardcover text and a discount of 5% on sales of more than 4 textbooks. Write a program to prompt the user for the appropriate inputs and compute and display the before-tax cost of the textbooks. Sample calculation: Price of 10 hardcover textbooks = 10 * 125 + premium - discount Price = 1250 + 20% of 1250 - 5% of 1250 Price = $1437.50 Price of 8 softcover textbooks = 8 * 125 - discount Price = 1000 - 5% of 1000 Price = $950 Price of 2 softcover textbooks = 2 * 125 Price = $250
Shelayah R.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD