Question: Please complete the questions below in this Word document and submit only this document for grading. Do not remove the questions or text that




Please complete the questions below in this Word document and submit only this document for grading. Do not remove the questions or text that is here. Mark any modifications or additions to the pseudocode or comments by showing them in red. Any flowcharts given are images. Either describe the changes needed or mark them in red using the Word drawing tools. Performing Maintenance In this week's chapters you learned that some of the tasks assigned to new programmers frequently involve maintenance making changes to existing programs because of new requirements. Assume that the flowchart below for each question is a separate working program in your organization and that it needs modifications as described in the comments (lines that begin with two slashes) at the beginning of the code. Your job is to alter the pseudocode to meet the new specifications as noted above. 1. // MAINTENANCE03 // Modularize this program ... start A // Assume that this program works, but that it needs to be structured and modularized. No Yes B? C E No Yes D? F G Yes Yes H? J? No No K F G 2. // MAINTENANCE04 //Currently, this program displays data for all students. Modify it to display only those who have more than 60 credits and have a GPA of at least 3.5. detailLoop() output "Enter credits >>" (start) Declarations string nane num credits num gpa string QUIT "ZZZ" housekeeping() nane >> QUIT? No finish() stop. Yes detailLoop() housekeeping output "Enter student name >> input name return input credits, output "Enter gpa >> input gpa finishO output "Program finished" output nane," Credits: " credits. GPA: "gpa return "Enter student name or . QUIT, "to quit >> input name return Find the Bugs 1. Each code segment below starts with some comments (lines that begin with two slashes) that describe the program. Examine the pseudocode that follows the introductory comments, then find and correct all the bugs as indicated above using red marks. a. // DEBUG03-01 // This pseudocode is intended to determine whether students have // passed or failed a course; student needs to average 60 or // more on two tests. start Declarations num firsttest num secondTest num average num PASSING = 60 while first not equal to 0 output "Enter first score or 0 to quit input firsttest output "Enter second score". input secondTest average = (firstTest + secondTest) / 2 Quput "Average is ", average if average >= PASSING then output "Pass" " else output "Fail" endif endwhile stop b. // DEBUG04-01 // apartment, $75 for renting a two-bedroom apartment, $55 for // renting a one-bedroom apartment, and $30 for renting a studio // (zero-bedroom) apartment. Output is the salesperson's // name and ID number and the commission earned on the rental. start Declarations num salespexSQDIR string salesRatsonName num numBedrooms num COMM 3 = $100.00 num COMM 2 = $75.00 num COMM 1 = $55.00 num COMM STUDIO = $30.00 num QUIT = 9999 getReady!) while salespersonID QUIT detalher sadrhile finish() stop getReady " output "Enter salesperson ID or ", QUIT, to quit output eaRSEARA IR return " detailloor!) output "Enter name. " input salespersonName output "Enter number of bedrooms rented input numBedrooms if numBedrooms > 3 then CommissionEarned = COMM 3 else if numBedrooms < 2 then commissionEarned = COMM_2 else if numBedrooms > 1 then commission = COMM 1 else commission = COMM 4 endif endif endif " output salespersonth, salespersName, commissionEarned output "Enter salesperson ID or ", QUIT, " to quit input salespersonID return finish () output "End of report" return
Step by Step Solution
There are 3 Steps involved in it
Here are the solutions to your tasks 1 MAINTENANCE03 Modularization of the Flowchart To modularize this flowchart you can break it down into distinct ... View full answer
Get step-by-step solutions from verified subject matter experts
