Loading
Home › Computer Science Help › Instructions Write a Java class called LemonadeStand 1. F...
Status: Completed

Instructions Write a Java class called LemonadeStand 1. For the following, store each item as a variable of the appropriate data type. Must use a different data type for each one. Get the value from the user using the Scanner class. Ask the customer for his or her name and store it as a variable [1 point] Ask the customer, by their first name, how many glasses of lemonade they would like to buy, and store that value as a variable. [1 point] Store the price of lemonade as a variable [1 point] Get the payment type from the user, as a single character (C for credit card, D for debit card, M for cash money, or V for Venmo). Please note that we are not doing anything with this variable for now, but will in the next assignment [1 point] 2. Calculate the total price which is basically the number of glasses time the price. [1 point] 3. Display the total due to the user in this format: Each glass costs $(price), so the total due is $(total) ! [1 point]

Date Posted: 28/09/2018
Category: Computer Science
Due Date: 02/10/2018
Instruction
Attached
No File uploaded yet.
Bidders
ExcellentTutor 8 years ago
Rated 9.09 earned 174531.76 around 5422 assignments.
Hello, Consider hiring me to do your assignment. I work fast, pay close attention to the instructions, and deliver a plagiarism-free paper. My price is also negotiable to accommodate your budget. Talk to me. Thank you.
$30.00
  • Hello! As you probably know grades are extremely important! I would like to know if you feel like you could score a guarantee 6/6 points for this assignment. Please let me know. Thank you!
    User_17262 | Sep 28, 2018, 01:17 AM
  • yes I will do it for you and give you 6/6. give it to me
    ExcellentTutor | Sep 28, 2018, 01:20 AM
  • I am good in java and I can assure you that I will give you an A.
    ExcellentTutor | Sep 28, 2018, 01:20 AM
  • Your price was 40 I believe a little ago. I have 10 more assignments to go after this one. If you give me a good price I promise I will hire you for all the rest of my assignments! Thank you!
    User_17262 | Sep 28, 2018, 01:23 AM
  • just make it 60 please. I will do it perfectly for you
    ExcellentTutor | Sep 28, 2018, 01:23 AM
  • is there any other attachment or just that?
    ExcellentTutor | Sep 28, 2018, 01:24 AM
  • If you agree to do them for $30 each I promise I will give them all to you and never look for another tutor to hire neither for this or next semester. I have 10 more assignments to go. Also, since you are really good at Java it should take you like 10-15 mins. to do the assignment so considering $30 in 15 mins. is really good.
    User_17262 | Sep 28, 2018, 01:25 AM
  • my friend 30 is on the lower side. kindly do this my friend. Let me give an offer of 50. I will always be here to help you. In the next assignment I will give you a price of 30 I promise.
    ExcellentTutor | Sep 28, 2018, 01:28 AM
  • There are additional instructions. Let me sent them to you
    User_17262 | Sep 28, 2018, 01:28 AM
  • Where (price) is replaced with the variable you chose to store the price per glass of lemonade, and total is replaced with the variable you chose to store the total due Make sure the total pay always displays 2 digits after the decimal point. Also display the dollar sign "$" before the total pay, as shown in the examples
    User_17262 | Sep 28, 2018, 01:28 AM
  • Example Output (user input is in green) Welcome to the Lemonade Stand, what is your name? Amanda Hi Amanda, how many glasses of lemonade would you like? They are $1.75 each 2 Each glass costs $1.75, so the total due is $3.50. How will you be paying today? C Thanks and have a nice day!
    User_17262 | Sep 28, 2018, 01:28 AM
  • It will literally take you 10 minutes! PLEASE :)
    User_17262 | Sep 28, 2018, 01:29 AM
  • I can do this perfectly well for you....50$ deal or no deal?
    ExcellentTutor | Sep 28, 2018, 01:29 AM
  • If I give it to you for $50 do you promise to do the rest of the assignments for $30?
    User_17262 | Sep 28, 2018, 01:30 AM
  • let me start working on ti kindly. I promise you that next assignment I will do it for 30
    ExcellentTutor | Sep 28, 2018, 01:31 AM
  • you have my word my friend. next assignment I will do it for 30
    ExcellentTutor | Sep 28, 2018, 01:31 AM
  • How about the rest of the assignments? I have 10 more to go!
    User_17262 | Sep 28, 2018, 01:32 AM
  • all the other assignments I will do them for 30
    ExcellentTutor | Sep 28, 2018, 01:32 AM
  • just give me this one for 50 and all the other assignments I will do them for 30. You will be posting them stated for ExcellentTutor Only
    ExcellentTutor | Sep 28, 2018, 01:34 AM
  • okay let me do it for you for 30
    ExcellentTutor | Sep 28, 2018, 01:34 AM
  • deal. all the starting with this one
    ExcellentTutor | Sep 28, 2018, 01:34 AM
  • am waiting for you to assign it to me for 30
    ExcellentTutor | Sep 28, 2018, 01:35 AM
  • YAY! Sorry for taking long to reply! I was checking your reviews and they are GREAT!!!
    User_17262 | Sep 28, 2018, 01:38 AM
  • About to assign this to you right NOW!
    User_17262 | Sep 28, 2018, 01:39 AM
  • Assign it to me now
    ExcellentTutor | Sep 28, 2018, 01:40 AM
  • I will do it for you
    ExcellentTutor | Sep 28, 2018, 01:40 AM
  • am waiting for you to assign it to me
    ExcellentTutor | Sep 28, 2018, 01:41 AM
  • should I start working on it my friend?
    ExcellentTutor | Sep 28, 2018, 01:43 AM
  • Yes please! The sooner you get it done, the sooner I will be sending you the rest of the assignments. Please let me know once you are done.
    User_17262 | Sep 28, 2018, 01:44 AM
  • Alright. I will complete and let you know. by tomorrow it will be ready
    ExcellentTutor | Sep 28, 2018, 01:45 AM
  • Thank you! Once you get it done I will be sending you 4 more assignments.
    User_17262 | Sep 28, 2018, 01:46 AM
  • okay my friend
    ExcellentTutor | Sep 28, 2018, 01:47 AM
  • Also, if I score 6/6 on all of my assignments, I promise that at the end of the semester, I will be giving you an additional $50 as a gift!
    User_17262 | Sep 28, 2018, 01:47 AM
  • Alright my friend
    ExcellentTutor | Sep 28, 2018, 01:48 AM
  • Update the class LemonadeStand from your CA2 assignment to include the following: 1. Change the price per glass of lemonade to a constant variable. Also be sure to rename the variable to show the proper naming convention for constant variables. [1 point] 2. Using a switch statement: [2 points] If the payment type is C or c, then display "Credit card transaction" on the screen If the payment type is D or d, then display "Debit card transaction" on the screen If the payment type is M or m, then display "Money transaction" on the screen If the payment type is V or v, then display "Venmo transaction" on the screen If the payment is none of the above, then display "Invalid payment type" on the screen, and end the program with System.exit(1);
    User_17262 | Sep 28, 2018, 02:17 AM
  • 3. Using a single if-else-if statement: [3 points] If the user paid via credit card or debit card, then charge a $0.50 credit/debit fee. Add that fee to the total, and display the new total on the screen. If the user paid via money (cash) and the total is $5 or more, then give a 10% discount. If the total is less than $5, then no discount will be given. Subtract that discount from the total, and display that new total on the screen. If the user paid via Venmo and the total is more than $10, then tell the user they earned a free glass of lemonade Example Output (user input is in green) Welcome to the Lemonade Stand, what is your name? Amanda Hi Amanda, how many glasses of lemonade would you like? They are $1.75 each 2 Each glass costs $1.75, so the total due is $3.50. How will you be paying today? C Credit card transaction. There will be a $0.50 fee for using Credit Card. Your new total is $4.00. Thanks and have a nice day!
    User_17262 | Sep 28, 2018, 02:18 AM
  • Hey! Just found out that I had not sent you all the instructions. There you go! So you will be sending me two attachments. Thank you! Tomorrow I will send you the next 4 assignments. They are shorter. thank you!
    User_17262 | Sep 28, 2018, 02:19 AM
  • Hello! Please let me know if you have completed the assignments yet. Thank you!
    User_17262 | Sep 29, 2018, 03:23 AM
  • Hello! Please let me know! Because I need you to let me know ASAP so that I can sent you the new assignments so that you can do them.
    User_17262 | Sep 29, 2018, 04:17 AM
  • Hello, if you are unable to do the assignment, please let me know so that I can assign it to someone else. Thank you!
    User_17262 | Sep 29, 2018, 04:38 AM
  • Hello, please let me know so I can review and submit it and release your payment.
    User_17262 | Sep 29, 2018, 04:51 AM
  • I have uploaded your assignment please check and release the payment. Regards
    ExcellentTutor | Sep 29, 2018, 04:57 AM
  • It is my first time using this website. Please how and where can I see the assignment? Thank you :)
    User_17262 | Sep 29, 2018, 05:03 AM
  • I have attached them. Check well you will see
    ExcellentTutor | Sep 29, 2018, 05:07 AM
  • got it?
    ExcellentTutor | Sep 29, 2018, 05:11 AM
  • I just released the payment! Great work!
    User_17262 | Sep 29, 2018, 05:13 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
