Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help in this Java Program, as simple as you can please as it is my second assignment in java Thank you! Java Programming

I need help in this Java Program, as simple as you can please as it is my second assignment in java

Thank you!image text in transcribed

Java Programming Assignment BEER You may assume that there are 365 days in a year (ignoring leap years). Input Specification Objective 1. To give students practice at typing in, compiling and running a simple program 2. To learn how to read in input from the user 3. To learn how to use assignment statements and arithmetic expressions to 1. The number of 12-ounce beers consumed cach day will be a non-ncgative rcal number 2. How much the user spends on a single beer, on average, will be a positive real make number. (Some people like cheap beer, while others pay a bit more for their favorite brand.) Deliverables Output Sample Here is one sample output of running the program. Note that this test is NOT a comprchensive test. You should test your program with diffcrent data than is shown here based on the specifications given. The user input is given in italics while the program output is in bold. 1. You are to create some type of design tool for this BEER assignment a. b. c. d. e. Pscudo Codc IPO Chart Flow Chart Structure Chart Combinations of the other design tools Sample Run #1 On average, how many beers will you consume each day? 2. You are to write the program and test it 3. You are to ZIP UP your entire JAVA project. Place your design tool in the SRC On average, how uch will you pay for each can of beer? 1.25 That is approximately 912.50 beers in one year In one year, you will consume approximately 136875.00 calories from beer alone Rithout diet or exercise to counter these calories, you can expect to gain 37.50 pounds from drinking that much beer this year folder before zipping. 4. Attach a single zip file in Blackboard. Citation All the factoids about beer and exercise given in this assignment are paraphrased from realbeer.com. Problem A: Cost of Beer Studies have shown that, on average, somecone who consumes a single 12-ounce can of beer every day without compensating for the calorie intake through diet modifications or extra exercise, will gain approximately 15 pounds in one year. You can assume this ratio of becr-to-wcight-gain is constant. (For example, doubling the becr consumption to two 12-ounce cans per day will lead to 30 pounds of extra weight in one year.) You will have to ask the user how many beers be or she expects to consume each day, on avcrage, as well as the avcrage amount of moncy he or she spends on a single 12-ounce can of beer. Using this information, your goal is to write a program to determine the following: 1. How many beers will the user consume over the course of the year? 2. Assuming a beer is 150 calories, how many calories will the user take in from beer alone over the course of the year? How much weight can the user expect to gain in one ycar based on the number of 12-ounce beers they consume every day? How much the user will spend on beer this year? 3. 4. All output should be displayed using 2 digits of precision after the decimal point

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions