Question

room Hef main(); #run order: date waitlist budget result numGuests = guests() weekDay = date() waitList = waitlist(weekDay) h
def waitlist (weekDay): if weekDay is 2 or 4 or 6: #Tuesday, Thursday, Saturday hotelwait = True else: hotelwait = False retu
def result(waitlist, numGuests, roomType): if numGuests < 5: numRooms = 1 #each room fills 4 ppl elif numGuests >= 5: numRoom

Please help me write a program flowchart!

I have been struggling for quite some time, and mainly I need the answer.
Thank you !

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The whole program flowchart is given based on the functions.

The main() function and guests() function flowchart is given below:

Main guests numGuests=0 numGuests=guests() weekDay=date() while numGuests<=0 or numGuests> waitList=waitlist(weekDay) hotelBu

The Date() and disPlayWeek(weekDay) function flowchart is given below:

Date displayweek(weekDay) 2 weekday=None if week Day==0 Day-sunday while weekDay is None or weekday>6 or weekDayco elif week

The waitlist(weekDay) and result(waitlist,numGuests,roomType) function flowchart is given below:

waitlist(weekDay) result(waitlist, numGuests,roomType) if numGuests<5 if weekDay is 2 or 4 or 6 numRooms=1 hotelwait=True eli

The budget() function flowchart is given below and in this way you can draw for room(numGuests,hotelBudget).

budget hotelBudget=0 While hotelBudget<=0 hotelBudget=take input from user if hotelBudget<=0 Output you cant have hotelBudge

Add a comment
Know the answer?
Add Answer to:
Please help me write a program flowchart! I have been struggling for quite some time, and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please help me to write a c++ program that will Implement a HotelRoom class, with private...

    Please help me to write a c++ program that will Implement a HotelRoom class, with private data members: the room number, room capacity (representing the maximum number of people the room can accommodate), the occupancy status (0 or the number of occupants in the room), the daily room rate. Member functions include: • a 4-argument constructor that initializes the four data members of the object being created (room number, room capacity, room rate, occupancy status) to the constructor's arguments. The...

  • Please help me complete this. I have been struggling for quite some time, and mainly I...

    Please help me complete this. I have been struggling for quite some time, and mainly I need the answer. Thank you ! 9) Darla's Cookie Emporium borrowed money by issuing $200,000 of bonds for $192,000 on January 1, 2019. The bonds pay interest on January 1 and July 1. The stated rate of interest is 5% and the bonds mature in 10 years. Any discount or premium is amortized using the straight-line method. (2 pts) Required: Prepare journal entries on...

  • Please help me complete this. I have been struggling for quite some time, and mainly I...

    Please help me complete this. I have been struggling for quite some time, and mainly I need the answer. Thank you ! ESSAY. Write your answer in the space provided or on a separate sheet of paper. 6) At the end of the current year, Accounts Receivable has a balance of $900,000, the Allowance for Uncollectible Accounts has a debit balance of $1,000 and net credit sales for the year are $3,000,000. The company uses the percent-of-sales method. Its credit...

  • Please help me complete this. I have been struggling for quite some time, and mainly I...

    Please help me complete this. I have been struggling for quite some time, and mainly I need the answer. Thank you! A B С D E F G H 1 WinterRain HarvestRain 160 Age 31 2 600 3 690 80 4. 502 130 Year 1952 1953 1955 1957 1958 1959 1960 5 420 110 187 30 28 26 25 24 23 6 7 582 485 763 830 8 9 1961 22 10 1962 697 21 20 11 12 1963 1964...

  • Please help me complete this. I have been struggling for quite some time, and mainly I...

    Please help me complete this. I have been struggling for quite some time, and mainly I need the answer. Thank you! A B С D E F G H 1 WinterRain HarvestRain 160 Age 31 2 600 3 690 80 4. 502 130 Year 1952 1953 1955 1957 1958 1959 1960 5 420 110 187 30 28 26 25 24 23 6 7 582 485 763 830 8 9 1961 22 10 1962 697 21 20 11 12 1963 1964...

  • Hello, I have a bug in my code, and when I run it should ask the...

    Hello, I have a bug in my code, and when I run it should ask the user to enter the month and then the year and then print out the calendar for the chosen month and year. My problem with my code is that when I run it and I enter the month, it doesn't ask me for the year and it prints all the years of the month I chose. Please help! Code: #include "calendarType.h" #include <iostream> using namespace...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT