Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using cAt on XScode, write a program that does the following: Part 1: Step: 1. Create a double variable to store a student's exam grade

image text in transcribed

Using cAt on XScode, write a program that does the following: Part 1: Step: 1. Create a double variable to store a student's exam grade 2. Get an exam grade, via the keyboard, from the user and store that value inside of the variable you created in step 1 3. Use if statements with "multiple conditions" (\&\& or II) to determine the letter grade based on the value entered 4. Output the letter grade to the screen Part 2: Step: 1. copy/paste the code you used in step 2 in the above so you can get another value from the user to store in your variable 2. Use if and else if statements to determine the letter grade for the value entered by the user. Please do not use the compound conditions this time. Just if/else if statements 3. Output the letter grade to the screen Part 3 : Step: 1. Comment out the code you created for Part 1 and Part 2 using a Block Comment 2. Create 3 double variables to store exam grades, a double to store a students numerical average and a double to store the sum of those grades 3. Get an exam grade, via the keyboard, from the user and store that value inside of a variable you created in step 2. Repeat this process code for all 3 three of your grade variables 4. Determine the average grade 5. Output the average value to the screen 6. Output the associated letter grade based on the average using your if statement code from either Part 1 or Part 2 above Assignment Notes: - Make sure you test for each condition in each part to ensure your program is working correctly

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

Step: 3

blur-text-image

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

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions