Write a program the meets the conditions as described below. You will need to di
ID: 3537339 • Letter: W
Question
Write a program the meets the conditions as described below. You will need to display a menu of four options that the user can choose from. Make sure that you code includes you name, class, section, date and a brief description as a comment header. Also be sure that your code includes comments. The menu portion should be implemented using a Switch statement. You may use conditional statements for each individual component of the program. Be sure that you code is properly formatted and that all output is clear, descriptive and neat.
User Option 1:
For option one, ask the user to input the following information for a hypothetical student: First Name, Last Name, GPA, Major and Graduation year. Next use printf, to display the following information based on the order below for parts a, b and c. The words below represent placeholders for possible variable names. You will need to display the actual data, based on the input data in the specified order below.
a. LastName FirstName, GPA ,GPA ,GPA , Graduation year ,Major, Major (There should be 10 spaces between each variable when displayed. Show the first GPA value with 2 decimal places, the 2nd with 3 decimal places, and the 3rd gpa value with 5 decimal places)
b. GPA, GPA, Major, Graduation year ,Graduation Year (left aligned, with 15 spaces between each variable when displayed)
c. FirstName ,GPA ,Major ,Graduation Year (with 15 spaces between each variable when displayed)
Explanation / Answer
Solving it. Need sometime.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.