Question
Write a program that takes numeric grade from user and converts it into letter grade based on the numerical range. The following numerical range applies
Write a program that takes numeric grade from user and converts it into letter grade based on the numerical range. The following numerical range applies to each letter grade.Numerical RangeLetter Grade100-90A 89-80B 79-70C 69-65D 64-0FUse the below program template and complete each step. The program is created by completing all steps hence, do not skip any steps.Programming Shell TemplateInstructions1. Using the Xendesktop, open Visual Studio 2015. Create a new project and add a new .c file to the project. Type the programming shell template as stated up above and continue with the following steps below. Be sure to include comments throughout your program for readability purposes.
(Function Prototype): A function has definition, prototype, and calls associated with it. If you define a function below the main function, you must always add a function prototype above the main function. If you define the function above the main function, you are not required to include prototype. char calculateLetterGrade(int );(Housekeeping): In the main( ) function, declare the following variables in your program using appropriate data type. When selecting a data type keep in mind the type of value you want to store, i.e., int, float, character. Also, be sure to use conventional naming standards for all variable declarations.numberical_grade //variable used to store numerical gradeletter_grade // variable used to store letter grade (Hint): You can skip letter_grade variable if you call the function directly inside a printf() statement to display the letter grade.3. (Display Prompt): Write a printf() statement to ask user for the following message.Enter a number grade for the course:4. (Input): Add a scanf() statement to store user input for the number grade in the variable numerical_grade.5. (Function Definition): Outside of the main( ) function, create this function to find out letter grade for a numerical grade. Make sure this function is not declared within the main function. Declare a variable (outputGrade) local to this function to store output value of letter grade. char calculateLetterGrade(int numGrade){char outputGrade;}6. (Decision-making structure): In order to find out the correct letter grade for the numerical grade, define a decision-making structure such as IF...ELSE to include each range of numerical grades.To begin with, your decision-making structure will look like this if ( numgrade>=90 && numgrade =80 && numgrade =70 && numgrade =65 && numgrade Problem Statement Write a program that takes numeric grade from user and converts it into letter grade based on the numerical range. The following numerical range applies to each letter grade. Numerical Range Letter Grade 101)4) 100-90 89-80 79-70 64-0 hence, do not skip any steps. Programming Shell Template #include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started