SlideShare ist ein Scribd-Unternehmen logo
1 von 8
Downloaden Sie, um offline zu lesen
Use the structured flowchart below to write a structured Pseudocode. (1 Point)
Start
Declarations
num policyNumber
num age
num dueMonth
num dueDay
num dueYear
num accidents
string lastName
string firstName
input policyNumber, lastName, firstName, age, dueMonth, dueDay, dueYear, accidents
if policyNumber < 1000 OR policyNumber > 9999 then
policyNumber = 0
endif
if dueMonth < 1 OR dueMonth > 12 OR dueDay < 1 OR dueDay > 31 then
dueMonth = 0
dueDay = 0
dueYear = 0
else
if (dueMonth = 2 AND dueDay > 29) OR ((dueMonth = 4 OR dueMonth = 6 OR dueMonth = 9 OR
dueMonth = 11) AND dueDay > 30) then
dueMonth = 0
dueDay = 0
dueYear = 0
else
output policyNumber, lastName, firstName, age, dueMonth, dueDay, dueYear, accidents
endif
endif
stop
Use the structured Pseudocode below to design a structured flowchart. (1 Point)
start
Declarations
num policyNumber
num age
num dueMonth
num dueDay
num dueYear
num accidents
string lastName
string firstName
Input
policyNumber,
lastName,
firstName, age,
dueMonth,
dueDay,
dueYear,
accidents
age > 35?
Output
policyNumber,
lastName,
firstName, age,
dueMonth,
dueDay,
dueYear,
accidents
stop
yes
no
Use the structured flowchart below to write a structured Pseudocode. (1 Point)
Start
Declarations
num policyNumber
num age
num dueMonth
num dueDay
num dueYear
num accidents
string lastName
string firstName
input policyNumber, lastName, firstName, age, dueMonth, dueDay, dueYear, accidents
if dueMonth < 3 OR (dueMonth = 3 AND dueDay <= 15) then
output policyNumber, lastName, firstName, age, dueMonth, dueDay, dueYear, accidents
endif
stop
Use the structured Pseudocode below to design a structured flowchart. (1 Point)
start
Declarations
num policyNumber
num age
num dueMonth
num dueDay
num dueYear
num accidents
string lastName
string firstName
input policyNumber,
lastName, firstName,
age, dueMonth, dueDay,
dueYear, accidents
dueYear < 2011 OR (dueYear =
2011 AND dueDay = 1 AND
dueMonth = 1)?
output policyNumber,
lastname, firstName,
age, dueMonth, dueDa,
dueYear, accidents
stop
yes
no
Use the structured flowchart below to write a structured Pseudocode. (1 Point)
start
Declarations
num idNumber
num dogAge
num dogWeight
num fee
string dogName
string dogBreed
num SMALL_FEE = 55
num MED_FEE = 75
num LARGE_FEE = 105
num XLARGE_FEE = 125
input idNumber, dogName, dogBreed, dogAge, dogWeight
if dogWeight < 15 then
fee = SMALL_FEE
else
if dogWeight <= 30 then
fee = MED_FEE
else
if dogWeight <= 80 then
fee = LARGE_FEE
else
fee = XLARGE_FEE
endif
endif
endif
output idNumber, dogName, dogBreed, dogAge, dogWeight, fee
stop
Use the structured Pseudocode below to design a structured flowchart. (1 Point)
start
Declarations
num orderNum
num deskLength
num deskWidth
num numDrawers
num price
string custName
string woodType
num MIN_FEE= 200
num LARG_FEE = 50
num OAK_FEE = 125
num DRAWER_FEE = 30
input orderNum,
custName, deskLength,
deskWidth,
numDrawers, woodType
eof?
woodType = oak AND
numDrawers >= 1 AND
(deskLength * deskWidth) >
36?
price = MIN_FEE + OAK_FEE
price = price + numDrawers *
DRAWER_FEE
deskLength * deskWidth >
750?
price = price + LARGE_FEE
output orderNum,
custNum, deskLength,
deskWidth,
numDrawers, price,
woodType
stop
input orderNum,
custNum, deskLength,
deskWidth,
numDrawers, woodType
Black Dot Printing is attempting to organize carpools to save energy. Each input record contains an employee s name and town of residence. Ten percent of the
company s employees live in Wonder Lake; 30 percent live in Woodstock. Because these towns are both north of the company, Black Dot wants to encourage employees
who live in either town, to drive to work together. Design a flowchart or pseudocode for following:
A program that accepts an employee s data and displays it with a message that indicates whether the employee is a candidate for the carpool. (2 Points)
start
Declarations
string employeeName
string employeeTown
string message
input employeeName, employeeTown
if employeeTown = Wonder Lake OR (employeeTown = Woodstock ) then
output employeeName, employeeTown, message
endif
stop
Pastoral College is a small college in the Midwest. Design a flowchart or Pseudocode for following:
A program that accepts a student s data: an ID number, first and last name, major field of study, and grade point average. Display a student s data if the student s
grade point average is below 2.0. (2 Points)
start
Declarations
num idNumber
num gpa
string firstName
string lastName
string fieldStudy
input idNumber, gpa, firstName, lastName, fieldStudy
if gpa < 2.0 then
output idNumber, gpa firstName, lastName, fieldStudy
endif
stop

