Question: 11.1 Write a program that displays the retail price of an item. The program asks the user for the item's wholesale price and the
11.1 Write a program that displays the retail price of an item. The program asks the user for the item's wholesale price and the number of days it takes to sell the item. The program then calculates the item's retail price based on the following criteria: If the number of days it takes to sell the item is more than 7 days, the markup percentage is 100 percent. Ex.: the retail price of $5.00 item that sales in 9 days is $10.00. If the number of days it takes to sell the item is 7 days or less, the markup percentage is 70 percent. Use functions to do the following: - display description to user - calculate retail price - display output Use constant for threshold days (7 in this case) to sell the item. Include a loop that lets the user repeat the program until the user says she or he is done. 11.2 Write a program that converts feet and inches to centimeters. The program asks the user for values in feet and inches, and it converts them into centimeters. Use the following functions: - display description to user one or more for calculation - output Use a constant for conversion factors. Include a loop that lets the user repeat the program until the user says she or he is done. 1 inch = 2.54 centimeters 1 foot 12 inches = Before submitting, check for following: -5 lines of comments -Code lineup -Indentation -meaningful names for variables -name constants for values that do not change -description to user -add comments -add comments for functions Place both java files into a folder Compress the folder and submit it
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
Heres the program for the first task which calculates the retail price of an item based on wholesale price and the number of days it takes to sell Con... View full answer
Get step-by-step solutions from verified subject matter experts