tectutorz 8 years ago
Rated 9.66 earned 225503.62 around 8114 assignments.
Hi! Esteemed customer, I would like to do your project. I provide quality, free from plagiarism and errors. I will deliver it before due time to give you enough time for presenting it to your Professor. Consider my bid and avoid landing to procrastinators. (*_*)
$100.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
ElemenM 8 years ago
Rated 9.55 earned 44584.28 around 1434 assignments.
Hello, I can complete this assignment for you and score grade A. I guarantee you excellent and on-time work if assigned the job. Kindly consider my bid..
$30.00
  • Hello! Thank you so much for the information! Is the price negotiable??? Thank you!
    User_17262 | Sep 28, 2018, 01:21 AM
  • If you give me a better price I promise I will hire you until the end of the semester! I have 10 more assignments to go after this one!
    User_17262 | Sep 28, 2018, 01:21 AM
  • Hi, I think the price is fair based on the quality of work I will deliver..
    ElemenM | Sep 28, 2018, 01:23 AM
  • If you agree to do them for $30 each I promise I will give them all to you and never look for another tutor to hire neither for this or next semester. I have 10 more assignments to go. Also, since you are really good at Java it should take you like 10-15 mins. to do the assignment so considering $30 in 15 mins. is really good.
    User_17262 | Sep 28, 2018, 01:26 AM
  • I understand, please revise your offer to 35$ and I assign me the assignment
    ElemenM | Sep 28, 2018, 01:32 AM
  • Hi, I accept your 30$ offer. Kindly assign me the job
    ElemenM | Sep 28, 2018, 01:38 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
