subject

Print Job Cost Calculator (10 points) Filename: PrintJobCost. java
Write a program that asks the user to enter a string that encodes a print job. The string has this format:
"Papersize ColorType Count"
PaperSize, colorType and count are separated by exactly one space.
The first part of the string represents the size of the paper used:
Paper Size (string) Cost per Sheet ($)
"Letter" 0.05
The second part of the string represents the color of the printing. This cost is added to the cost of the paper itself
Printing Type (string) Cost per Sheet($)
"Grayscale" 0.01
"Colored" 0.10
The program computes and prints the total cost of the current printing job to two decimal places to the right of the decimal point.
Note: You may assume that all function arguments will be valid (e. g., no negative values, invalid paper sizes, etc.)
Several example runs are given below.
t Enter print job info: Legal Grayscale 44 Print job cost: $3.08 C Enter print job info: A4 Colored 4 Print job cost: $0.62 t Enter print job info: Letter Grayscale 32 Print job cost: $1.9

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Quic which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
You know the right answer?
Print Job Cost Calculator (10 points) Filename: PrintJobCost. java
Write a program that asks...
Questions
question
Mathematics, 28.01.2021 07:10
question
Mathematics, 28.01.2021 07:10
question
Mathematics, 28.01.2021 07:10
Questions on the website: 13722367