Grade Book
A teacher has five students who have taken four tests. The teacher uses the following grading scale to assign a letter grade to a student, based on the average of his or her four test scores:
Test Score | Letter Grade |
90-100 | A |
80-89 | B |
70-79 | C |
60-69 | D |
0-59 | F |
Write a
The program should allow the user to enter each student’s name and his or her four test scores. It should then calculate and display each student’s average test score, and a letter grade based on the average.
Input Validation: Do not accept test scores less than 0 or greater than 100.
Want to see the full answer?
Check out a sample textbook solutionChapter 7 Solutions
Starting Out with C++ from Control Structures to Objects (9th Edition)
Additional Engineering Textbook Solutions
Differential Equations: Computing and Modeling (5th Edition), Edwards, Penney & Calvis
Database Concepts (7th Edition)
Programming in C
Starting out with Visual C# (4th Edition)
Java: An Introduction to Problem Solving and Programming (7th Edition)
Computer Systems: A Programmer's Perspective (3rd Edition)
- Lottery Number Generator Problem Design a Flowchart that generates a 7-digit lottery number. The program should have an integer array with 7 elements. Write a loop that steps through the array, randomly generating a number in the range of 0 through 9 for each element. Then, write another loop that displays the contents of the array.arrow_forwardProgramming language is C#arrow_forwardC# language MORSE CODE CONVERTER Design a program that asks the user to enter a string and thenconverts that string to Morse code. Morse code is a code whereeach letter of the English alphabet, each digit, and variouspunctuation characters are represented by a series of dots anddashes. Table 8-9 shows part of the code.arrow_forward
- Programming language is: C#arrow_forwardDesign pseudo code for a program that will permit a user to store exactly seven numbers in an array. Create an array big enough to hold the numbers and store each number in the array as it's entered be sure to prompt the user for each number before it is entered you do not need to initialize the array. Hints: be sure to use a name constant when you declare the array (the number inside the bracket should be a named constant that you declare before the array declaration.) Use a for loop or while loop if you like to get each number from the user. If you are riding on a tablet please use legible handwriting (I was unable to read the last answer, and had to take a zero on it) Thank you kindly.arrow_forwardYou can't transfer data from one array to another with the operator in a single sentence.arrow_forward
- In visual basic Create an array that will hold 10 integer values.arrow_forwardLearning Objectives: Python Programming Use loop over a stringReplace characters within a stringFunction (declaration and call)Write code in modular formInstructions Create a function only_chars that takes the line of text and returns the text line excluding the spaces, periods, exclamation points, or commas. Create a program that will read the input line, use the function, and then print the line, without spaces, periods, exclamation marks, or commas and their length. Ex: If the input is: Listen, Mr. Jones, calm down. the output is: ListenMrJonescalmdown21Do not forget if __name__ == "__main__" section!arrow_forwardWrite a Visual Basic statement that sorts the strStates array in ascending order.arrow_forward
- C# language MORSE CODE CONVERTERDesign a program that asks the user to enter a string and thenconverts that string to Morse code. Morse code is a code whereeach letter of the English alphabet, each digit, and variouspunctuation characters are represented by a series of dots anddashes. Table 8-9 shows part of the code. Needs to be two labels, two text boxes and click button for conversionarrow_forwardPseudocode or flowchart a programme that enables 10 numbers. -1 pauses the input loop. The array does not contain the quit(sentinel) flag value -1. The programme then displays the count and numeric average of the numbers entered (excluding the -1). The programme then displays each value and its difference from the average.arrow_forwardTrue or False You can store a mixture of data types in an array.arrow_forward
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning