Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE DO THIS IN PYTHON!!! 1.) Exercise #1: Design and implement a program (name it Youth) that reads from the user an integer values repressing

PLEASE DO THIS IN PYTHON!!!

1.) Exercise #1: Design and implement a program (name it Youth) that reads from the user an integer values repressing age (say, age). The program prints out the entered values followed by a message as follows: If age is less or equal to 21, the message is Youth is a wonderful thing. Enjoy.. Finally, the program always prints out the message Age is a state of mind. Format the outputs following the sample runs below.

Sample run 1:

You entered: 20 Youth is a wonderful thing. Enjoy. Age is a state of mind.

Sample run 2:

You entered: 25 Age is a state of mind.

Sample run 3:

You entered: 21 Youth is a wonderful thing. Enjoy.

Age is a state of mind.

2.) Exercise #2: The weekly pay for an employee is determined based on the following parameters:

Standard work hours by week is 40 hours.

Hourly pay rate is $10.00 per hour

Overtime hours are paid at time and a half the rate (that is $15.00 per hour).

Design and implement a program (name it WeeklyPay) that read number of hours worked per week (as integer value), prints out the entered hours, and then prints out the gross earning. Organized your output following these sample runs.

Sample run 1:

You entered 20 hours. Gross earning is $200

Sample run 2:

You entered 40 hours. Gross earning is $400

Sample run 3:

You entered 50 hours. Gross earning is $550

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions