CSC-171 Introductory Python Programming DUE: in Canvas by due date Project 2 – Using Decision Logic (10 points) This Graded Project promotes the following learning outcomes: · Select and implement...

1 answer below »



CSC-171 Introductory Python Programming DUE: in Canvas by due date





Project 2 – Using Decision Logic (10 points)

























This Graded Project promotes the following learning outcomes:


·
Select and implement appropriate data types, expressions and control structures to solve simple, typical programming problems


·
Create, document, and test programming solutions that read and process numeric and string inputs, lists, and files that produce correct results



















Pick one of the two programming problems, A or B listed below:




1.



Complete an IPO design strategy (on paper) that you will submit in class.at the start of class (2 points)




2.



A flow-chart for the PROCESS section of your IPO design (on paper) that you will submit in class.at the start of class (2 points)




3.



Code a Python solution based on your design. Before class. (submit through Canvas) Rubric for program is posted below.









a.



‘Ye Old Lighthouse


This old sea shanty song helps sailors remember the codes for sailing into port:



Steady blue, clear view.



Flashing blue, clouds due.



Steady red, rain ahead.



Flashing red, snow instead.





Your program should ask the user to provide inputs for the color( red or blue) and the pulse (steady or flashing) that the lighthouse is projecting and then display the coming into port notice as follows:


Color Blue, Pulse Steady: Output: Clear visibility, smooth sailing.


Color Blue, Pulse Flashing: Output: Limited visibility.


Color Red, Pulse Steady: Output: Rainstorm.


Color Red, Pulse Flashing: Output: Snowstorm.




















Program Requirements/Rubric:









Points Grading Criteria






















1.25





Documentation:

Project Name, Programmer Name, date, Program Description (all described at the top of the file inside comments). Sample output (from running your program) copy/pasted to the bottom of the file enclosed in ‘’’ OUTPUT ‘’’ comments



1





Program Structure:

Sequential Order is correct; All Sections of the Program are clearly and correctly labeled (input, process, output)



3





Methodology:

Correct (and efficient) decision structures coded. Instructions to the user provided; User-friendly input prompts given with clear instructions.



0.75





Output Results:

Correct well-formatted output displayed to screen


Answered 2 days AfterSep 25, 2021

Answer To: CSC-171 Introductory Python Programming DUE: in Canvas by due date Project 2 – Using Decision Logic...

Arun Shankar answered on Sep 26 2021
132 Votes
IPO design strategy
Input:
Ask for color and pulse
Process:
If color = blue and pulse = steady,
result = “Clear visibility, smooth sailing.”
If color = blue and pulse = flashing, result = “Limited visibility.”
If color = red and pulse = steady, result = “Rainstorm.”
If color = red and pulse...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here