I haven't done this before and I need some help starting this:

A programmer is writing a total ticket price calculator for a theme park. The park offers the price of £13 per adults and £8 per child. There is a bulk purchase discount of 10% off the total price if there are more than 5 people.

Write an algorithm that:
Asks for the number of adult tickets
Asks for the number of child tickets
Calculate the total price
Checks to see if there are more than five people and applies the appropriate discount
Produces the appropriate ticket price

algorithm

Adults? Store Adults in Adults
Children? Store Children in Children
totaal price=13*ADULTS +8*Children
If Adults +children >5, then total price=.9*total price
otherwise go to finish
Finish: Print: Total price

you could add this subroutine...

If Children > 7*Adults then
? That is quite a lot of children to supervise at once. Are you certain?
Input answer: if Yes, then go to total price. otherwise, go in Adults?

80% efficient

Sure, I'd be happy to help you with that!

Here's an algorithm that outlines the steps to calculate the total ticket price for the theme park:

1. Ask the user for the number of adult tickets. Store the input in a variable called "adultTickets".
2. Ask the user for the number of child tickets. Store the input in a variable called "childTickets".
3. Calculate the total price for the tickets by multiplying the number of adult tickets by £13 and the number of child tickets by £8. Store the result in a variable called "totalPrice".
- totalAdultPrice = adultTickets * £13
- totalChildPrice = childTickets * £8
- totalPrice = totalAdultPrice + totalChildPrice
4. Check if the total number of tickets (adultTickets + childTickets) is greater than 5. If it is, apply a 10% discount to the total price.
- if (adultTickets + childTickets) > 5:
- discountedPrice = totalPrice * 0.9
- totalPrice = discountedPrice
5. Print the final ticket price to the user.

Here's a sample implementation of the algorithm in Python:

```python
# Step 1
adultTickets = int(input("Enter the number of adult tickets: "))

# Step 2
childTickets = int(input("Enter the number of child tickets: "))

# Step 3
totalAdultPrice = adultTickets * 13
totalChildPrice = childTickets * 8
totalPrice = totalAdultPrice + totalChildPrice

# Step 4
if (adultTickets + childTickets) > 5:
discountedPrice = totalPrice * 0.9
totalPrice = discountedPrice

# Step 5
print("The total ticket price is £", totalPrice)
```

In this implementation, the user is prompted to enter the number of adult and child tickets, and the program calculates the total price based on the given ticket prices (£13 for adults and £8 for children). If there are more than 5 people, a 10% discount is applied to the total price. Finally, the program prints the final ticket price to the user.