1. comment for each qustion 2. algorthim in detals 3.flowchart for each code, 4 actual codin

Learning Goal: I’m working on a python question and need an explanation and answer to help me learn.

I need help with my 3 questions Python questions

NB:

1. comment for each qustion 2. algorthim in detals 3.flowchart for each code, 4 actual coding.

INSTRUCTIONS

Step 1: Algorithm Description. Include a step-by-step algorithm accompanied by either a flowchart and a Pseudo code(algorithm ) to develop and express your steps that accomplish the given task. Remember, you have to be very explicit and clear to make sure one can actually achieve the task following your directions. Describe the input(s), output(s) and the process of the algorithm.

Step 2: Program Code – Implementation: **Implement the algorithm in Python using the basic structures we covered in class (feel free to use additional ones):

User input

Variables

Operators

Conditional execution

Functions

Modules

Data structures: Lists, strings, tuples, sets, dictionaries

**Step 3: Program Testing: **Create a Test Plan with enough test cases that demonstrate your code works as intended. Explain how you used these test cases in your comments.

**Step 4: Program Documentation: **Be sure to comment thoroughly so that it is clear that you understand what every line of the code is intended to accomplish.

PROBLEMS

Problem 1. **Write a function to calculate the cost of a trip to a theme park, which includes the cost of the hotel, car rental, and park tickets. a. Define a function to calculate the cost of the hotel. The function should allow the user to choose one of the room types below and enter the length of their stay. The function then calculates the cost accordingly.

Standard room: 150$ per night

Deluxe room: 180$ per night

Suite: 220$ per night.

b. Define another function to calculate the cost of renting a car. Rental cars charge100$ up to 24 hours and 60$ added for each additional day.

c. Define a third function to calculate the cost of parking at the theme park. The cost of parking is 175$ for the first day and 50$ for each additional day.

d. Your final function should calculate the total cost of the theme park trip by calling the three functions above and summing their results.

Problem 2.Write a function that asks the user to enter their exam scores in their History, Math, Language Arts, and Social Science classes and save the scores in a dictionary.Example.{“History”: [56, 75, 25], “Math”: [75, 85, 95, 65], “Language Arts”: [43, 32, 25], “Social Studies”: [90, 100, 95, 80]}Return the user the two following dictionaries:

Calculate the average score for each class and save it in a new dictionary.

Next convert the average scores into letter grades based on the following scale and save the letter grades in another dictionary.

score > 90: A

75 < score <= 90: B

60 < score <= 75: C

score <= 60: D

Problem 3. Write a function that accepts positive integers until the user enters “quit” and splits the numbers into three lists: the first one contains all the numbers, the second one contains all even numbers, and the third one contains all odd numbers. The function should return all three lists as well as the minimum and the maximum numbers in each list.Your function should prompt the user to enter a positive number if they enter a negative value

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
error: Content is protected !!