Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

YouTube | p summit!( | C writing | Mail-De 1 Assignme D 967744 985705 ps://learn-us-east-1-prod-fleet01-xythos.s3.us-east-1.amazonaws.com/Sc1c67a3c99fc/967744?response-content-disposi Bookmarks ] Twitch e George Perkins at P Ingrid Brown-Scott

image text in transcribed

YouTube | p summit!( | C writing | Mail-De 1 Assignme D 967744 985705 ps://learn-us-east-1-prod-fleet01-xythos.s3.us-east-1.amazonaws.com/Sc1c67a3c99fc/967744?response-content-disposi Bookmarks ] Twitch e George Perkins at P Ingrid Brown-Scott D Watch Dragon Ball NE Game Time-Worl Program 1-COSC 113.001 Spring 2019 Weckly Pay-Duc 2/14/2019 Input: File input is for an unknown number of employees; there are 4 lines of data for each employee. The first line has the employee's full name. The second line contains the employee's hourly pay rate, which always has a S sign on its lefl; there may be other text (characters) before and/or after the pay rate. The third line has the number of hours worked; this number always has a colon () followed by a space on its left. Other text may be present as well. The fourth linc contains a dollar amount which the employee wants put into a savings accountqthis value is always preceded by the S sign. Sample input for two employces is shown below: Ralph Montgomery My pay is $12.00 per hour I worked: 38.75 hours. Amount for Savings is $100.00 Mary K. Smith Pay $11.50 Hours Worked: 45.5 hours Save $150 The program calculates total weekly pay; the hourly pay rate is used for hours up to and including 40. Any hours over 40 carn 1.5 times the hourly pay rate. The program also alculates YouTube | p summit!( | C writing | Mail-De 1 Assignme D 967744 985705 ps://learn-us-east-1-prod-fleet01-xythos.s3.us-east-1.amazonaws.com/Sc1c67a3c99fc/967744?response-content-disposi Bookmarks ] Twitch e George Perkins at P Ingrid Brown-Scott D Watch Dragon Ball NE Game Time-Worl Program 1-COSC 113.001 Spring 2019 Weckly Pay-Duc 2/14/2019 Input: File input is for an unknown number of employees; there are 4 lines of data for each employee. The first line has the employee's full name. The second line contains the employee's hourly pay rate, which always has a S sign on its lefl; there may be other text (characters) before and/or after the pay rate. The third line has the number of hours worked; this number always has a colon () followed by a space on its left. Other text may be present as well. The fourth linc contains a dollar amount which the employee wants put into a savings accountqthis value is always preceded by the S sign. Sample input for two employces is shown below: Ralph Montgomery My pay is $12.00 per hour I worked: 38.75 hours. Amount for Savings is $100.00 Mary K. Smith Pay $11.50 Hours Worked: 45.5 hours Save $150 The program calculates total weekly pay; the hourly pay rate is used for hours up to and including 40. Any hours over 40 carn 1.5 times the hourly pay rate. The program also alculates

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

IBM Db2 11 1 Certification Guide Explore Techniques To Master Database Programming And Administration Tasks In IBM Db2

Authors: Mohankumar Saraswatipura ,Robert Collins

1st Edition

1788626915, 978-1788626910

More Books

Students also viewed these Databases questions

Question

Tell the merits and demerits of Mendeleev's periodic table.

Answered: 1 week ago