Write a program to display the following three prompts: Enter a Student\'s Name
ID: 3647180 • Letter: W
Question
Write a program to display the following three prompts: Enter a Student's Name : Enter Student's Test Score : Enter student's marital status: Have your program to input from keyboard and store a student's Name in the variable NAME (char - string data type), test score in the variable TestScore (int data type), and the marital status in the variable MaritalStatus (char - single character data type). Use while loop to run the above program, and test score of -1 to end the loop. After score input inside loop, use one switch statement to find the letter grade of a student based on the conditions given below. (Remember that in a switch statement you cannot use relational operators and range of values. Think of modulus operation on your test score and use the result to find the letter grade) After marital status input inside loop, use second switch statement to find the marital status of the student using following valid codes: _____________________________ At the end inside loop the program should display the following each time the program is executed. (Remember -1 for test score stops the execution of loop) The Name of the student: The marital status of the student: The Test Score of the student: The letter grade of the student:Explanation / Answer
please upload a low resolution pic...the image is not being loaded
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.