Grade Calculator Application Name: FLastnameChartingI6Descri…
Grade Calculator Application Name: FLastnameChartingI6Description: Write a C program that calculates a student’s final grade based on their scores in multiple subjects. The program should use the specified functions for displaying information and performing calculations. Requirements: User Input: Ask the user to enter their name. Ask the user to enter the number of subjects (between 1 and 5). For each subject, ask the user to enter their score (0-100). Validate user input: If the user enters an invalid option show an error message and allow them to reenter their choice. If the user enters a grade below 0 or a grade above 100 show an error message and allow them to reenter their choice. Function Implementation: You will call all these functions from main Use a void function with no parameters passed to display a welcome message and explain how the program works. Use a value returning function that calculates the average score based on the entered subject scores. Use another value returning function that is passed the average to determine the final grade based on the average score using the following scale: A —- 90-100 B —- 80-89 C —- 70-79 D —- 60-69 F —- Below 60 Use a void function to display the final student report with their name, average score, and final grade. Each final grade should have an appropriate message based on the average. Display the generated output in a well-formatted way. Sample Input Enter your name: John DoeEnter the number of subjects (1-5): 3Enter score for Subject 1: 95Enter score for Subject 2: 88Enter score for Subject 3: 92 Sample Output Welcome to the Student Grade Calculator!—————————————-Student Name: John DoeAverage Score: 91.67Final Grade: ACongratulations! You did an excellent job!
Read DetailsNumber Series Generator Application Name: FLastnameChartingI…
Number Series Generator Application Name: FLastnameChartingI5Description: Write a C program that takes user input and allows the user to generate a series of numbers from 1 to 100 based on their choice. Requirements: Display Menu: 1 – Even Numbers 2 – Odd Numbers 3 – Multiples of 5 Prompt the user to enter their choice (1,2, or 3) Validate user input: If the user enters an invalid option show an error message and allow them to reenter their choice. Loop Implementation: Use a for loop to display the even numbers. Use a while loop to display the odd numbers. Use a do-while loop to display the multiples of 5. You can use either a switch or if/else construct to use the different loops based on entry. Display the generated series in a well-formatted way. Sample Input/Output Menu:1 – Even Numbers2 – Odd Numbers3 – Multiples of 5Enter your choice: 1 Example 1: User Chooses Even Numbers (For Loop) Even Numbers using for loop:2 4 6 8 10 12 14 16 18 20 Example 2: User Chooses Odd Numbers (While Loop) Odd Numbers using while loop:1 3 5 7 9 11 13 15 17 19 Example 3: User Chooses Multiples of 5 (Do-While Loop) Multiples of 5 using do-while loop:5 10 15 20 25 30 35 40 45 50 Example 4: User Enters an Invalid Option Menu:1 – Even Numbers2 – Odd Numbers3 – Multiples of 5Enter your choice: 4 Invalid choice! Please enter 1, 2, or 3.
Read Details