Weitere ähnliche Inhalte

Was ist angesagt?

Max and min trig values
Max and min trig valuesMax and min trig values
Max and min trig valuesShaun Wilson
 
Clock Aptitude Questions and Answers | Clock Aptitude Problem | JobzStore
Clock Aptitude Questions and Answers | Clock Aptitude Problem | JobzStoreClock Aptitude Questions and Answers | Clock Aptitude Problem | JobzStore
Clock Aptitude Questions and Answers | Clock Aptitude Problem | JobzStoreashwamegh patil
 
Linear Equations - Integer Solutions
Linear Equations - Integer SolutionsLinear Equations - Integer Solutions
Linear Equations - Integer Solutions2IIM
 
Inequalities - Integer solutions
Inequalities - Integer solutionsInequalities - Integer solutions
Inequalities - Integer solutions2IIM
 
Standardform
StandardformStandardform
Standardformtripmob
 
Computer programming
Computer programmingComputer programming
Computer programmingMatanga Eunyo
 
Properties real numbers basic
Properties real numbers basicProperties real numbers basic
Properties real numbers basicBitsy Griffin
 
Day 4 evaluating with add and subtract
Day 4 evaluating with add and subtractDay 4 evaluating with add and subtract
Day 4 evaluating with add and subtractErik Tjersland
 
Math tricks for number theory (Revision)
Math tricks for number theory (Revision)Math tricks for number theory (Revision)
Math tricks for number theory (Revision)Fajri Maulana
 
natural logs - exponential modelling
natural logs - exponential modellingnatural logs - exponential modelling
natural logs - exponential modellingmisz.shaneeey
 
Exploring m and c in the gradient intercept form of a straight line
Exploring m and c in the gradient intercept form of a straight lineExploring m and c in the gradient intercept form of a straight line
Exploring m and c in the gradient intercept form of a straight linebryan
 
001 pedagogy test math
001 pedagogy test  math001 pedagogy test  math
001 pedagogy test mathAbdul ghafoor
 
Add and Subtract Deciamls
Add and Subtract DeciamlsAdd and Subtract Deciamls
Add and Subtract Deciamlsvzeto
 

Was ist angesagt? (20)

Ch01 23
Ch01 23Ch01 23
Ch01 23
 
Multiplying decimals learning ladder
Multiplying decimals learning ladderMultiplying decimals learning ladder
Multiplying decimals learning ladder
 
Max and min trig values
Max and min trig valuesMax and min trig values
Max and min trig values
 
Clock Aptitude Questions and Answers | Clock Aptitude Problem | JobzStore
Clock Aptitude Questions and Answers | Clock Aptitude Problem | JobzStoreClock Aptitude Questions and Answers | Clock Aptitude Problem | JobzStore
Clock Aptitude Questions and Answers | Clock Aptitude Problem | JobzStore
 
Linear Equations - Integer Solutions
Linear Equations - Integer SolutionsLinear Equations - Integer Solutions
Linear Equations - Integer Solutions
 
Per6 basis_Representations Of Integers
Per6 basis_Representations Of IntegersPer6 basis_Representations Of Integers
Per6 basis_Representations Of Integers
 
Inequalities - Integer solutions
Inequalities - Integer solutionsInequalities - Integer solutions
Inequalities - Integer solutions
 
Standardform
StandardformStandardform
Standardform
 
TDM - Tesla Dove Mathematics
TDM - Tesla Dove MathematicsTDM - Tesla Dove Mathematics
TDM - Tesla Dove Mathematics
 
