Question: C++ 4,12 Debugging Exercises Find and correct the logic errors in the following pseudocode examples. You will need to desk check these problems carefully to

 C++ 4,12 Debugging Exercises Find and correct the logic errors inthe following pseudocode examples. You will need to desk check these problems

C++

4,12 Debugging Exercises Find and correct the logic errors in the following pseudocode examples. You will need to desk check these problems carefully to locate the errors. 1) Problem: Your brother has decided to give all of the employees in his small company a6% raise. A novice programmer, he wants to create a program that calculates the new wages. He has created the following pseudocode and has asked you to look it over for errors. Display "Enter old wage: Read Old_wage New wage = Old-wage * .06 Display Old_wage Display " + 6% Display New_wage 2) Problem: Last term your grade in math was lower than you, or your parents, expected. You want to create a program to check your professor's calculations. The course syllabus states that all of the assignments were worth 30% of the total grade, the three tests were worth 15% each and the final was worth 25%. Look over the following pseudocode for correctness 95 Display "Enter Assignment average Read Assignment avg Display "Enter Test 1:" Read Testl Display "Enter Test 2:" Read Testl Display "Enter Test 3: Read Test3 Display "Enter Final:" Read Final Test, avg = Testi * .15 + Test2 * .15 + Test3 * .15 / 3 Class score Assign avg 20+ Test avg 40+Final 25 Display "Final score:" Display Class_ score

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!