Answered step by step
Verified Expert Solution
Question
1 Approved Answer
import java.util.Scanner; public class ManualCostCalculator { public static void main ( String [ ] args ) { final double PER _ PAGE _ BW =
import java.util.Scanner;
public class ManualCostCalculator
public static void mainString args
final double PERPAGEBW ;
final double PERPAGECOLOR ;
final double PAGEWEIGHT ;
int totPageCount ;
int colPageCount ;
double covCost ;
double prinCost ;
double colCost ;
double weight ;
double mailCost ;
Scanner input new ScannerSystemin;
System.out.printlnProgram to calculate training manual costs
;
System.out.printlnEnter the number of black and white pages:";
totPageCount input.nextInt;
System.out.printlnEnter the number of color pages:";
colPageCount input.nextInt;
System.out.println
There are totPageCount colPageCount pages in the training manual
;
System.out.printEnter the cover cost:";
covCost input.nextDouble;
System.out.println
Enter the budget for training manuals:";
double budget input.nextDouble;
prinCost totPageCount PERPAGEBW colPageCount PERPAGECOLOR;
colCost colPageCount PERPAGECOLOR;
weight totPageCount colPageCount PAGEWEIGHT;
System.out.println
For one manual:";
System.out.printf Black & white printing cost per page is fn PERPAGEBW;
System.out.printf Color printing cost per page is fn PERPAGECOLOR;
double totalManualCost prinCost colCost covCost;
System.out.printfTotal printing cost per manual with cover is fn totalManualCost;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started