Write a program that caclulates how much a person would earn over a period of time if his or her salary is one penny the first day and two pennies the second day, and continues to double each day. The program should ask the user for the number of days. Display a table showing how much the salary was for eah day, and then show the total pay at the end of the pay period. The output should be displayed in a dollar amount, not the number of pennies. Input validation: Do no accept a number less than 1 for the number of days worked. A) Write the psuedocode, B.) a flowchart of , and C.) answer to the problem
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Problem 7: Pennies for Pay
Write a program that caclulates how much a person would earn over a period of time if his or her salary is one penny the first day and two pennies the second day, and continues to double each day. The program should ask the user for the number of days. Display a table showing how much the salary was for eah day, and then show the total pay at the end of the pay period. The output should be displayed in a dollar amount, not the number of pennies.
Input validation: Do no accept a number less than 1 for the number of days worked.
A) Write the psuedocode, B.) a flowchart of , and C.) answer to the problem
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 2 images