Pennies for Pay Write a Flowgorithm program that calculates how much money someone will earn over a period of time under the following conditions: paid one penny the first day, paid two pennies the second day, paid four pennies the third day and pay continues to double each day. Use nested loops to accomplish the following:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Pennies for Pay

Write a Flowgorithm program that calculates how much money someone will earn over a period of time under the following conditions:

  • paid one penny the first day,
  • paid two pennies the second day,
  • paid four pennies the third day and
  • pay continues to double each day.

Use nested loops to accomplish the following:

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

What I was asking is was the flowgorithm showed on the main function, not the other functions (getDays, doublepennies, showSalary) . I am actually asking how you guys do the other functions for the code to run ? Please see the attached for a better under

2:47
Program 4 Eight Step Problem So...
Program 4 Eight Step Problem Solving Solution
0. Problem Statement for Pennies for Pay:
Design a program that calculates the amount of money a person would earn over a period of time if
his or her salary (pay) is one penny the first day, 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
what the salary was for each day, and then show the total pay at the end of the period. All output
should be displayed in a dollar amount, not the number of pennies.
1. Major Task List (Keep it abstract; focus on the "what" high level)
a. Determine each day's salary and total salary
b. Display results
2. Structure Chart (Your blue print plan for your functions... who calls who)
getdays double Pennies showSalary
3. Word Analysis: (Which nouns suggest a need for memory (a variable) and which
verbs suggest a need for action (a function maybe).
main
Problem Statement for Pennies for Pay:
Design a program that calculates the amount of money a person would earn over a period of time
if his or her salary is one penny the first day, 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 what the salary_was for each day, and then show the total pay at the end of the period.
The output should be displayed in a dollar amount, not the number of pennies.
Nouns:
Verbs:
Program
Amount of money
Person
Period of time
Salary
Penny
Day
User
Number of days
Table
Total pay
Period
Dollar amount
Number of pennies
a.
Function
main
getDays
design
days
pennies
calculates
Global Constants:
Constant real PENNIES_TO_DOLLARS_FACTOR = 100 (may change this if your desire
alternate conversion method)
days
5GE
earn
is
ask
display
4 Variable Chart: (Conversion of verbs into camelCase variable names).
(May need additional variables)
Input Interim Output
show
Dashboard Calendar
10
To Do
Notifications Inbox
Transcribed Image Text:2:47 Program 4 Eight Step Problem So... Program 4 Eight Step Problem Solving Solution 0. Problem Statement for Pennies for Pay: Design a program that calculates the amount of money a person would earn over a period of time if his or her salary (pay) is one penny the first day, 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 what the salary was for each day, and then show the total pay at the end of the period. All output should be displayed in a dollar amount, not the number of pennies. 1. Major Task List (Keep it abstract; focus on the "what" high level) a. Determine each day's salary and total salary b. Display results 2. Structure Chart (Your blue print plan for your functions... who calls who) getdays double Pennies showSalary 3. Word Analysis: (Which nouns suggest a need for memory (a variable) and which verbs suggest a need for action (a function maybe). main Problem Statement for Pennies for Pay: Design a program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, 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 what the salary_was for each day, and then show the total pay at the end of the period. The output should be displayed in a dollar amount, not the number of pennies. Nouns: Verbs: Program Amount of money Person Period of time Salary Penny Day User Number of days Table Total pay Period Dollar amount Number of pennies a. Function main getDays design days pennies calculates Global Constants: Constant real PENNIES_TO_DOLLARS_FACTOR = 100 (may change this if your desire alternate conversion method) days 5GE earn is ask display 4 Variable Chart: (Conversion of verbs into camelCase variable names). (May need additional variables) Input Interim Output show Dashboard Calendar 10 To Do Notifications Inbox
2:47
Program 4 Eight Step Problem So...
2. Structure Chart (Your blue print plan for your functions...who calls who)
getdays doublePennies showSalary
3. Word Analysis: (Which nouns suggest a need for memory (a variable) and which
verbs suggest a need for action (a function maybe).
Problem Statement for Pennies for Pay:
Design a program that calculates the amount of money a person would earn over a period of time
if his or her salary is one penny the first day, 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 what the salary_was for each day, and then show the total pay at the end of the period.
The output should be displayed in a dollar amount, not the number of pennies.
Nouns:
Verbs:
Program
Amount of money
Person
Period of time
Salary
Penny
Day
User
main
Number of days
Table
Total pay
Period
Dollar amount
Number of pennies
a.
Function
main
getDays
doublePennies
Global Constants:
Constant real PENNIES_TO_DOLLARS_FACTOR
alternate conversion method)
showSalary
days
pennies
days counter
pennies
days
pennies
4 Variable Chart: (Conversion of verbs into camelCase variable names).
(May need additional variables)
Input Interim Output
days
design
pennies
calculates
?
earn
ᎥᎦ
ask
display
show
.5G E
=
Dashboard Calendar
10
To Do
100 (may change this if your desire
Notifications Inbox
Transcribed Image Text:2:47 Program 4 Eight Step Problem So... 2. Structure Chart (Your blue print plan for your functions...who calls who) getdays doublePennies showSalary 3. Word Analysis: (Which nouns suggest a need for memory (a variable) and which verbs suggest a need for action (a function maybe). Problem Statement for Pennies for Pay: Design a program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, 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 what the salary_was for each day, and then show the total pay at the end of the period. The output should be displayed in a dollar amount, not the number of pennies. Nouns: Verbs: Program Amount of money Person Period of time Salary Penny Day User main Number of days Table Total pay Period Dollar amount Number of pennies a. Function main getDays doublePennies Global Constants: Constant real PENNIES_TO_DOLLARS_FACTOR alternate conversion method) showSalary days pennies days counter pennies days pennies 4 Variable Chart: (Conversion of verbs into camelCase variable names). (May need additional variables) Input Interim Output days design pennies calculates ? earn ᎥᎦ ask display show .5G E = Dashboard Calendar 10 To Do 100 (may change this if your desire Notifications Inbox
Solution
Bartleby Expert
SEE SOLUTION
Follow-up Question

Hello, can you provide the functions for the solution please? 

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education