Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

5/16/2017 Need help ASAP programming this lemonade stand game on this website ht

ID: 3840452 • Letter: 5

Question

5/16/2017 Need help ASAP programming this lemonade stand game on this website http://www.coolmath-games.com/0-lemonade-stand in python 3.1.2 on windows computer I need a flowchart, pseudocode and a complete working program for the game in python and all the info I need is listed below that needed to create the program.

what I need to program in python:

introduction to the lemonade stand game

“welcome to my lemonade stand game”

how long would you like to play the game?

in the game, you can play” 7 days 14 days 30 days”

you start the game with $20.00

Temperature

Set the Random temperature for each day the player is playing the game

Weather forecast: hazy, raining, sunny, breeze

next, in the game, you buy inventory/purchasing

how many cups would you like to buy?

25 cups for .97

50 cups for $1.63

100 cups for$ 2.86

How many lemons would you like to buy?

10 for .61

30 for $2.15

75 for $4.10

How many cups of sugar would you buy?

8 for .55

20 for $1.75

48 for $3.36

How many cups of ice would you like to buy?

100 for .98

250 for $2.20

500 for $3.62

before you start the game,

How much they want customers to pay per cup of lemonade.

How many lemons they want to use in each pitcher of lemonade.

How many cups of sugar do they want to use in one pitcher of lemonade

How many cups of ice that want to use in each pitcher of lemonade.

In the game and at the end

Also, they can go bankrupt in the game if they run out of money.

And they can also sell out of lemonade.

And at the end of the day,

you need to tell them how much profit they have made that day.

also, tell them their customer satisfaction in a % form and their popularity in a %

so how many customers walked away today happy and how many bought your lemonade

PLEASE DO NOT SAY "Insignificant knowledge." LET ME KNOW EXACTLY WHAT NEEDS TO BE ADD IN ORDER TO CREATE PROGRAM.

Explanation / Answer

#include #include #include // Symbolic constants to be used. // Prices of bags of sugar and lemon, respectively. #define PRICE_LEMON 3.50 #define PRICE_SUGAR 2.00 // Fraction of a bag of lemons and sugar used on a single cup of lemonade. #define LEMON_PER_CUP 0.03 #define SUGAR_PER_CUP 0.04 // The initial loan the user is given to start their lemonade stand. #define START_MONEY 20.00 // Using symbolic constants for true and false. #define FALSE 0 #define TRUE 1 void buy_lemons(double *pLemons, double *pMoney); void buy_sugar(double *pSugar, double *pMoney); int weather(); int num_cups_sold(int weather, int cost); void status_report(double cash, double num_lemons, double num_sugar, int day); int max_sell(double num_lemons, double num_sugar); int get_cost(); void sell_cups(double *pMoney, double *pLemons, double *pSugar); void end_message(double money); int main() { int num_day, ans; double money = START_MONEY, num_lemons = 0, num_sugar = 0; srand(time(0)); printf("Welcome to the Game of Lemonade! "); printf("You start the game with $%.2lf and no supplies! ", START_MONEY); // Loop through each day. Ask the user if they want to buy lemons. If so, // carry out the transaction. Then ask them if they want to buy sugar. // If so, do this transaction as well. Then, let them sell lemonade for // the day. Finally, print a status report after they've sold lemonade // at the end of the day. for(num_day = 1; num_day
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote