Loading
Home › Computer Science Help › Instructions Update the class LemonadeStand from your BA3...
Status: Completed

Instructions Update the class LemonadeStand from your BA3 assignment to include the following: 1. Using a while loop, if the user enters an invalid payment type (not C, c, D, d, M, m, V or v) then tell them that was invalid attempt and allow the user to try again. Allow only 3 invalid attempts, and after the 3rd invalid attempt, say "No lemonade for you, goodbye!" end the program [3 point] 2. Using a do-while loop, after the program has completed, ask the user if they would like to run the program again. If the user types "Yes" or "yes" then the program should start over. If the user types anything else, the program should just end normally [3 points]

Date Posted: 29/09/2018
Category: Computer Science
Due Date: 01/10/2018
Instruction
Example Output 1 (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? G Sorry, invalid payment type. Try again: C Credit card transaction. There will be a $0.50 fee for using Credit Card. Your new total is $4.00. Would you like to run the program again? (Yes or no): No Thanks and have a nice day! Example Output 2 (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? A Sorry, invalid payment type. Try again: B Sorry, invalid payment type. Try again: E No lemonade for you, goodbye! Example Output 3 (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. Would you like to run the program again? (Yes or no): Yes Welcome to the Lemonade Stand, what is your name? Joe Hi Joe, how many glasses of lemonade would you like? They are $1.75 each 1 Each glass costs $1.75, so the total due is $1.75. How will you be paying today? M Money transaction. Would you like to run the program again? (Yes or no): No Thanks and have a nice day!
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
  • Thank you so much for commenting. This assignment is a follow up of the assignment that you just delivered to me today. Thank you!
    User_17262 | Sep 29, 2018, 05:53 AM
  • I would really appreciate it if you can finish it by tomorrow. Thank you!
    User_17262 | Sep 29, 2018, 05:58 AM
  • I have uploaded your assignment please check and release the payment. just open the zip you will find it there. Regards
    ExcellentTutor | Sep 30, 2018, 21:12 PM
  • Thank you so much! You are amazing! I will be sending you the next one soon :)
    User_17262 | Oct 01, 2018, 06:33 AM
  • let me do the assignments you have uploaded. I will do them in time and excellently
    ExcellentTutor | Oct 03, 2018, 08:05 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
surrogatewriter 8 years ago
Rated 9.31 earned 75264.37 around 2854 assignments.
Hi, kindly allow me to assist you with your assignment, I’m an expert and only deliver quality and plagiarism free work within the stipulated time. Kindly allow me to work on your project. Thank you.
$60.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
Robert_d_308 8 years ago
Rated 9.37 earned 62524.46 around 2184 assignments.
I promise to commit my great experience to guarantee you a top class, a great and an excellent work, 100% free from PLAGIARISM, and within the stipulated time frame. Please allow me to complete on your homework. Thank you in advance.
$30.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
exclusivewriter 8 years ago
Rated 9.41 earned 74860.53 around 2443 assignments.
Dear customer, I’m an expert in this field and I promise to deliver quality within the shortest time possible. I promise an A+ grade since this is my field of profession. Am ready to start working on this project. Thank you
$60.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
WBURO 8 years ago
Rated 9.25 earned 75605.06 around 2167 assignments.
How are you there?..For your assignment above I assure to provide quality work that is free from plagiarism and in time, kindly consider my bid
$50.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
phoniextutor 8 years ago
Rated 8.98 earned 50856.21 around 1767 assignments.
Hello. Kindly ASSIGN me please, promise to deliver HIGH-QUALITY, PLAGIARISM FREE and 100% GRAMMAR WORK that will guarantee
$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 29, 2018, 05:30 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}