472,783 Members | 983 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,783 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 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>
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: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.