SlideShare a Scribd company logo
1 of 1
Download to read offline
I need the Pseudo Code for this please !!
Using the Multiple-Alternative IFTHENELSE Control structure write the pseudocode to solve
the following problem to prepare a contract labor report for heavy equipment operators: The
input will contain the employee name, job performed, hours worked per day, and a code.
Journeyman employees have a code of J, apprentices a code of A, and casual labor a code of C.
The output consists of the employee name, job performed, hours worked, and pay. Journeyman
employees receive $20.00 per hour. Apprentices receive $15.00 per hour. Casual Labor receives
$10.00 per hour.
Solution
Pseudo-Code that reads name, job , hours and code and
and calcultes the pay for given hours
START
SET pay to zero
SET JOURNEYMAN_PAY_RATE to 20
SET APPRENTICES_PAY_RATE to 15
SET CASUAL_PAY_RATE to 10
READ name
READ job
READ hours
READ code
IF code is 'J' THEN
COMPUTE pay AS hours times JOURNEYMAN_PAY_RATE
IF code is 'A' THEN
COMPUTE pay AS hours times APPRENTICES_PAY_RATE
IF code is 'C' THEN
COMPUTE pay AS hours times CASUAL_PAY_RATE
END
PRINT name
PRINT job
PRINT code
PRINT pay
END

More Related Content

Similar to I need the Pseudo Code for this please !!Using the Multiple-Altern.pdf

e computer notes - Using set operator
e computer notes - Using set operatore computer notes - Using set operator
e computer notes - Using set operator
ecomputernotes
 
e computer notes - Subqueries
e computer notes - Subqueriese computer notes - Subqueries
e computer notes - Subqueries
ecomputernotes
 
Week 2PRG 218 Variables and Input and Output OperationsWrite.docx
Week 2PRG 218   Variables and Input and Output OperationsWrite.docxWeek 2PRG 218   Variables and Input and Output OperationsWrite.docx
Week 2PRG 218 Variables and Input and Output OperationsWrite.docx
melbruce90096
 

Similar to I need the Pseudo Code for this please !!Using the Multiple-Altern.pdf (10)

e computer notes - Using set operator
e computer notes - Using set operatore computer notes - Using set operator
e computer notes - Using set operator
 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchart
 
e computer notes - Subqueries
e computer notes - Subqueriese computer notes - Subqueries
e computer notes - Subqueries
 
Write a C++ program with a function defined to give the person a .pdf
Write a C++ program with a function defined to give the person a .pdfWrite a C++ program with a function defined to give the person a .pdf
Write a C++ program with a function defined to give the person a .pdf
 
Profit Maximisation Notes - A-level & IB Economics
Profit Maximisation Notes - A-level & IB EconomicsProfit Maximisation Notes - A-level & IB Economics
Profit Maximisation Notes - A-level & IB Economics
 
Week 2PRG 218 Variables and Input and Output OperationsWrite.docx
Week 2PRG 218   Variables and Input and Output OperationsWrite.docxWeek 2PRG 218   Variables and Input and Output OperationsWrite.docx
Week 2PRG 218 Variables and Input and Output OperationsWrite.docx
 
SQL case study Analysis PPT by Radhika Kashidd
SQL case study Analysis PPT by Radhika KashiddSQL case study Analysis PPT by Radhika Kashidd
SQL case study Analysis PPT by Radhika Kashidd
 
How to create payslip through self service
How to create payslip through self serviceHow to create payslip through self service
How to create payslip through self service
 
Introduction to GPMD
Introduction to GPMDIntroduction to GPMD
Introduction to GPMD
 
OOP/ project Employees information system
OOP/ project Employees information systemOOP/ project Employees information system
OOP/ project Employees information system
 

More from montybachawat

Ed stays on Earth, and watches his twin Rob fly away in a rocket. E.pdf
Ed stays on Earth, and watches his twin Rob fly away in a rocket. E.pdfEd stays on Earth, and watches his twin Rob fly away in a rocket. E.pdf
Ed stays on Earth, and watches his twin Rob fly away in a rocket. E.pdf
montybachawat
 
