in java pls: You have been asked to produce a report for a hardware store The name for each item is widget with the word designating the number of the widget. There are ten widgets in all. Your program will ask the user for the range of the cost for items, range of the price of the items in doubles. The range for the quantity in stock will be between 0 and 9999 as an int. Your program will randomly generate the cost of the items, price of the items the number in stock for this sample report based upon the ranges entered. Make sure the price of the item is greater than the cost. Profit is calculated as (price- cost) * in stock. Any time quantity falls below 25 the reorder column will display Yes, otherwise it will display No. Your chart will generate data for ten items and the chart will look like the one below. Part Quantity Name Cost Price in Stock Profit Reorder Widget One 999.99 999.99 9999 99999.99 Yes Widget Two Widget Ten You will need to use a loop to control the lines of the chart and if or switch statements to control the trip numbers and ratings. I expect to see you use the printf or String.format in this program. Complete the input first then the output using hard coded data. Then work on the randomization. This way you will have the easier parts completed and working for a partial grade if needed.
in java pls:
You have been asked to produce a report for a hardware store
The name for each item is widget with the word designating the number of the widget. There are ten widgets in all.
Your program will ask the user for the range of the cost for items, range of the price of the items in doubles.
The range for the quantity in stock will be between 0 and 9999 as an int.
Your program will randomly generate the cost of the items, price of the items the number in stock for this sample report based upon the ranges entered. Make sure the price of the item is greater than the cost.
Profit is calculated as (price- cost) * in stock.
Any time quantity falls below 25 the reorder column will display Yes, otherwise it will display No.
Your chart will generate data for ten items and the chart will look like the one below.
Part Quantity
Name Cost Price in Stock Profit Reorder
Widget One 999.99 999.99 9999 99999.99 Yes
Widget Two
Widget Ten
You will need to use a loop to control the lines of the chart and if or switch statements to control the trip numbers and ratings. I expect to see you use the printf or String.format in this program.
Complete the input first then the output using hard coded data. Then work on the randomization. This way you will have the easier parts completed and working for a partial grade if needed.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 6 images