SlideShare a Scribd company logo
1. // MAINTENANCE09
// Program prompts a user for name, hours worked,
// and hourly pay rate
// then computes gross pay and displays the name and gross pay
// Modify the program to use four methods named
// getName(), getHours(), getPayRate(), and computeGross()
start
Declarations
string name
num hours
num payRate
num gross
output "Input name >> "
input name
output "Input hours worked >> "
input hours
output "Input pay rate >> "
input payRate
gross = hours * payRate
output name, " earned $", gross
stop

More Related Content

More from ravisankrathi

1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf
1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf
1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf
ravisankrathi
 
1- A movie may have many actors- and an actor can act in many movies-.pdf
1- A movie may have many actors- and an actor can act in many movies-.pdf1- A movie may have many actors- and an actor can act in many movies-.pdf
1- A movie may have many actors- and an actor can act in many movies-.pdf
ravisankrathi
 
1- A content calendar gives you a map of all your future content acros.pdf
1- A content calendar gives you a map of all your future content acros.pdf1- A content calendar gives you a map of all your future content acros.pdf
1- A content calendar gives you a map of all your future content acros.pdf
ravisankrathi
 
1- -- MAINTENANCE09 -- Program prompts a user for name- hours worke.pdf
1-    -- MAINTENANCE09 -- Program prompts a user for name- hours worke.pdf1-    -- MAINTENANCE09 -- Program prompts a user for name- hours worke.pdf
1- -- MAINTENANCE09 -- Program prompts a user for name- hours worke.pdf
ravisankrathi
 
1- (20 points) Give implementation-level English description of Turing.pdf
1- (20 points) Give implementation-level English description of Turing.pdf1- (20 points) Give implementation-level English description of Turing.pdf
1- (20 points) Give implementation-level English description of Turing.pdf
ravisankrathi
 
1- A rock that exhibits a phaneritic texture would be considered an ex.pdf
1- A rock that exhibits a phaneritic texture would be considered an ex.pdf1- A rock that exhibits a phaneritic texture would be considered an ex.pdf
1- A rock that exhibits a phaneritic texture would be considered an ex.pdf
ravisankrathi
 
1- A researcher wants to know if excessive social media use causes aca.pdf
1- A researcher wants to know if excessive social media use causes aca.pdf1- A researcher wants to know if excessive social media use causes aca.pdf
1- A researcher wants to know if excessive social media use causes aca.pdf
ravisankrathi
 
1- A population of rat snakes (Pantherophis alleghaniensis) has begun.pdf
1- A population of rat snakes (Pantherophis alleghaniensis) has begun.pdf1- A population of rat snakes (Pantherophis alleghaniensis) has begun.pdf
1- A population of rat snakes (Pantherophis alleghaniensis) has begun.pdf
ravisankrathi
 
1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf
1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf
1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf
ravisankrathi
 
1- A movie may have many actors- and an actor can act in many movies-.pdf
1- A movie may have many actors- and an actor can act in many movies-.pdf1- A movie may have many actors- and an actor can act in many movies-.pdf
1- A movie may have many actors- and an actor can act in many movies-.pdf
ravisankrathi
 
1- A given bacteria have a generation time of 15 minutes- After a urin.pdf
1- A given bacteria have a generation time of 15 minutes- After a urin.pdf1- A given bacteria have a generation time of 15 minutes- After a urin.pdf
1- A given bacteria have a generation time of 15 minutes- After a urin.pdf
ravisankrathi
 
1- A content calendar gives you a map of all your future content acros.pdf
1- A content calendar gives you a map of all your future content acros.pdf1- A content calendar gives you a map of all your future content acros.pdf
1- A content calendar gives you a map of all your future content acros.pdf
ravisankrathi
 
1- (5 points) (Formally) Prove or disprove T(n)-2n+1 is O(2n) by using.pdf
1- (5 points) (Formally) Prove or disprove T(n)-2n+1 is O(2n) by using.pdf1- (5 points) (Formally) Prove or disprove T(n)-2n+1 is O(2n) by using.pdf
1- (5 points) (Formally) Prove or disprove T(n)-2n+1 is O(2n) by using.pdf
ravisankrathi
 
1- 2- 1- 5- 6.pdf
1- 2- 1- 5- 6.pdf1- 2- 1- 5- 6.pdf
1- 2- 1- 5- 6.pdf
ravisankrathi
 
1- -2 points- Consider the following data for Japan (2022 are IMF esti.pdf
1- -2 points- Consider the following data for Japan (2022 are IMF esti.pdf1- -2 points- Consider the following data for Japan (2022 are IMF esti.pdf
1- -2 points- Consider the following data for Japan (2022 are IMF esti.pdf
ravisankrathi
 
1- 2- right inferior lobe 3- thyrohyoid ligament 4- right middle lo.pdf
1- 2-  right inferior lobe 3-  thyrohyoid ligament 4-  right middle lo.pdf1- 2-  right inferior lobe 3-  thyrohyoid ligament 4-  right middle lo.pdf
1- 2- right inferior lobe 3- thyrohyoid ligament 4- right middle lo.pdf
ravisankrathi
 
1- -4 pts- Which of the following factors might contribute to random i.pdf
1- -4 pts- Which of the following factors might contribute to random i.pdf1- -4 pts- Which of the following factors might contribute to random i.pdf
1- -4 pts- Which of the following factors might contribute to random i.pdf
ravisankrathi
 
1- (20 points) Give implementation-level English description of Turing.pdf
1- (20 points) Give implementation-level English description of Turing.pdf1- (20 points) Give implementation-level English description of Turing.pdf
1- (20 points) Give implementation-level English description of Turing.pdf
ravisankrathi
 
1- -10 points- Show that if there exists a pseudorandom function famil.pdf
1- -10 points- Show that if there exists a pseudorandom function famil.pdf1- -10 points- Show that if there exists a pseudorandom function famil.pdf
1- -10 points- Show that if there exists a pseudorandom function famil.pdf
ravisankrathi
 
1- (10 points) Create a ) Create a regular expression- DFA- and Regula.pdf
1- (10 points) Create a ) Create a regular expression- DFA- and Regula.pdf1- (10 points) Create a ) Create a regular expression- DFA- and Regula.pdf
1- (10 points) Create a ) Create a regular expression- DFA- and Regula.pdf
ravisankrathi
 

More from ravisankrathi (20)

1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf
1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf
1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf
 
1- A movie may have many actors- and an actor can act in many movies-.pdf
1- A movie may have many actors- and an actor can act in many movies-.pdf1- A movie may have many actors- and an actor can act in many movies-.pdf
1- A movie may have many actors- and an actor can act in many movies-.pdf
 
1- A content calendar gives you a map of all your future content acros.pdf
1- A content calendar gives you a map of all your future content acros.pdf1- A content calendar gives you a map of all your future content acros.pdf
1- A content calendar gives you a map of all your future content acros.pdf
 
1- -- MAINTENANCE09 -- Program prompts a user for name- hours worke.pdf
1-    -- MAINTENANCE09 -- Program prompts a user for name- hours worke.pdf1-    -- MAINTENANCE09 -- Program prompts a user for name- hours worke.pdf
1- -- MAINTENANCE09 -- Program prompts a user for name- hours worke.pdf
 
1- (20 points) Give implementation-level English description of Turing.pdf
1- (20 points) Give implementation-level English description of Turing.pdf1- (20 points) Give implementation-level English description of Turing.pdf
1- (20 points) Give implementation-level English description of Turing.pdf
 
1- A rock that exhibits a phaneritic texture would be considered an ex.pdf
1- A rock that exhibits a phaneritic texture would be considered an ex.pdf1- A rock that exhibits a phaneritic texture would be considered an ex.pdf
1- A rock that exhibits a phaneritic texture would be considered an ex.pdf
 
1- A researcher wants to know if excessive social media use causes aca.pdf
1- A researcher wants to know if excessive social media use causes aca.pdf1- A researcher wants to know if excessive social media use causes aca.pdf
1- A researcher wants to know if excessive social media use causes aca.pdf
 
1- A population of rat snakes (Pantherophis alleghaniensis) has begun.pdf
1- A population of rat snakes (Pantherophis alleghaniensis) has begun.pdf1- A population of rat snakes (Pantherophis alleghaniensis) has begun.pdf
1- A population of rat snakes (Pantherophis alleghaniensis) has begun.pdf
 
