Question: 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

Performing Maintenance
In this weeks chapters you learned that some of the tasks assigned to new programmers frequently involve maintenancemaking changes to existing programs because of new requirements. Assume that the pseudocode 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. Please follow directions as specified in the homework assignment instructions file. NOTE: If a function has no changes to be made to it, then it will be in blue font.
1.// This program accepts a user's monthly pay and rent, utilities, and
// grocery bills and displays the amount available for discretionary
// spending(which might be negative).
// Modify the program to declare all variables used, and to output the
// pay and the total bills as well as the remaining discretionary amount.
Start
// Declarations
input pay
input rent
input utilities
input groceries
discretionary = pay - bills
output discretionary
stop
2.// This program accepts any number of purchase prices and computes state
// sales tax as 6.5% of the value and city sales tax as 2.5% of the value.
// Modify the program so that all variables are declared, and so the user

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!