Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Help please. This just needs to be written in a plan psuedocode, no programming

ID: 3622346 • Letter: H

Question

Help please. This just needs to be written in a plan psuedocode, no programming language.
Create the logic for an application that calculates the cost of a window installation project. Your program must use proper indentation, proper comments in your code, and proper programming procedures covered in this course. Here are the specifications:


1.The application will have three separate methods. Each method will have its own pseudocode separate from the others.
2.The main program will use a loop to accept exactly 30 values from the user and places each value in an array named windowSize[]. Each entry will represent the perimeter measurement for a window. The main program will also control the overall function of the application.
3.The first method will be called by the main program. It will accept the windowSize[] array as a parameter, calculate a sum of all the elements in the array, and then return the sum to the main class where it will be stored in a variable.
4.The second method will be called by the main program. It will accept the array windowSize[], multiply each array element by 1.89, then use a loop to output the result for each array element in the following format: "The window that is x inches high will cost $y." where x is the window size that the user input and y is the size multiplied by 1.89. This method will not return any values to the main program.
5.The third method will be called by the main program. It will accept the value returned by the first method by 1.89 and display the result in the format, "The project will cost $z." where z is equal to the value returned by the second class multiplied by 1.89. This method will not return anything to the main program.

Explanation / Answer

Dear, Step 1: Start Step 2: FOR i=0 to 30 Input windowSize[i] End FOR Step 3: CALL Sum(windowSize) Step 4: PRINT “sum of elements” sum_elements Step 5: CALL DisplayCost(windowSize) Step 6: CALL Display_ProjectCost(sum_elements) Step 7: Stop Sum( windowSize[]) Sum_elements=0 FOR i=0 to 30 Sum_elements+=windowSize[i] END FOR Return Sum_elements DisplayCost(windowSize) FOR i=0 to 30 PRINT " The window that is " windowSize[i] PRINT " inches high will cost $" windowSize[i]*1.89 END FOR Return END DisplayCost Display_ProjectCost(sum_elements) PRINT " The Project Cost $ " sum_elements*1.89 Return END Display_ProjectCost