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

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. Alter the pseudocode to meet the new specifications as noted above.

Assume that the pseudocode below for each question is a separate workingprogram in your organization and that it needs modifications as described in

1. I I MAINTENANCE 11 I/ This program accepts product data about 100 products. / It displays data about the most expensive product f/ and the average price of all products. /f Modify the program to use a Product class to // hold product data. Include a constructor 1/ that accepts all the data fields as parameters. class Product Declarations private string idNum private string description private num price public Product (string id, string descrip, num pr) id = idwum description = descrip price =pr return public void setIdNum (string id) idNum = id return public void setDescription (string des) description = desc return public void setPrice (num pr) if pr highestPrice highestPrice = products [x]. getPrice () highestDesc = products [x]. getHighest () highestId = products [ ]. getIdNum () endif

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!