Question: This needs to be basic Pseudocode only and in no certain language. somthing kind of like this: start Declarations num itemPrice num salespersonCommission num customerDiscount
This needs to be basic Pseudocode only and in no certain language. somthing kind of like this:
start
Declarations
num itemPrice
num salespersonCommission
num customerDiscount
finalPrice= calculatePrice()
stop
calculatePrice(num itemPrice, num salespersonCommission, num customerDiscount)
Declarations
num totalPrice
totalPrice = (itemPrice-salespersonCommission-customerDicount
return
Create the logic for a program that computes hotel guest rates at Cornwall's Country Inn. Include two overloaded methods named computeRate(). One version accepts a number of days and calculates the rate at $99.99 per day. The other accepts a number of days and a code for a meal plan. If the code is A, three meals per day are included, and the price is $112.00 per day. All other codes are invalid. Each method returns the rate to the calling program where it is displayed. The main program asks the user for the number of days in a stay and whether meals should be included; then, based on the user's response, the program either calls the first method or prompts for a meal plan code and calls the second method. Pseudocode only
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
