SlideShare a Scribd company logo
1 of 8
Download to read offline
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

More Related Content

What's hot

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
 

What's hot (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
 

Similar to 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
 
Data Exploration with Apache Drill: Day 2
Data Exploration with Apache Drill: Day 2Data Exploration with Apache Drill: Day 2
Data Exploration with Apache Drill: Day 2Charles Givre
 
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
 

Similar to 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
 
Data Exploration with Apache Drill: Day 2
Data Exploration with Apache Drill: Day 2Data Exploration with Apache Drill: Day 2
Data Exploration with Apache Drill: Day 2
 
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
 

Recently uploaded

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 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