Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

PYTHON

1Write 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.

2A 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 display the total cost.

3Federal law require 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 in a week , the persons gross pay should be

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

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

5Display the table of numbers and the square.

6Develop 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.

7Display 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?

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

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

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

PLEASE GIVE THE NUMBERS IN FRONT OF EACH ANSWER SO I KNOW WHICH QUESTION'S ANSWER IS IT

++++++++++++++++++++++++++++++++++++++++

[lk1]

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

How to find if any no. is divisble by 4 or not ?

Answered: 1 week ago

Question

Explain the Pascals Law ?

Answered: 1 week ago

Question

What are the objectives of performance appraisal ?

Answered: 1 week ago

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago