Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem: Write the program that rends from the keyboard the grades ad converts them o a scale: Part C (l points) 0-10 that you and

image text in transcribed

Problem: Write the program that rends from the keyboard the grades ad converts them o a scale: Part C (l points) 0-10 that you and your purtner got lt te, nvers them to theiruspooding letter grades, und determines who did better Modify the ubove progranu so that when there is no winner, it prints another mesage below accorting to the following eriteria: If the letter grade is B or better display mesage , if the letter grade is C displaymege 2, if the Your tasl:ipnt in C+ the algorithm solutionshown below Part A (79 points) Algorithm solution (in pseudocode): letter grade is D display message 3, otherwise display message 4. Please run my program and test it with different values to see what messages through 4 are equal to. Both did vey good, gitulations! Not bad but could be better or a B for a C Both shoula improve to avoid ing me again naxt semester! tor a D Lor anF 1. Declare variables yourletter. theirletter that hold a single character each 2. Declare variables yourgrade, theirgrade that hold wholebers. . Prompt 4. Read 4A Convert pereentage into siagle digit 5. Run code wo times to get the valucs of yourgrade and theirrade and assign the Letters to yourletter and theirketter respectively Eave you coasidered another ajor? The peogastcie without es or warnings Parts A, B, and C are ONE program Your progra s have the following comments at the top. Don't forget to include them because theywil count toward the grade of this lab. Print on the screen "Invalid input data, cannot detenine who did hetter in the test!" Stap the prngram retuming a l Print on the screen "You did etter in the test, you need to help your partner" Print on the screen Your partner did better in the test, be needs to help you Print on the screcn "Tbere is no winner! otherwise if aurletter is less than theirletter # CPSC 230 TR. Mw First and Last Name sins your own Semester Year Lab 2B otherwise if yourletter is more than theirlettor n of what the progran d oes. IMPORTANT! Submit the most coplele version of your program followed by non-working purls of your solution cate out below main). For example, if you ccolete up to part B, submit this progran with what you did fc prts A and B, a part Cted out below the bady of main) Please name your file lab2BFI. Do not include blank spaces in the name of the file please. The pragram must receive a mmeric grade and rehim its corresponding letter equivnlent according to the table shown below. Use nested-if statements simila step 6) to determine the comesponding letter made. Notice that for letters A and you will need to specify a range of numbers. Number Letter 9-10 A When done, subwnityour solution throngh D2L using the approprinte folder. Do NOI eanail it. The following is the basic criteria to be used to grade your submission: You start with 0points and then lose points as yoa don't do something that is required. Part A (79 points) Part B (10 points) OlberE Wrong data type Wreag le ames 3 (each) -3 Didn't use loop slatemen! loop statemeat wrongly applied 10 -5 Part B (10 points) 15 Part C(11 points) nccrrect atrows Din't use nested if statements Nested stalemenis wrongly applied5 Didn't use nested if staternents Nested statements wrongly applied Wrong logie for when there is no winner3 Missing pat Cor does notcompile Modify the program so that it uses a loop so the user may decide to compare to other students. Use a sentinel or flag to stop the loop. .5 Used lobal variables ! Problem: Write the program that rends from the keyboard the grades ad converts them o a scale: Part C (l points) 0-10 that you and your purtner got lt te, nvers them to theiruspooding letter grades, und determines who did better Modify the ubove progranu so that when there is no winner, it prints another mesage below accorting to the following eriteria: If the letter grade is B or better display mesage , if the letter grade is C displaymege 2, if the Your tasl:ipnt in C+ the algorithm solutionshown below Part A (79 points) Algorithm solution (in pseudocode): letter grade is D display message 3, otherwise display message 4. Please run my program and test it with different values to see what messages through 4 are equal to. Both did vey good, gitulations! Not bad but could be better or a B for a C Both shoula improve to avoid ing me again naxt semester! tor a D Lor anF 1. Declare variables yourletter. theirletter that hold a single character each 2. Declare variables yourgrade, theirgrade that hold wholebers. . Prompt 4. Read 4A Convert pereentage into siagle digit 5. Run code wo times to get the valucs of yourgrade and theirrade and assign the Letters to yourletter and theirketter respectively Eave you coasidered another ajor? The peogastcie without es or warnings Parts A, B, and C are ONE program Your progra s have the following comments at the top. Don't forget to include them because theywil count toward the grade of this lab. Print on the screen "Invalid input data, cannot detenine who did hetter in the test!" Stap the prngram retuming a l Print on the screen "You did etter in the test, you need to help your partner" Print on the screen Your partner did better in the test, be needs to help you Print on the screcn "Tbere is no winner! otherwise if aurletter is less than theirletter # CPSC 230 TR. Mw First and Last Name sins your own Semester Year Lab 2B otherwise if yourletter is more than theirlettor n of what the progran d oes. IMPORTANT! Submit the most coplele version of your program followed by non-working purls of your solution cate out below main). For example, if you ccolete up to part B, submit this progran with what you did fc prts A and B, a part Cted out below the bady of main) Please name your file lab2BFI. Do not include blank spaces in the name of the file please. The pragram must receive a mmeric grade and rehim its corresponding letter equivnlent according to the table shown below. Use nested-if statements simila step 6) to determine the comesponding letter made. Notice that for letters A and you will need to specify a range of numbers. Number Letter 9-10 A When done, subwnityour solution throngh D2L using the approprinte folder. Do NOI eanail it. The following is the basic criteria to be used to grade your submission: You start with 0points and then lose points as yoa don't do something that is required. Part A (79 points) Part B (10 points) OlberE Wrong data type Wreag le ames 3 (each) -3 Didn't use loop slatemen! loop statemeat wrongly applied 10 -5 Part B (10 points) 15 Part C(11 points) nccrrect atrows Din't use nested if statements Nested stalemenis wrongly applied5 Didn't use nested if staternents Nested statements wrongly applied Wrong logie for when there is no winner3 Missing pat Cor does notcompile Modify the program so that it uses a loop so the user may decide to compare to other students. Use a sentinel or flag to stop the loop. .5 Used lobal variables

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

Advances In Databases 28th British National Conference On Databases Bncod 28 Manchester Uk July 2011 Revised Selected Papers Lncs 7051

Authors: Alvaro A.A. Fernandes ,Alasdair J.G. Gray ,Khalid Belhajjame

2011th Edition

3642245765, 978-3642245763

More Books

Students also viewed these Databases questions

Question

Describe Balor method and give the chemical reaction.

Answered: 1 week ago

Question

How to prepare washing soda from common salt?

Answered: 1 week ago

Question

Explain strong and weak atoms with examples.

Answered: 1 week ago

Question

Explain the alkaline nature of aqueous solution of making soda.

Answered: 1 week ago