Question: Python 1. Write the program to determine how much to tip the server in a restaurant. The tip should be 15% of the bill, with

Python

1. Write the program to determine how much to tip the server in a restaurant. The tip should be 15% of the bill, with a minimum of $2.

2. A copy center charges 5 cents per copy for the first 100 copies and 3 cents per copy for each additional copy. Write a program that requests the number of copies as input and displays the total cost.

3. Federal law requires that hourly employees be paid Time and a half for work in excess of 40 hours in a week. For example, if a persons hourly wage is $ 12 and he/ she works 60 hours a week, the persons gross pay should be

(40 * 12) + (1.5 * 12* (60 40)) = $840

4. Write the Python Code for the Celsius and Fahrenheit Converter.

5. Display the table of numbers and the square.

6. Develop the code to find the minimum, maximum and average of a sequence of non- negative numbers entered by the user. The user is told to enter the number -1 to indicate the end of data entry.

7. Display the simple menu options to show the facts about the United States. For example, option 1: Capital, 2: National Bird, 3: National flower, 4. Do you like to repeat?

8. Demonstrate how two strings can be compared with the < operator. Get two names from the user and display the names in alphabetical order.

9. Create a drawing panel and the graphical pen to represent the rectangle and an oval. Use your own dimensions. Fill the rectangle with blue and oval with green color.

10. With the proper code, methods and functions, open a text file called input.txt, read the contents of it and print it onto the screen.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!