Question: Question 135 Marks You are given a C++ program (Test201.cpp) with 11 errors (syntax errors and or logical errors, if any). The program is developed


Question 135 Marks You are given a C++ program (Test201.cpp) with 11 errors (syntax errors and or logical errors, if any). The program is developed to calculate the total price of an item after the inclusion of postage cost. It has three (3) user-defined functions as listed below: Function Name get_Weight get_Price Description To get weight from the user. This function will keep asking the user to enter valid weight input (1 to 3 kg). To get price from the user. This function will keep asking the user to enter valid input if the price value entered is not a valid one. To calculate the postage cost based on the item's weight. Read the comment section before postage function definition for details about postage cost imposed on the item based on its weight postage The main function of the program has cout statements to display the item price that was previously entered by the user via the get_Price function and item price after a call to postage function was made. The postage function should able to update the item's price that includes postage cost imposed on the item based on its weight. You are required to debug the errors, compile, and run the program. You are NOT ALLOWED to remove any statements in the program. You are only allowed to update the statements provided in the program and add a new statement(s) if absolutely necessary. The program should produce the outputs as in Figure 1. Note: The values in bold are input by the user 7/Test201.cpp 2 3 include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
