473,385 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

Grading
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 2983
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>
Did you even read the last part of your assignment text:

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:

IP Address 24.149.161.213
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.

Similar topics

198
by: Michael N. Christoff | last post by:
Java, the software developed by Sun Microsystems in the mid-1990s as a universal operating system for Internet applications, gave NASA a low-cost and easy-to-use option for running Spirit, the...
31
by: somebody | last post by:
No, I'm not a troll, just angry. I just started learning C++, and find it extremely lacking compared to Java. For example, I had to write my own functions to do something as simple as a case...
48
by: Chad Z. Hower aka Kudzu | last post by:
A few of you may recognize me from the recent posts I have made about Indy <http://www.indyproject.org/indy.html> Those of you coming to .net from the Delphi world know truly how unique and...
102
by: Xah Lee | last post by:
i had the pleasure to read the PHP's manual today. http://www.php.net/manual/en/ although Pretty Home Page is another criminal hack of the unix lineage, but if we are here to judge the quality...
1
by: Benton2862 | last post by:
I need help with and array for a program that acts like a cash register. The user will input an items price and then there payment. It will tell you the change and then tell you what kinda of change...
6
by: ahin | last post by:
can any one help or give an idea about writing or from where to strat the following program? • Load a list of available courses from a text file into an array (max 4 courses). File format can...
0
by: south622 | last post by:
I'm taking a beginning Java course and I'm stuck in week eight of a nine week course. If anyone could help me I would greatly appreciate it. This assignment was due yesterday and each day I go past...
12
by: adamurbas | last post by:
ya so im pretty much a newb to this whole python thing... its pretty cool but i just started today and im already having trouble. i started to use a tutorial that i found somewhere and i followed...
34
by: Anthony Irwin | last post by:
Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.