Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (3 points) ASCII art involves making pictures using text characters. For example, here's a cute one of a sloth: Find a nice piece of

image text in transcribed
image text in transcribed
image text in transcribed
1. (3 points) ASCII art involves making "pictures" using text characters. For example, here's a cute one of a sloth: Find a nice piece of ASCII art on the Internet. Or, if you're feeling particularly artistic, create your own! It can be anything you want, as long as it satisfies these requirements: - The art must be at least 10 characters wide by 10 characters tall. - You should be comfortable showing it to a random grandma. Write a program named ascii art.py that prints your art onto the screen. 2. (4 points) You've started a new sloth rental business to (slowly) spread the joy of sloths to the world. Customers can rent a sloth for a certain number of hours, with the price going up as the time increases. This is your pricing scheme: - There is a base fee of $250, regardless of how long the customer wants to rent the sloth. - The minimum time to rent the sloth is 2 hours. Each hour beyond the first 2 costs $80 per hour. - Memphis sales tax(9.75%) is added to get the final amount. For example, someone who wants to rent a sloth for 6 hours would be charged $625.575, broken down like this: - Base fee: $250 - Hourly charge: 4 hours beyond 2 , at $80/ hour =$320 - Subtotal: $570 - Tax: 9.75% of $570=$55.575 - Final amount: $625.575 Write a program named sloth rental.py that gets user input for how many hours they want to rent a sloth. You may assume this input is an integer that's at least 2. The program should then compute and show the final price, based on the above scheme. Note: because calculations on floating-point numbers are not always exact, your program may show slight roundoff errors. This is totally fine! Example program run (underlined parts indicate what the user enters) How many hours would you like to rent a sloth? 6 The total cost will be $625.575. Be sure to verify that both of your programs successfully run

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions

Question

Why is widespread adoption of CPFR below expectations?

Answered: 1 week ago

Question

Give a brief defi ni tion of the terms population and sample.

Answered: 1 week ago

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago

Question

Write short notes on departmentation.

Answered: 1 week ago

Question

What are the factors affecting organisation structure?

Answered: 1 week ago

Question

What are the features of Management?

Answered: 1 week ago

Question

Briefly explain the advantages of 'Management by Objectives'

Answered: 1 week ago