Computer programming
Computer programmingComputer programming
Computer programming
 
Properties real numbers basic
Properties real numbers basicProperties real numbers basic
Properties real numbers basic
 
023 lesson 14
023 lesson 14023 lesson 14
023 lesson 14
 
Algebra opt
Algebra optAlgebra opt
Algebra opt
 
5. Error Coding
5. Error Coding5. Error Coding
5. Error Coding
 
Day 4 evaluating with add and subtract
Day 4 evaluating with add and subtractDay 4 evaluating with add and subtract
Day 4 evaluating with add and subtract
 
Math tricks for number theory (Revision)
Math tricks for number theory (Revision)Math tricks for number theory (Revision)
Math tricks for number theory (Revision)
 
natural logs - exponential modelling
natural logs - exponential modellingnatural logs - exponential modelling
natural logs - exponential modelling
 
Exploring m and c in the gradient intercept form of a straight line
Exploring m and c in the gradient intercept form of a straight lineExploring m and c in the gradient intercept form of a straight line
Exploring m and c in the gradient intercept form of a straight line
 
001 pedagogy test math
001 pedagogy test  math001 pedagogy test  math
001 pedagogy test math
 
Add and Subtract Deciamls
Add and Subtract DeciamlsAdd and Subtract Deciamls
Add and Subtract Deciamls
 

Ähnlich wie Project 3 - Intro to Programming Logic

Insurance Optimization
Insurance OptimizationInsurance Optimization
Insurance OptimizationAlbert Chu
 
Sample Program file class 11.pdf
Sample Program file class 11.pdfSample Program file class 11.pdf
Sample Program file class 11.pdfYashMirge2
 
An Interactive Introduction To R (Programming Language For Statistics)
An Interactive Introduction To R (Programming Language For Statistics)An Interactive Introduction To R (Programming Language For Statistics)
An Interactive Introduction To R (Programming Language For Statistics)Dataspora
 
OverviewThis hands-on lab allows you to follow and experiment w.docx
OverviewThis hands-on lab allows you to follow and experiment w.docxOverviewThis hands-on lab allows you to follow and experiment w.docx
OverviewThis hands-on lab allows you to follow and experiment w.docxgerardkortney
 
error 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docx
error 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docxerror 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docx
error 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docxSALU18
 
Cs291 assignment solution
Cs291 assignment solutionCs291 assignment solution
Cs291 assignment solutionKuntal Bhowmick
 
Data Science and Machine Learning Using Python and Scikit-learn
Data Science and Machine Learning Using Python and Scikit-learnData Science and Machine Learning Using Python and Scikit-learn
Data Science and Machine Learning Using Python and Scikit-learnAsim Jalis
 
Regression and Classification with R
Regression and Classification with RRegression and Classification with R
Regression and Classification with RYanchang Zhao
 
INSTRUCTIONS Please organize your answers as a Word document with.docx
INSTRUCTIONS Please organize your answers as a Word document with.docxINSTRUCTIONS Please organize your answers as a Word document with.docx
INSTRUCTIONS Please organize your answers as a Word document with.docxdirkrplav
 
Course project solutions 2019
Course project solutions 2019Course project solutions 2019
Course project solutions 2019Robert Geofroy
 
A few solvers for portfolio selection
A few solvers for portfolio selectionA few solvers for portfolio selection
A few solvers for portfolio selectionBogusz Jelinski
 
ICT_Seminar_flow_charts_for_2013_Nov.pptx
ICT_Seminar_flow_charts_for_2013_Nov.pptxICT_Seminar_flow_charts_for_2013_Nov.pptx
ICT_Seminar_flow_charts_for_2013_Nov.pptxssuser2f67c91
 
Informatics Practices (new) solution CBSE 2021, Compartment, improvement ex...
Informatics Practices (new) solution CBSE  2021, Compartment,  improvement ex...Informatics Practices (new) solution CBSE  2021, Compartment,  improvement ex...
Informatics Practices (new) solution CBSE 2021, Compartment, improvement ex...FarhanAhmade
 
Csci101 lect03 algorithms_i
Csci101 lect03 algorithms_iCsci101 lect03 algorithms_i
Csci101 lect03 algorithms_iElsayed Hemayed
 
C Programming Lab.pdf
C Programming Lab.pdfC Programming Lab.pdf
C Programming Lab.pdfMOJO89
 
Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1rajnidhiman
 
presentation_python_11_1569171345_375360.pptx
presentation_python_11_1569171345_375360.pptxpresentation_python_11_1569171345_375360.pptx
presentation_python_11_1569171345_375360.pptxGAURAVRATHORE86
 
Database Management System - SQL Advanced Training
Database Management System - SQL Advanced TrainingDatabase Management System - SQL Advanced Training
Database Management System - SQL Advanced TrainingMoutasm Tamimi
 

Ähnlich wie Project 3 - Intro to Programming Logic (20)

Insurance Optimization
Insurance OptimizationInsurance Optimization
Insurance Optimization
 
Sample Program file class 11.pdf
Sample Program file class 11.pdfSample Program file class 11.pdf
Sample Program file class 11.pdf
 
An Interactive Introduction To R (Programming Language For Statistics)
An Interactive Introduction To R (Programming Language For Statistics)An Interactive Introduction To R (Programming Language For Statistics)
An Interactive Introduction To R (Programming Language For Statistics)
 
OverviewThis hands-on lab allows you to follow and experiment w.docx
OverviewThis hands-on lab allows you to follow and experiment w.docxOverviewThis hands-on lab allows you to follow and experiment w.docx
OverviewThis hands-on lab allows you to follow and experiment w.docx
 
error 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docx
error 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docxerror 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docx
error 2.pdf101316, 6(46 PM01_errorPage 1 of 5http.docx
 
Cs291 assignment solution
Cs291 assignment solutionCs291 assignment solution
Cs291 assignment solution
 
Data Science and Machine Learning Using Python and Scikit-learn
Data Science and Machine Learning Using Python and Scikit-learnData Science and Machine Learning Using Python and Scikit-learn
Data Science and Machine Learning Using Python and Scikit-learn
 
Regression and Classification with R
Regression and Classification with RRegression and Classification with R
Regression and Classification with R
 
C faq pdf
C faq pdfC faq pdf
C faq pdf
 
INSTRUCTIONS Please organize your answers as a Word document with.docx
INSTRUCTIONS Please organize your answers as a Word document with.docxINSTRUCTIONS Please organize your answers as a Word document with.docx
INSTRUCTIONS Please organize your answers as a Word document with.docx
 
Course project solutions 2019
Course project solutions 2019Course project solutions 2019
Course project solutions 2019
 
A few solvers for portfolio selection
A few solvers for portfolio selectionA few solvers for portfolio selection
A few solvers for portfolio selection
 
ICT_Seminar_flow_charts_for_2013_Nov.pptx
ICT_Seminar_flow_charts_for_2013_Nov.pptxICT_Seminar_flow_charts_for_2013_Nov.pptx
ICT_Seminar_flow_charts_for_2013_Nov.pptx
 
Informatics Practices (new) solution CBSE 2021, Compartment, improvement ex...
Informatics Practices (new) solution CBSE  2021, Compartment,  improvement ex...Informatics Practices (new) solution CBSE  2021, Compartment,  improvement ex...
Informatics Practices (new) solution CBSE 2021, Compartment, improvement ex...
 
Csci101 lect03 algorithms_i
Csci101 lect03 algorithms_iCsci101 lect03 algorithms_i
Csci101 lect03 algorithms_i
 
C Programming Lab.pdf
C Programming Lab.pdfC Programming Lab.pdf
C Programming Lab.pdf
 
Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1
 
Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1
 
presentation_python_11_1569171345_375360.pptx
presentation_python_11_1569171345_375360.pptxpresentation_python_11_1569171345_375360.pptx
presentation_python_11_1569171345_375360.pptx
 
Database Management System - SQL Advanced Training
Database Management System - SQL Advanced TrainingDatabase Management System - SQL Advanced Training
Database Management System - SQL Advanced Training
 

Kürzlich hochgeladen

Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 

Kürzlich hochgeladen (20)

Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

Project 3 - Intro to Programming Logic

  • 1. Use the structured flowchart below to write a structured Pseudocode. (1 Point) Start Declarations num policyNumber num age num dueMonth num dueDay num dueYear num accidents string lastName string firstName input policyNumber, lastName, firstName, age, dueMonth, dueDay, dueYear, accidents if policyNumber < 1000 OR policyNumber > 9999 then policyNumber = 0 endif if dueMonth < 1 OR dueMonth > 12 OR dueDay < 1 OR dueDay > 31 then dueMonth = 0 dueDay = 0 dueYear = 0 else if (dueMonth = 2 AND dueDay > 29) OR ((dueMonth = 4 OR dueMonth = 6 OR dueMonth = 9 OR dueMonth = 11) AND dueDay > 30) then dueMonth = 0 dueDay = 0 dueYear = 0 else output policyNumber, lastName, firstName, age, dueMonth, dueDay, dueYear, accidents endif endif stop
  • 2. Use the structured Pseudocode below to design a structured flowchart. (1 Point) start Declarations num policyNumber num age num dueMonth num dueDay num dueYear num accidents string lastName string firstName Input policyNumber, lastName, firstName, age, dueMonth, dueDay, dueYear, accidents age > 35? Output policyNumber, lastName, firstName, age, dueMonth, dueDay, dueYear, accidents stop yes no
  • 3. Use the structured flowchart below to write a structured Pseudocode. (1 Point) Start Declarations num policyNumber num age num dueMonth num dueDay num dueYear num accidents string lastName string firstName input policyNumber, lastName, firstName, age, dueMonth, dueDay, dueYear, accidents if dueMonth < 3 OR (dueMonth = 3 AND dueDay <= 15) then output policyNumber, lastName, firstName, age, dueMonth, dueDay, dueYear, accidents endif stop
  • 4. Use the structured Pseudocode below to design a structured flowchart. (1 Point) start Declarations num policyNumber num age num dueMonth num dueDay num dueYear num accidents string lastName string firstName input policyNumber, lastName, firstName, age, dueMonth, dueDay, dueYear, accidents dueYear < 2011 OR (dueYear = 2011 AND dueDay = 1 AND dueMonth = 1)? output policyNumber, lastname, firstName, age, dueMonth, dueDa, dueYear, accidents stop yes no
  • 5. Use the structured flowchart below to write a structured Pseudocode. (1 Point) start Declarations num idNumber num dogAge num dogWeight num fee string dogName string dogBreed num SMALL_FEE = 55 num MED_FEE = 75 num LARGE_FEE = 105 num XLARGE_FEE = 125 input idNumber, dogName, dogBreed, dogAge, dogWeight if dogWeight < 15 then fee = SMALL_FEE else if dogWeight <= 30 then fee = MED_FEE else if dogWeight <= 80 then fee = LARGE_FEE else fee = XLARGE_FEE endif endif endif output idNumber, dogName, dogBreed, dogAge, dogWeight, fee stop
  • 6. Use the structured Pseudocode below to design a structured flowchart. (1 Point) start Declarations num orderNum num deskLength num deskWidth num numDrawers num price string custName string woodType num MIN_FEE= 200 num LARG_FEE = 50 num OAK_FEE = 125 num DRAWER_FEE = 30 input orderNum, custName, deskLength, deskWidth, numDrawers, woodType eof? woodType = oak AND numDrawers >= 1 AND (deskLength * deskWidth) > 36? price = MIN_FEE + OAK_FEE price = price + numDrawers * DRAWER_FEE deskLength * deskWidth > 750? price = price + LARGE_FEE output orderNum, custNum, deskLength, deskWidth, numDrawers, price, woodType stop input orderNum, custNum, deskLength, deskWidth, numDrawers, woodType
  • 7. Black Dot Printing is attempting to organize carpools to save energy. Each input record contains an employee s name and town of residence. Ten percent of the company s employees live in Wonder Lake; 30 percent live in Woodstock. Because these towns are both north of the company, Black Dot wants to encourage employees who live in either town, to drive to work together. Design a flowchart or pseudocode for following: A program that accepts an employee s data and displays it with a message that indicates whether the employee is a candidate for the carpool. (2 Points) start Declarations string employeeName string employeeTown string message input employeeName, employeeTown if employeeTown = Wonder Lake OR (employeeTown = Woodstock ) then output employeeName, employeeTown, message endif stop
  • 8. Pastoral College is a small college in the Midwest. Design a flowchart or Pseudocode for following: A program that accepts a student s data: an ID number, first and last name, major field of study, and grade point average. Display a student s data if the student s grade point average is below 2.0. (2 Points) start Declarations num idNumber num gpa string firstName string lastName string fieldStudy input idNumber, gpa, firstName, lastName, fieldStudy if gpa < 2.0 then output idNumber, gpa firstName, lastName, fieldStudy endif stop