472,783 Members | 983 Online

# Need Help Writing Java Program Will Pay (due 16 Which Is Today)

i need help writing this program... i am in college and i do not have time do this right now as i need to study for another test....but this is due tonight...i will pay \$5 if you accept to do it and i will pay another \$10 upon completion>

CISY 103 - Project 01 - Fall 2007 - 02x
Daily Sales report for Kahuna Burgers
Overview
The manager of the Kahuna Burgers wants to run a report on a daily basis. The manager is concerned with the total sales in dollars of each of the burgers they sell and he also wants a percentage breakdown by qty and sales.

The manager would also like to know how many pounds of burgers were sold based on sales. But he can make do without this number.

The Burgers
Kahuna Burgers sells 5 kinds of burgers: Hamburgers, Cheeseburgers, Prince Kahuna Burgers, Queen Kahuna Burgers, and King Kahuna Burgers.

Hamburgers cost 89 cents and contain 3 ounces of hamburger
Cheeseburgers cost 99 cents and contain 3 ounces of hamburger
Prince Kahuna Burgers cost \$1.29 and contain a quarter pound of hamburger (4 ounces)
Queen Kahuna Burgers cost \$2.09 and contain two three-ounce hamburgers (6 ounces)
King Kahuna Burgers cost \$2.98 and contain two quarter pound hamburgers (8 ounces)
The Assignment
You are to write a program that will prompt the user for the number of each type of burger sold

You are to calculate the total number of burgers sold.

You are to calculate for each burger the sales in dollars and the total sales

You are for each burger to determine what % it's qty is of the total qty and what % it's sales are of the total sales.

Example: If you look in the sample run you see that 381 Cheeseburgers were sold. That 381 is 18.0% of the total qty 2,122. The sales of those Cheeseburgers are 377.19 which is 9.3% of the total sales 4,050.72

The main report involves 19 calculations (40 points)
The main report has 5 columns of data neatly formatted (25 points)
The main report has a column header (5 points)
The main report has a totals line (5 points)
Coding Guidelines (25 points+)
Your name must be in the comments along with Date Written and Purpose
Your code must be neatly indented (up to 10 point deduction if not)
Your class names must begin with a capital letter [ Project01 ]
Your variable names must be meaningful and the must begin with a little letter [ numCheeseburgersSold ] (deductions can be 1-5 points per poorly defined variable)
Your code must be well organized: It must have all the variable declarations in one place, all of the user inputs in one place, all of the calculations in one place, all of the outputs in one place (up to 10 points)
Your prices for the burgers must be stored in variables [ priceCheeseburger ] (5 points)
Extra Credit (15 points):
Calculate and display of the total weight of meat sold
The ounces in each burger must be stored in variables [ numOuncesCheeseburger ]
Some Techincal Stuff
A single class Project01.java is all that is needed for this program

The maximum total Qty will be 9,999

The maximum total Sales will be is 99,999.99

There are 16 ounces in a pound

Hint: you will need to perform a cast so the percent qty and the total weight will work

Sample Run
Enter number of hamburgers sold: 227
Enter number of cheeseburgers sold: 381
Enter number of Prince Kahuna burgers sold: 457
Enter number of Queen Kahuna burgers sold: 301
Enter number of King Kahuna burgers sold: 756

Burger Qty Sales Qty% Sales%
==================== ===== ========== ====== ======
Hamburger 227 202.03 10.7% 5.0%
Cheeseburger 381 377.19 18.0% 9.3%
Prince Kahuna Burger 457 589.53 21.5% 14.6%
Queen Kahuna Burger 301 629.09 14.2% 15.5%
King Kahuna Burger 756 2,252.88 35.6% 55.6%
==================== ===== ========== ====== ======
Total 2,122 4,050.72 100.0% 100.0%

Total weight of meat sold for the day is 719.13 pounds
Press any key to continue . . .

Another Sample Run
Enter number of hamburgers sold: 24
Enter number of cheeseburgers sold: 35
Enter number of Prince Kahuna burgers sold: 41
Enter number of Queen Kahuna burgers sold: 29
Enter number of King Kahuna burgers sold: 72

Burger Qty Sales Qty% Sales%
==================== ===== ========== ====== ======
Hamburger 24 21.36 11.9% 5.6%
Cheeseburger 35 34.65 17.4% 9.0%
Prince Kahuna Burger 41 52.89 20.4% 13.8%
Queen Kahuna Burger 29 60.61 14.4% 15.8%
King Kahuna Burger 72 214.56 35.8% 55.9%
==================== ===== ========== ====== ======
Total 201 384.07 100.0% 100.0%

Total weight of meat sold for the day is 68.19 pounds
Press any key to continue . . .
Cheating is not allowed!
All parties involved in cheating will receive a 0!
Oct 16 '07 #1
7 2949
JosAH
11,448 Expert 8TB
i need help writing this program... i am in college and i do not have time do this right now as i need to study for another test....but this is due tonight...i will pay \$5 if you accept to do it and i will pay another \$10 upon completion>

Cheating is not allowed!
All parties involved in cheating will receive a 0!
kind regards,

Jos
Oct 16 '07 #2
lol.....cheating is not allowed even in kindergarden........plus i am not cheating i am getting someone to do it for me.
Oct 16 '07 #3
JosAH
11,448 Expert 8TB
lol.....cheating is not allowed even in kindergarden........plus i am not cheating i am getting someone to do it for me.
That is synonymous to cheating; I just found the following on you:

Host Name host-24-149-161-213.patmedia.net

kind regards,

Jos
Oct 16 '07 #4
wow you found my IP address........(somebody needs to get a life)
Oct 16 '07 #5
how are those kind regards when you are stalking me.....ROLF!!!!!!!

kind regards

DEEZ
Oct 16 '07 #6
JosAH
11,448 Expert 8TB
how are those kind regards when you are stalking me.....ROLF!!!!!!!
I'm not after you; I'm after your college and inform them about you; in the mean
time I'm banning you from this site.

kind regards,

Jos
Oct 16 '07 #7
why are you reporting me? what the hell did i do to you?
Oct 16 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.