Question: Write a program in C that asks the user to enter an integer. The program should then read in n integers and save them in

Write a program in C that asks the user to enter an integer. The program should then read in n integers and save them in an array. The program should then print the array to the screen.Questions:
a) Write a program in C++ that asks the user to enter three different types of data: an
integer, a double, a float and a character. Your program should store each input in
the correct type of variable and then print these values on the screen, clearly
labeling each one.
b) Write a program in C++ to calculate the grade of a student based on the percentage
entered by the user. The grading system follows these rules:
90 and above : Grade A
80 to 89 : Grade B
70 to 79 : Grade C
60 to 69 : Grade D
Below 60 : Grade F
The program should ask the user to enter a percentage and then display the appropriate
grade.
Sample outputs:
Enter an integer: 5
Enter a double: 3.14
Enter a character: A
You entered:
Integer: 5
Double: 3.14
Character: A
Enter your percentage: 85
Your grade is B.
 Write a program in C that asks the user to enter

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!