### Calculate retail that receives the wholesale cost

Assignment Help Basic Computer Science
##### Reference no: EM131241733

Markup

Write a program that asks the user to enter an item's wholesale cost and its markup percentage. It should then display the item's retail price. For example:

• If an item's wholesale cost is 5.00 and its markup percentage is 100%, then the item's retail price is 10.00.

• If an item's wholesale cost is 5.00 and its markup percentage is 50%, then the item's retail price is 7.50.

The program should have a function named calculate Retail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item.

Input Validation: Do not accept negative values for either the wholesale cost of the item or the markup percentage.

#### Print the file to hand in to your instructor

Modify the Savings Account Balance program described in Programming Challenge 16 so that it writes the final report to a file. After the program runs, print the file to hand

#### Modify the student line up program described

Modify the Student Line Up program described in Programming Challenge 14 so that it gets the names from a data file. Names should be read in until there is no more data to r

#### Program to calculate the average of a group of test scores

int findLowest() should find and return the lowest of the five scores passed to it. It should be called by calcAverage, which uses the function to determine which of the fiv

#### Display and calculate the rectangle area

getArea - This function should accept the rectangle's length and width as arguments, and return the rectangle's area. The area is calculated by multiplying the lengt

#### Write a program that lets the user play the game of rock

When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the comput

#### Determine the heat transfer for the process

Saturated liquid water contained in a closed, rigid tank is cooled to a final state where the temperature is 50°C and the masses of saturated vapor and liquid present are 0.

#### Find the final temperature in f

The mass of refrigerant is 0.04 lb. For the refrigerant as the system, W = -0.56 Btu. Kinetic and potential energy effects are negligible. Determine the final temperature, i

#### Determine the work for the process

Refrigerant 134a undergoes a constant-pressure process at 1.4 bar from T1 = 20°C to saturated vapor. Determine the work for the process, in kJ per kg of refrigerant.

### Write a Review 