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

Python Flowchart & Pseudocode I just need the FLOWCHART & PSEUDOCODE with raptor

ID: 3877618 • Letter: P

Question

Python Flowchart & Pseudocode

I just need the FLOWCHART & PSEUDOCODE with raptor for these 2 programs. Thank you

1 - Assume that hot dogs come in packages of 10, and hot dog buns come in packages of 8. Design a modular program that calculates the number of packages of hot dogs and the number of packages of hot dog buns needed for a cookout, with the minimum amount of leftovers. The program should ask the user for the number of people attending the cookout, and the number of hot dogs each person will be given. The program should display the following:

The minimum number of packages of hot dogs required

The minimum number of packages of buns required

The number of hot dogs that will be left over

The number of buns that will be left over

2 -

Write a program that will take as input the type of restaurant the user ate at (Diner, Good or Fancy), the cost of the meal, the number of people in his/her party, and how good the service was, to determine the dollar amount of the tip based on the following information:

Base Tip:
Diner: 12%
Good Restaurant: 15%
Fancy Restaurant: 20%

Additions/Subtractions:
Poor Service: -2%
Good Service: +0%
Excellent Service: +2%
1-5 in party: +0%
6-10 in party: +3%
more than 10: +5%

Explanation / Answer

# Get the value of the bill from the user. This

# is the total amount.

print "What was the value of the bill?"

bill = input()

#number of people

print "Number of peoples in party"

people=input()

if(people >1 and people<5)

return percentage=0.00;

ifelse (people >5 and people <10)

return percentage=0.03

else percentage=0.50;

# Find out how the service was.

print "How was the service?"

service = input()

# Good service gets a 0%.Bad service gets -2%.Excellent service gets +2%.

if service == "good":

percentage = 0.00

else: percentage = -0.20

if service== "Excellent":

percentage = +0.20

else percentage = 0.00

# Calculate and display the tip.

tip = bill * percentage print tip