Document the first few lines of your program to include your name, the date, and a brief description of what the program does.

Document the first few lines of your program to include your name, the date, and a brief description of what the program does. You will need to create three variables in the main part of the program: keepGoing, totalBottles, and totalPayout. You will then use a while loop and continue until the user has entered a value other than “y” (without the quotes) to end the program. Within the while loop, you will get the bottles for each of the seven days from the user (don’t forget to convert this value from a string to a number), calculate the payout for the total, and print out the total bottles and total payout. You will need to create three (3) functions for this program: getBottles(), calcPayout() and printInfo(). The getBottles() function will also use a while loop to get each of the seven (7) bottle counts and tally the total bottles. It should return the total bottles to the main routine. The calcPayout() function should take in the total bottles and return the total payout. Last is the printInfo() function that will simply take as arguments the total bottles and total payout. It will simply print these out to the user. Last, you will prompt the user if he or she wishes to end the program. That will then end the program.

Struggling with paper writing? Look no further, as you have found the ideal paper writing company! We are a reputable essay writing service that offers high-quality papers at affordable prices. On our user-friendly website, you can request a wide range of assignments. Rest assured that our work is entirely original. Each essay is crafted from scratch, tailored to meet the precise requirements of your assignment. We guarantee that it will successfully pass any plagiarism check.

Need Help with Your Essay? Our Experts Are Ready to Assist

Tell us about your assignment and we will find the best writer for your paper

Write My Essay For Me

Get Your Assignments Completed by Expert Writers. Hire Essay Helpers for Any Task

Order essays, term papers, research papers, reaction paper, research proposal, capstone project, discussion, projects, case study, speech/presentation, article, article critique, coursework, book report/review, movie review, annotated bibliography, or another assignment without having to worry about its originality – we offer 100% original content written completely from scratch

PLACE YOUR ORDER