package com.eclipsedistilled.cis125;
import java.util.Scanner;
public class DeskPrice {
public static void main(String[] args) {
// Written by George Torgerson
//Chapter 3
//Link Logic 7
//Rick Hammer
//Desk cost variable
//Minimum desk charge is 200
//Wood type charge variables
int woodType;
double customerCharge;
final int MAHOGANY;
final double CHARGE1=150;
final int OAK;
final double CHARGE2=125;
final int PINE;
final double CHARGE3=0;
//Surface charge variables
final int RANGE=751;
final double SURFACECHARGE=50;
//length
//width
// Desk drawer charge variable
double deskdrawerCharge;
//final int RANGE=9999;
final double DRAWERCHARGE=30;
//Order number input
Scanner input= new Scanner(System.in);
System.out.println("Enter desk quantity needed");
//Surface area questions for the customer
System.out.println("Enter length of desk wanted");
System.out.println("Enter width of desk wanted");
//Surface area calculation
//length*width
//Total surface area print out on screen for customer to review
System.out.println("The surface area is");
//Customer name input
System.out.println("Enter full name");
// Surface over 750 square inches charge
//Prompt user to enter wood type
//System.out.println("What type of wood would you like your desk made of?" , The three types available are mahogany,oak, and pine);
//woodType=input.nextInt();
//if(woodType = MAHOGANY)
customerCharge=CHARGE1;
//else
//if(woodType=OAK)
//customerCharge=CHARGE2;
//else(woodType=PINE)
//customerCharge=CHARGE3;
//Prompt user to enter amount of desk drawers
System.out.println("Enter amount of desk drawers needed");
//calculation:Final desk price with all additional charges
System.out.println("Your desk price is");
}
}
Write a program that accepts user data for an order number, customer name, length and width of the desk ordered, type of wood, and number of drawers. Display all the entered data and the final price for the desk.
No comments:
Post a Comment