Question: This is java programming(BlueJ). Sorry for trying to have it fast but I need it quick. Please and thank you! Work for Jim's store as
This is java programming(BlueJ). Sorry for trying to have it fast but I need it quick. Please and thank you!
Work for Jim's store as a programmer. Your boss asked you to write a program to calculate the sale price of products based on established marksups for different categors.
Category Markup%
A 20
B 25
E 18
F 35
G 26
H 50
I 10
J 5
Program will read item descriptions, item numbers, and cost from a CSV file. For each item, print to the terminal, item description, item number, cost, and calulated retail for sale price.
Retail sale price is calculated as cost*1+markup percentage
Date file name is finaldata.csv;
The date consists of item description, item number, and cost. The data looks like the following
0.5 Copper pipe 10 ft, 669A417, 1.830173309
20 A Fuse scew base, 833H175, 3.913979579
Black pipe 0.5 in 6 in, 276E180, 5.944278169
Black pipe 0.75 in 6 in, 594C971, 9.66045402
Black pipe 1.0 in 10 ft, 201H546, 3.961356104
------
Parse the date into individual parts
convert cost to double for calculated price
category of the item is indicated by a letter in the item numbe. Parse the item number to retrieve the category letter to use to determine the markup.
The program will print the state date and time at program start, then compute and print the amount of time it takes to run in milliseconds.
Output should look like this without gaps in between
Run at mon may 5 12:04:25 CDT 2018
Item description Item# Cost Category Price
----------------------------------------------------------------------------------------------------
0.5 In Galvanized Street Ell 100F928 4.90 F $ 6.61
0.5 copper pipe 6 ft 649F848 9.73 F $13.14
0.75 copper pipe 6 ft 726F543 9.26 F $12.50
SPF Lumber 2 in x 4 in x 10 ft 731H786 2.87 H $4.31
SPF Lumber 1 in X 6 in X 10 ft 752A905 2.81 A $3.37
.
.
.
.
Circuit Breaker 40 A SP 375H158 1.85 H $2.77
Circuit Breaker 100 A SP 706H388 5.32 H $7.98
Circuit Breaker 15 A DP 539H454 6.44 H $9.65
Runtime: 13 milliseconds
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
