Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Working With Conditional Statements in C++ 1. Students in a class are awarded a letter grade based on the total number of points earned during

Working With Conditional Statements in C++ 1. Students in a class are awarded a letter grade based on the total number of points earned during the semester. To assist teachers with determining a students letter grade, write a program that will display a students letter grade based on the points entered. Use the following table to determine the appropriate letter grade.

Letter Grade Points Range

A = 951-1100

B = 801-950

C = 651-800

D = 501-650

F = 0-500

2. Creating a flowchart or pseudocode prior to coding your program to assist you with coming up with a logical solution. Keep the following points in mind when creating your program:

Your program should perform input validation for negative numbers and numbers outside the range of 0 to 1100. The program should display an appropriate error message and end for invalid input.

Include in the display the additional number of points the student would have needed to get to the next letter grade.

Do not use break; (except for switch statement), exit() or continue; statements in your code. Well-structured programs only have a single return; statement. Make sure you are using the correct data types and descriptive variable names.

Your program should be user-friendly.

Add a comment to the top of your program that includes your name, the program name, and a description of the program code.

Include descriptive comments throughout your program.

Be sure to include all three conditional statements (if, switch and conditional) statements in your program.

Do not use loops in your code.

3. After completing the assignment, attach your Grade lastname.cpp or main.cpp file and flowchart to the Assessment link for grading.

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

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions

Question

Tell the merits and demerits of Mendeleev's periodic table.

Answered: 1 week ago