Explain why the notochord is an evolutionary advacement. (what is a .pdf
Explain why the notochord is an evolutionary advacement. (what is a .pdfExplain why the notochord is an evolutionary advacement. (what is a .pdf
Explain why the notochord is an evolutionary advacement. (what is a .pdf
montybachawat
 
Describe 5 factors that could affect the quality of building and con.pdf
Describe 5 factors that could affect the quality of building and con.pdfDescribe 5 factors that could affect the quality of building and con.pdf
Describe 5 factors that could affect the quality of building and con.pdf
montybachawat
 
An anayzer is a device used to a. measure or control flow, temperatur.pdf
An anayzer is a device used to a. measure or control flow, temperatur.pdfAn anayzer is a device used to a. measure or control flow, temperatur.pdf
An anayzer is a device used to a. measure or control flow, temperatur.pdf
montybachawat
 
Can someone explain why the correct answer is D and while the other .pdf
Can someone explain why the correct answer is D and while the other .pdfCan someone explain why the correct answer is D and while the other .pdf
Can someone explain why the correct answer is D and while the other .pdf
montybachawat
 
Which of the following represents a difference between viruses and vi.pdf
Which of the following represents a difference between viruses and vi.pdfWhich of the following represents a difference between viruses and vi.pdf
Which of the following represents a difference between viruses and vi.pdf
montybachawat
 
What are the techniques used in nanomanifacturing What are th.pdf
What are the techniques used in nanomanifacturing  What are th.pdfWhat are the techniques used in nanomanifacturing  What are th.pdf
What are the techniques used in nanomanifacturing What are th.pdf
montybachawat
 
The systemic circuit delivers oxygenated blood to _ and returns blo.pdf
The systemic circuit delivers oxygenated blood to _ and returns blo.pdfThe systemic circuit delivers oxygenated blood to _ and returns blo.pdf
The systemic circuit delivers oxygenated blood to _ and returns blo.pdf
montybachawat
 

More from montybachawat (20)

Congestive heart failure is a common condition. What would be an ini.pdf
Congestive heart failure is a common condition. What would be an ini.pdfCongestive heart failure is a common condition. What would be an ini.pdf
Congestive heart failure is a common condition. What would be an ini.pdf
 
How many binary digits are needed to create 1024 combinationsA. 8.pdf
How many binary digits are needed to create 1024 combinationsA. 8.pdfHow many binary digits are needed to create 1024 combinationsA. 8.pdf
How many binary digits are needed to create 1024 combinationsA. 8.pdf
 
How does convection differ from conductionA) In convection, magnet.pdf
How does convection differ from conductionA) In convection, magnet.pdfHow does convection differ from conductionA) In convection, magnet.pdf
How does convection differ from conductionA) In convection, magnet.pdf
 
Circle ALL (if any) applicable terms for the events described.1.pdf
Circle ALL (if any) applicable terms for the events described.1.pdfCircle ALL (if any) applicable terms for the events described.1.pdf
Circle ALL (if any) applicable terms for the events described.1.pdf
 
Ed stays on Earth, and watches his twin Rob fly away in a rocket. E.pdf
Ed stays on Earth, and watches his twin Rob fly away in a rocket. E.pdfEd stays on Earth, and watches his twin Rob fly away in a rocket. E.pdf
Ed stays on Earth, and watches his twin Rob fly away in a rocket. E.pdf
 
