May anyone be able to complete my java assignment by tonight at 11:59pm
ISM3230Individual Assignment 1 – Working with Variables and Expressions Spring 2021
You are working for an ice cream manufacturer and distributor for high-end super-creamy ice cream.
The seasonal sales division of your company supplies branded ice cream, including branded cones with
branded paper wrappers, for seasonal outlets, including resorts, seasonal tourist areas (e.g., beaches
and boardwalks), county and state fairs, and other short-season outlets.
During the winter months, the company works to prepare for the surge season, including planning for
ice cream manufacturing and ordering custom-printed cones. This planning is based on forecasting data
for the coming summer season.
You have been asked to use forecasting models developed by your company’s data analytics
department, and find the actual manufacturing needs for ice cream and cones for various seasonal
outlets, together with the number of freezer boxes that would be needed to process the ice cream.
Taking into account prior sales data and site surveys, the data analytics department developed a formula
that estimates the demand for ice cream in gallons, given input values for the variables defined below:
gallons = 15 + 0.013438 * temp + 0.046875 * client * (1 + 0.75 * weekend)
where
gallons is the predicted demand of ice cream in U.S. gallons
temp is the daily average temperature in degrees Fahrenheit
client is the estimated number of customers per day
weekend is either 0 for a weekday or 1 for a weekend
The ice cream is sold by the scoop in cones, with 2 scoops per cone. There are 32 scoops in a gallon. The
ice cream is made in freezer containers with the capacity of 4 gallons each. For any given outlet on any
given day, your code needs to be able to compute how many gallons of ice cream will be needed, how
many gallons will be made by filling the freezing containers fully, how many freezer containers will be
filled completely and how much of the predicted demand could not be filled because it does not fill a
complete freezing container. You also need to calculate how many cones need to be available for sale
for the day in question, based on the input values.
Requirements:
Create a program that asks the user to enter the expected outside temperature in degrees Fahrenheit,
expected number of customers per day, and whether the prediction is for a weekday (0) or a weekend
(1).
The program then calculates the expected demand of ice cream for that day in gallons, the amount of
ice cream that can be frozen, the number of freezer containers, and the left over ice cream that does
not fill a complete container. In addition, it calculates how many cones are needed to sell the amount of
ice cream that can be produced.
As output, the program prints to the screen the assumptions for the forecasted day (temperature,
number of customers and weekend multiplier), the expected demand in gallons, the number of freezer
containers needed, the amount of demand that cannot be used, and how many cones are required to
sell the produced ice cream. Freezer containers and cones are reported as whole numbers.
Instructions:
1. Prompt the user to enter three numbers: temperature in degrees Fahrenheit, number of clients,
and whether the prediction is for a weekday (0) or weekend (1). Use the Scanner class for input
and store the client count and weekend values in integer variables, store the temperature in a
double.
2. Calculate the demand in gallons, given the formula, and store the result in a double variable.
3. Create a named constant for the capacity of a freezer container of 4 gallons per container and
use it to get the number of freezer containers needed and store the result in a double. Since the
freezer containers must be a whole number, cast the previous result into an integer and store
the number of required containers in a new variable of type int.
o HINT: Look at the examples in the slides, starting at slide 38 of the Expressions slide set
on Canvas, for examples of casting.
4. Use the modulus operator to calculate the amount of demand that does not fit into the freezing
containers. Store the result in a double variable. It is the amount that is left over after the
demand ice cream fills the required amount of containers.
5. Calculate the amount of ice cream that will be produced by completely filling the required
number of freezing containers and store it in a variable. Use this amount to calculate the
number of cones.
6. Create a named constant for the number of scoops per gallon (32) and use it to get the amount
of produced ice cream scoops and store it in an integer variable.
7. Create a named constant for the number of scoops per cone (2) and use it to calculate the
number of cones needed to sell the produced ice cream. Store the number of cones in an
integer variable.
8. Print to screen the following information:
o temperature in degrees F
o number of clients
o weekend multiplier
o expected demand in gallons
o required number of freezer containers that can be filled completely
o amount of demand that cannot be produced
o amount of produced ice cream in gallons
o number cones that are needed for produced ice cream
9. Check your output carefully to ensure that it matches the sample output. For the purposes of
this assignment, “matching” means that all spacing, wording, and punctuation in your output
should match the sample output (except as described immediately below).
Grading elements:
Use of class-level named constants
Use of variables with meaningful names and correct types
Input of data with user prompts
Correctness of math calculations
Conformance of output to sample output
Code organization (input/processing/output)
NOTE ON ARITHMETIC PRECISION AND SAMPLE OUTPUT:
When casting doubles into integers, the decimal numbers are truncated, so the results of arithmetic
operations depend on the exact order of those operations.
The Sample Output answers are valid only for the program logic that follows the Instructions exactly.
You might find that your integer answers differ by 1 from those in the Sample Output if you did not
follow the exact order of instructions.
There are multiple paths to a valid solution and you might have a different way of solving the problem
than presented in the Instructions. The grading is determined after looking at the logic of your code, so
answers that are off by 1 in this case may still be correct if the logic makes sense.
Sample Output
We provide professional writing services to help you score straight A’s by submitting custom written assignments that mirror your guidelines.
Get result-oriented writing and never worry about grades anymore. We follow the highest quality standards to make sure that you get perfect assignments.
Our writers have experience in dealing with papers of every educational level. You can surely rely on the expertise of our qualified professionals.
Your deadline is our threshold for success and we take it very seriously. We make sure you receive your papers before your predefined time.
Someone from our customer support team is always here to respond to your questions. So, hit us up if you have got any ambiguity or concern.
Sit back and relax while we help you out with writing your papers. We have an ultimate policy for keeping your personal and order-related details a secret.
We assure you that your document will be thoroughly checked for plagiarism and grammatical errors as we use highly authentic and licit sources.
Still reluctant about placing an order? Our 100% Moneyback Guarantee backs you up on rare occasions where you aren’t satisfied with the writing.
You don’t have to wait for an update for hours; you can track the progress of your order any time you want. We share the status after each step.
Although you can leverage our expertise for any writing task, we have a knack for creating flawless papers for the following document types.
Although you can leverage our expertise for any writing task, we have a knack for creating flawless papers for the following document types.
From brainstorming your paper's outline to perfecting its grammar, we perform every step carefully to make your paper worthy of A grade.
Hire your preferred writer anytime. Simply specify if you want your preferred expert to write your paper and we’ll make that happen.
Get an elaborate and authentic grammar check report with your work to have the grammar goodness sealed in your document.
You can purchase this feature if you want our writers to sum up your paper in the form of a concise and well-articulated summary.
You don’t have to worry about plagiarism anymore. Get a plagiarism report to certify the uniqueness of your work.
Join us for the best experience while seeking writing assistance in your college life. A good grade is all you need to boost up your academic excellence and we are all about it.
We create perfect papers according to the guidelines.
We seamlessly edit out errors from your papers.
We thoroughly read your final draft to identify errors.
Work with ultimate peace of mind because we ensure that your academic work is our responsibility and your grades are a top concern for us!
Dedication. Quality. Commitment. Punctuality
Here is what we have achieved so far. These numbers are evidence that we go the extra mile to make your college journey successful.
We have the most intuitive and minimalistic process so that you can easily place an order. Just follow a few steps to unlock success.
We understand your guidelines first before delivering any writing service. You can discuss your writing needs and we will have them evaluated by our dedicated team.
We write your papers in a standardized way. We complete your work in such a way that it turns out to be a perfect description of your guidelines.
We promise you excellent grades and academic excellence that you always longed for. Our writers stay in touch with you via email.