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- (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
 
1- (28 points) Consider discrete random variables X and Y with the fol.pdf
1- (28 points) Consider discrete random variables X and Y with the fol.pdf1- (28 points) Consider discrete random variables X and Y with the fol.pdf
1- (28 points) Consider discrete random variables X and Y with the fol.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- (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
 
1- (28 points) Consider discrete random variables X and Y with the fol.pdf
1- (28 points) Consider discrete random variables X and Y with the fol.pdf1- (28 points) Consider discrete random variables X and Y with the fol.pdf
1- (28 points) Consider discrete random variables X and Y with the fol.pdf
 

Recently uploaded

Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
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
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
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
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
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
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
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 basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 

Recently uploaded (20)

Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
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
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
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
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
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
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
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 basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 

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