1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf
1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf
1- A patient is receiving a continuous intravenous (IV) heparin infusi.pdf
 
1- A movie may have many actors- and an actor can act in many movies-.pdf
1- A movie may have many actors- and an actor can act in many movies-.pdf1- A movie may have many actors- and an actor can act in many movies-.pdf
1- A movie may have many actors- and an actor can act in many movies-.pdf
 
1- A given bacteria have a generation time of 15 minutes- After a urin.pdf
1- A given bacteria have a generation time of 15 minutes- After a urin.pdf1- A given bacteria have a generation time of 15 minutes- After a urin.pdf
1- A given bacteria have a generation time of 15 minutes- After a urin.pdf
 
1- A content calendar gives you a map of all your future content acros.pdf
1- A content calendar gives you a map of all your future content acros.pdf1- A content calendar gives you a map of all your future content acros.pdf
1- A content calendar gives you a map of all your future content acros.pdf
 
1- (5 points) (Formally) Prove or disprove T(n)-2n+1 is O(2n) by using.pdf
1- (5 points) (Formally) Prove or disprove T(n)-2n+1 is O(2n) by using.pdf1- (5 points) (Formally) Prove or disprove T(n)-2n+1 is O(2n) by using.pdf
1- (5 points) (Formally) Prove or disprove T(n)-2n+1 is O(2n) by using.pdf
 
1- 2- 1- 5- 6.pdf
1- 2- 1- 5- 6.pdf1- 2- 1- 5- 6.pdf
1- 2- 1- 5- 6.pdf
 
1- -2 points- Consider the following data for Japan (2022 are IMF esti.pdf
1- -2 points- Consider the following data for Japan (2022 are IMF esti.pdf1- -2 points- Consider the following data for Japan (2022 are IMF esti.pdf
1- -2 points- Consider the following data for Japan (2022 are IMF esti.pdf
 
1- 2- right inferior lobe 3- thyrohyoid ligament 4- right middle lo.pdf
1- 2-  right inferior lobe 3-  thyrohyoid ligament 4-  right middle lo.pdf1- 2-  right inferior lobe 3-  thyrohyoid ligament 4-  right middle lo.pdf
1- 2- right inferior lobe 3- thyrohyoid ligament 4- right middle lo.pdf
 
1- -4 pts- Which of the following factors might contribute to random i.pdf
1- -4 pts- Which of the following factors might contribute to random i.pdf1- -4 pts- Which of the following factors might contribute to random i.pdf
1- -4 pts- Which of the following factors might contribute to random i.pdf
 
1- (20 points) Give implementation-level English description of Turing.pdf
1- (20 points) Give implementation-level English description of Turing.pdf1- (20 points) Give implementation-level English description of Turing.pdf
1- (20 points) Give implementation-level English description of Turing.pdf
 
1- -10 points- Show that if there exists a pseudorandom function famil.pdf
1- -10 points- Show that if there exists a pseudorandom function famil.pdf1- -10 points- Show that if there exists a pseudorandom function famil.pdf
1- -10 points- Show that if there exists a pseudorandom function famil.pdf
 
1- (10 points) Create a ) Create a regular expression- DFA- and Regula.pdf
1- (10 points) Create a ) Create a regular expression- DFA- and Regula.pdf1- (10 points) Create a ) Create a regular expression- DFA- and Regula.pdf
1- (10 points) Create a ) Create a regular expression- DFA- and Regula.pdf
 

Recently uploaded

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 

Recently uploaded (20)

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 

1- -- MAINTENANCE09 -- Program prompts a user for name- hours worke.pdf

  • 1. 1. // MAINTENANCE09 // Program prompts a user for name, hours worked, // and hourly pay rate // then computes gross pay and displays the name and gross pay // Modify the program to use four methods named // getName(), getHours(), getPayRate(), and computeGross() start Declarations string name num hours num payRate num gross output "Input name >> " input name output "Input hours worked >> " input hours output "Input pay rate >> " input payRate gross = hours * payRate output name, " earned $", gross stop