What's new

Help Phc bot

Sure, I can help you with that! Here's a simple Python program for organizing a debut party for a teenage girl:

Code:
print("Welcome to the Debut Party Planning Program!")

# Get the basic details of the party from the user
name = input("What is the name of the debutante? ")
age = int(input("How old is she turning? "))
date = input("What is the date of the party? ")
venue = input("Where will the party be held? ")

# Display the basic details back to the user
print("Great! Here are the details so far:")
print("Debutante's Name:", name)
print("Age:", age)
print("Date:", date)
print("Venue:", venue)

# Get the guest list from the user
guests = []
while True:
    guest = input("Enter the name of a guest (or 'done' when finished): ")
    if guest == "done":
        break
    guests.append(guest)

# Display the guest list back to the user
print("Guest List:")
for guest in guests:
    print("-", guest)

# Get the menu details from the user
appetizer = input("What will be served as the appetizer? ")
entree = input("What will be served as the entree? ")
dessert = input("What will be served for dessert? ")

# Display the menu back to the user
print("Menu:")
print("- Appetizer:", appetizer)
print("- Entree:", entree)
print("- Dessert:", dessert)

# Get the music details from the user
dj = input("Who will be the DJ for the party? ")
song_list = []
while True:
    song = input("Enter the name of a song (or 'done' when finished): ")
    if song == "done":
        break
    song_list.append(song)

# Display the song list back to the user
print("Song List:")
for song in song_list:
    print("-", song)

# Calculate the total cost of the party
cost = len(guests) * 25 + 1000

# Display the total cost back to the user
print("Total cost of the party: $", cost)

This program will prompt the user for the debutante's name, age, party date, and venue, as well as the guest list, menu, and music details. It will then calculate the total cost of the party based on the number of guests and a fixed cost of $1000 for the venue and other expenses. You can customize this program further based on your specific requirements and preferences.
 
Flow of program but not in code.

Sure, I can help you with that! Here's a simple Python program for organizing a debut party for a teenage girl:

Code:
print("Welcome to the Debut Party Planning Program!")

# Get the basic details of the party from the user
name = input("What is the name of the debutante? ")
age = int(input("How old is she turning? "))
date = input("What is the date of the party? ")
venue = input("Where will the party be held? ")

# Display the basic details back to the user
print("Great! Here are the details so far:")
print("Debutante's Name:", name)
print("Age:", age)
print("Date:", date)
print("Venue:", venue)

# Get the guest list from the user
guests = []
while True:
    guest = input("Enter the name of a guest (or 'done' when finished): ")
    if guest == "done":
        break
    guests.append(guest)

# Display the guest list back to the user
print("Guest List:")
for guest in guests:
    print("-", guest)

# Get the menu details from the user
appetizer = input("What will be served as the appetizer? ")
entree = input("What will be served as the entree? ")
dessert = input("What will be served for dessert? ")

# Display the menu back to the user
print("Menu:")
print("- Appetizer:", appetizer)
print("- Entree:", entree)
print("- Dessert:", dessert)

# Get the music details from the user
dj = input("Who will be the DJ for the party? ")
song_list = []
while True:
    song = input("Enter the name of a song (or 'done' when finished): ")
    if song == "done":
        break
    song_list.append(song)

# Display the song list back to the user
print("Song List:")
for song in song_list:
    print("-", song)

# Calculate the total cost of the party
cost = len(guests) * 25 + 1000

# Display the total cost back to the user
print("Total cost of the party: $", cost)

This program will prompt the user for the debutante's name, age, party date, and venue, as well as the guest list, menu, and music details. It will then calculate the total cost of the party based on the number of guests and a fixed cost of $1000 for the venue and other expenses. You can customize this program further based on your specific requirements and preferences.
Flow of program but not in code.
 

Similar threads

Back
Top