At Westonci.ca, we connect you with the best answers from a community of experienced and knowledgeable individuals. Explore thousands of questions and answers from a knowledgeable community of experts ready to help you find solutions. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

Write an algorithm to:

1. Take as input the number of hours the user has parked and whether their car is electric or not.
2. Calculate and output the total price.
3. Repeat continually until the user enters 0 hours.

Note: The hotel car park charges £4 per hour. If the car is electric, this price is halved to £2 per hour.

You must use either:
- OCR Exam Reference Language, or
- A high-level programming language that you have studied.


Sagot :

Final answer:

Provides an algorithm to calculate parking charges based on hours parked and car type.


Explanation:

Algorithm:

  1. Take as input the number of hours the user has parked and whether their car is electric or not.
  2. Calculate the total price based on the parking duration and car type.
  3. Repeat the process until the user enters 0 hours.

Learn more about Parking charges algorithm here:

https://brainly.com/question/33323210


Thanks for using our service. We aim to provide the most accurate answers for all your queries. Visit us again for more insights. We hope you found what you were looking for. Feel free to revisit us for more answers and updated information. We're here to help at Westonci.ca. Keep visiting for the best answers to your questions.