Dr_Newton 8 years ago
Rated 9.39 earned 16537.18 around 403 assignments.
My commitment to excellent delivery has made me the best in the company, that is why my name is highlighted. I take pride in what I do, which in a nutshell, is helping you successfully complete your assignment with the utmost consideration given to high quality and timeliness. Am a disciplined and versatile writer, I only submit all original content that is both grammatically correct and plagiarism free. having been both a writer and a professor for a few years now,I take a keen eye to follow the customer's instructions and revise any work that the customer may need.I look forward to working with you.
$100.00
  • are you there?
    Dr_Newton | Sep 28, 2018, 01:31 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
Essaymasters 8 years ago
Rated 8.94 earned 80799.14 around 2500 assignments.
I WILL DO THIS WORK FOR YOU AND I WILL GIVE YOU AN A GRADE PAPER!!.
$30.00
  • If you agree to do them for $30 each I promise I will give them all to you and never look for another tutor to hire neither for this or next semester. I have 10 more assignments to go. Also, since you are really good at Java it should take you like 10 mins. to do the assignment so considering $30 in 10 mins. is really good.
    User_17262 | Sep 28, 2018, 01:31 AM
  • okey.
    Essaymasters | Sep 28, 2018, 01:32 AM
  • I have changed the price kindly, assign
    Essaymasters | Sep 28, 2018, 01:35 AM
  • Thank you so much for lowering the price for me. I appreciate it. Do you guarantee a score of 6/6 on this assignment?
    User_17262 | Sep 28, 2018, 01:35 AM
  • Absolutely, I will give you full marks. I need us to work together
    Essaymasters | Sep 28, 2018, 01:36 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
phoniextutor 8 years ago
Rated 8.98 earned 50856.21 around 1767 assignments.
Hello. Kindly hire me please, promise to deliver HIGH-QUALITY WORK, PLAGIARISM FREE and 100% GRAMMAR that will guarantee you A+ ASAP.
$100.00
  • Hello. Kindly hire me please, promise to deliver HIGH-QUALITY WORK, PLAGIARISM FREE and 100% GRAMMAR that will guarantee you A+ ASAP.
    phoniextutor | Sep 28, 2018, 01:33 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}