Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Subject:-C++ Thank you .For each question: Specify the question number o o Source code. Copy/Paste your final source code. You must include standard comment header
Subject:-C++
.For each question: Specify the question number o o Source code. Copy/Paste your final source code. You must include standard "comment header even if code is provided. Do Not paste a snippet of your source code, it must be copy/pasted. o Initial test plan. After reading the question requirements, but before beginning any coding, create the test case table, below, completed through column Expected Output. Include in your report. o Final test plan. Write your program then complete the test table with actual output results and include in your report AFTER your source code. o Output resiults, Paste in a snippet of output showing results for every listed test case in your final test plan, labeled with test case # Test Table: Test ValidDescription of testInput Expected Output Actual Output Test Pass / Fail # | Invalid Data o Add/ delete rows from Test Table as necessary o Modify column widths as necessary o Test both valid and invalid input o Test for every output expected o If failure is an expected output and it happens then that test Passes o Any test that fails means the program must be fixed so that it passes the test o Failing tests need a new test row. ie la, lb, etc, showing corrections from onginal Question 3: You are to write a program to compute the weekly pay for a worker, including any applicable overtime. Overtime refers to hours worked per week in excess of 40 hours. Companies pay regular pay up to and including 40 hours per week and time-and-a-half only for hours over 40 (overtime). Input: The number of hours worked in 1 week (a double) Output: The total pay for the week. Enter the hours worked and the pay rate: Gross pay for the week is $300 The amount of pay per hour (a double) Sample input/user entries shown in red Corresponding output 30.0 10.0 Enter the hours worked and the pay rate: Gross pay for the week is $550 50.0 1O.O Thank you
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started