1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
DochEvi [55]
3 years ago
7

OCR Land is a theme park aimed at children and adults. Entrance tickets are sold online. An adult ticket to OCR Land costs £19.9

9, with a child ticket costing £8.99. A booking fee of £2.50 is added to all orders. One ride in OCR Land has a minimum height of 140 cm to ride alone or 120 cm to ride with an adult. Create an algorithm that: • asks the user to input the height of the rider, in centimetres • if needed, asks if they are riding with an adult • outputs whether or not they are allowed to ride • repeats this process until 8 people have been allowed to ride
Computers and Technology
1 answer:
sladkih [1.3K]3 years ago
5 0

Answer:

count = 0

while count != 8:

   height = float(input("Enter height of the rider: "))

   if height >= 140:

       print("You are allowed to ride")

       count += 1

   else:

       if height >= 120:

           answer = input("Is the rider with an adult (yes/no): ")

           if answer == "yes":

               print("You are allowed to ride")

               count += 1

           else:

               print("You are not allowed to ride")

       else:

           print("You are not allowed to ride")

Explanation:

Initialize the count as 0, it will count the number of people allowed to ride

Create a while loop that iterates while count is not equal to 8

Inside the loop, ask the user for the height. If the height is greater than or equal to 140, print "You are allowed to ride" and increment the count by 1. Otherwise, check if the height is greater than or equal to 120. If it is not, print "You are not allowed to ride". If it is, ask if the rider is with an adult or not. If it is not, print "You are not allowed to ride". If it is print "You are allowed to ride" and increment the count by 1.

You might be interested in
Ummm, I hate to interrupt your day, but does anyone know where Mitch72 is????? Because he hasn't talked in a week, and he hasn't
Anettt [7]

Answer:

sorry but no

Explanation:

4 0
3 years ago
_____ memory is a limited-capacity memory system in which information is usually retained for less than a minute unless strategi
Naddika [18.5K]

Answer:

short- term memory

Explanation:

Computer stores memory in two major ways: long-term and short-term. Short-term memory usually takes seconds to delete except rehearsals or other strategies are used to retain it for longer periods. Thus, short-term memory are simply limited-capacity memory system for retaining information for a short period.

7 0
4 years ago
Is this website real? Or is it a scam?
nikitadnepr [17]

It's a scam don't buy something

5 0
3 years ago
Match the column.<br> Description Shortcut key<br> Move to next cell in row page up
Musya8 [376]

The matchup are:

1) move to next cell in row - tab

2) move to previous cell in row - shift+tab

3) up one screen - page up

4) down one screen - page down

5) move to next worksheet - ctrl + page down

6) move to previous worksheet - ctrl + page up

7) go to first cell in data region - ctrl+ home

8) go to last cell in data region - ctrl + end

<h3>What are computer shortcut keys?</h3>

A computer shortcut is known to be some group of one or a lot of keys that brings about a command in software or in any kind of operating system.

Hence, The matchup are:

1) move to next cell in row - tab

2) move to previous cell in row - shift+tab

3) up one screen - page up

4) down one screen - page down

5) move to next worksheet - ctrl + page down

6) move to previous worksheet - ctrl + page up

7) go to first cell in data region - ctrl+ home

8) go to last cell in data region - ctrl + end

Learn more about computer shortcut from

brainly.com/question/12531147

#SPJ1

4 0
2 years ago
Extend the class linkedListType by adding the following operations: Write a function that returns the info of the kth element of
WINSTONCH [101]

Answer:

Explanation:

The following code is written in Java. Both functions traverse the linkedlist, until it reaches the desired index and either returns that value or deletes it. If no value is found the function terminates.

public int GetNth(int index)

       {

       Node current = head;

       int count = 0;

       while (current != null)

       {

       if (count == index)

       return current.data;

       count++;

       current = current.next;

       }

       assert (false);

       return 0;

       }

public int removeNth(int index)

       {

       Node current = head;

       int count = 0;

       while (current != null)

       {

       if (count == index)

       return current.remove;

       count++;

       current = current.next;

       }

       assert (false);

       return 0;

       }

6 0
3 years ago
Other questions:
  • Three of the following values could be stored as strings. When would you NOT use a
    12·1 answer
  • When you purchase software in a box, reading the ________ is important to know if the software will function properly?
    13·1 answer
  • The user does not need to highlight data within an Excel worksheet in order to remove conditional formatting. True or false
    14·1 answer
  • If you are logged on to Windows Live Messenger, why would you be unable to engage
    14·1 answer
  • The auto fill feature of excel only allows the user to fill cells with a series using the existing formatting options of the cel
    10·1 answer
  • Any one have a snnaap chhhaatt if so i need help with something n there
    15·2 answers
  • What is binary number system? Why is it used in computer system?
    13·2 answers
  • A digital presence created online by an individual or organization using a digital device is called a identity.
    7·1 answer
  • Which of the following are factors that can cause damage to a computer? Check all of the boxes that apply.
    13·2 answers
  • 9.3 code practice
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!