Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed (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 int main(void) /YOUR CODE GOES HERE return e

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions

Question

What is Centrifugation?

Answered: 1 week ago

Question

To find integral of ?a 2 - x 2

Answered: 1 week ago

Question

To find integral of e 3x sin4x

Answered: 1 week ago

Question

To find the integral of 3x/(x - 1)(x - 2)(x - 3)

Answered: 1 week ago

Question

What are Fatty acids?

Answered: 1 week ago