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 to calculate the grade of a student based on the percentage
entered by the user. The grading system follows these rules:
and above : Grade A
to : Grade B
to : Grade C
to : Grade D
Below : Grade F
The program should ask the user to enter a percentage and then display the appropriate
grade.
Sample outputs:
Enter an integer:
Enter a double:
Enter a character: A
You entered:
Integer:
Double:
Character: A
Enter your percentage:
Your grade is B
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