Explain why the notochord is an evolutionary advacement. (what is a .pdf
Explain why the notochord is an evolutionary advacement. (what is a .pdfExplain why the notochord is an evolutionary advacement. (what is a .pdf
Explain why the notochord is an evolutionary advacement. (what is a .pdf
 
Describe 5 factors that could affect the quality of building and con.pdf
Describe 5 factors that could affect the quality of building and con.pdfDescribe 5 factors that could affect the quality of building and con.pdf
Describe 5 factors that could affect the quality of building and con.pdf
 
An anayzer is a device used to a. measure or control flow, temperatur.pdf
An anayzer is a device used to a. measure or control flow, temperatur.pdfAn anayzer is a device used to a. measure or control flow, temperatur.pdf
An anayzer is a device used to a. measure or control flow, temperatur.pdf
 
Can someone explain why the correct answer is D and while the other .pdf
Can someone explain why the correct answer is D and while the other .pdfCan someone explain why the correct answer is D and while the other .pdf
Can someone explain why the correct answer is D and while the other .pdf
 
At what layer of the OSI model would you find framingA. Transport.pdf
At what layer of the OSI model would you find framingA. Transport.pdfAt what layer of the OSI model would you find framingA. Transport.pdf
At what layer of the OSI model would you find framingA. Transport.pdf
 
You get a call from a home computer user saying her computer is very.pdf
You get a call from a home computer user saying her computer is very.pdfYou get a call from a home computer user saying her computer is very.pdf
You get a call from a home computer user saying her computer is very.pdf
 
Trace the path the red blood cell would take as it travels between t.pdf
Trace the path the red blood cell would take as it travels between t.pdfTrace the path the red blood cell would take as it travels between t.pdf
Trace the path the red blood cell would take as it travels between t.pdf
 
Which of the following represents a difference between viruses and vi.pdf
Which of the following represents a difference between viruses and vi.pdfWhich of the following represents a difference between viruses and vi.pdf
Which of the following represents a difference between viruses and vi.pdf
 
What is Impact Factor Derive a relationship between static and Dynam.pdf
What is Impact Factor Derive a relationship between static and Dynam.pdfWhat is Impact Factor Derive a relationship between static and Dynam.pdf
What is Impact Factor Derive a relationship between static and Dynam.pdf
 
What happens when a non-native species (plant or animal) is introduc.pdf
What happens when a non-native species (plant or animal) is introduc.pdfWhat happens when a non-native species (plant or animal) is introduc.pdf
What happens when a non-native species (plant or animal) is introduc.pdf
 
What are the techniques used in nanomanifacturing What are th.pdf
What are the techniques used in nanomanifacturing  What are th.pdfWhat are the techniques used in nanomanifacturing  What are th.pdf
What are the techniques used in nanomanifacturing What are th.pdf
 
What is the definition of hybrid system Could you give an example o.pdf
What is the definition of hybrid system Could you give an example o.pdfWhat is the definition of hybrid system Could you give an example o.pdf
What is the definition of hybrid system Could you give an example o.pdf
 
Using the phylogeny shown, which of the following is a shared derived.pdf
Using the phylogeny shown, which of the following is a shared derived.pdfUsing the phylogeny shown, which of the following is a shared derived.pdf
Using the phylogeny shown, which of the following is a shared derived.pdf
 
The systemic circuit delivers oxygenated blood to _ and returns blo.pdf
The systemic circuit delivers oxygenated blood to _ and returns blo.pdfThe systemic circuit delivers oxygenated blood to _ and returns blo.pdf
The systemic circuit delivers oxygenated blood to _ and returns blo.pdf
 
Categories. Use the .05 significance levelWhat is the null hypothe.pdf
Categories. Use the .05 significance levelWhat is the null hypothe.pdfCategories. Use the .05 significance levelWhat is the null hypothe.pdf
Categories. Use the .05 significance levelWhat is the null hypothe.pdf
 

Recently uploaded

The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
Krashi Coaching
 

Recently uploaded (20)

Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
MSc Ag Genetics & Plant Breeding: Insights from Previous Year JNKVV Entrance ...
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 

I need the Pseudo Code for this please !!Using the Multiple-Altern.pdf

  • 1. I need the Pseudo Code for this please !! Using the Multiple-Alternative IFTHENELSE Control structure write the pseudocode to solve the following problem to prepare a contract labor report for heavy equipment operators: The input will contain the employee name, job performed, hours worked per day, and a code. Journeyman employees have a code of J, apprentices a code of A, and casual labor a code of C. The output consists of the employee name, job performed, hours worked, and pay. Journeyman employees receive $20.00 per hour. Apprentices receive $15.00 per hour. Casual Labor receives $10.00 per hour. Solution Pseudo-Code that reads name, job , hours and code and and calcultes the pay for given hours START SET pay to zero SET JOURNEYMAN_PAY_RATE to 20 SET APPRENTICES_PAY_RATE to 15 SET CASUAL_PAY_RATE to 10 READ name READ job READ hours READ code IF code is 'J' THEN COMPUTE pay AS hours times JOURNEYMAN_PAY_RATE IF code is 'A' THEN COMPUTE pay AS hours times APPRENTICES_PAY_RATE IF code is 'C' THEN COMPUTE pay AS hours times CASUAL_PAY_RATE END PRINT name PRINT job PRINT code PRINT pay END