11.1 Write a program that displays the retail price of an item. The program asks the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
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 the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
How to use excel to answer this question? The ABC Corporation's dividends per share are expected to grow indefinitely by \( 6 \% \) per year. (a) If this year's dividend is \( 9.50 \) and the cost...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
Use the test of your choice to determine whether the following series converge. 1 + 1.3 1 3.5 + 1 5.7
-
1. Suppose you invest a sum of $4,000 in an interest-bearing account at the rate of 10% per year. What will the investment be worth six years from now? 2. How much would you need to invest now to be...
-
For the following exercises, solve the equations below and express the answer using set notation. 3|5 x|= 5
-
Plaintiff purchased stain and paint from defendant that, upon application, presented significant issues: discoloration and cracking. These issues became apparent 30 days after receipt of the...
-
(Income Statement, EPS) Presented below are selected ledger accounts of Tucker Corporation as of December 31, 2004. (a) Compute net income for 2004. (b) Prepare a partial income statement beginning...
-
B. The figure below shows the market of physician visit. Current market price for each physician visit is $5. Price ($) 9 8 7 6 5 0 1 2 3 4 Number of Physician Visits (Q) 1) According to the figure,...
-
For R, partition the data sets into 60% training and 40% validation and implement the 10-fold cross-validation. Use the statement set. seed(1) to specify the random seed for data partitioning and...
-
d) There are three (3) children who wants to take biscuits from their father. The Father assured that he will give only 2 biscuits per time. The table 1 shows the number of biscuits each child...
-
Whitewater Adventures has just paid a dividend of $4.00. An analyst forecasts annual dividend growth of 9% for the next five years at t=1, 2,..., 5, after which dividends will decrease by 1% per year...
-
Feel free to use Photoshop, Word, or any other free image editing software for this task. Alternatively, you can hand-draw a diagram, scan it, or take a photo. You can also explore free diagramming...
-
If a corporation has a limited amount of liquid cash, it may choose to pay out a stock dividend. If the company is striving to maintain its current cash supply, it may opt to offer a stock dividend...
-
Discuss the impact of globalization on traditional cultural identities. In your response, analyze the ways in which globalization has influenced the preservation and evolution of traditional arts,...
-
Refering to the Microsoft Corporation 2021 annual report, the opening inventory of 2021 is $1,895 million; while the closing inventory is $2,636 million; with the cost of goods sold at $52,232...
-
When 13.59 g of PTSO4.X H20 is burned, 10.87 g of white product is obtaining. Calculate mole of hydrated salt: O 363 345 327 O 309 Next
-
Problem 3.5 (4 points). We will prove, in steps, that rank (L) = rank(LT) for any LE Rnxm (a) Prove that rank (L) = rank (LTL). (Hint: use Problem 3.4.) (b) Use part (a) to deduce that that rank(L) =...
-
Rebecca and Walter Bunge have been married for 5 years. They live at 883 Scrub Brush Street, Apt. 52B, Las Vegas, NV 89125. Rebecca is a homemaker and Walt is a high school teacher. Rebecca's Social...
-
Quince Interests is a partnership with a tax year that ends September 30, 2012. During that year, Potter, a partner, received $3,000 per month as a guaranteed payment, and his share of partnership...
-
Carl and Jenny adopt a Russian orphan. The adoption takes 2 years and two trips to Russia and is final in 2012. They pay $6,000 in 2011 and $7,500 in 2012 of qualified adoption expenses, and have AGI...
-
What are presumptions, and why are they important?
-
What is the burden of proof in a criminal trial? How does it compare to the burden of proof in a civil trial?
-
Distinguish between adversarial and inquisitorial justice.
Study smarter with the SolutionInn App