named boston pass. This program will tell the user whether they passed a course or not. Please read the wing variables using an appropriate narne and datatype (do not name them first variable, etc.) uriable: keeps track of the student mark (whole number) variable: keeps track of a Boolean value indicating if the student passed ariable: keeps track of amount the student passed or failed by (whole number) wing functions using appropriate names (do not name them first function, etc.) action: accepts one numeric value, purpose is to see if a student passed the course (50 or more), returns a function: accepts one numeric value, purpose is to see how much more or less than 50 the student receive nction: accepts one numeric value, purpose is to draw a number of happy faces (using built in drawing func aturos nothing. This function draws a minimum of one happy face. unctio dieplou

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Language: Pyhon.
Processing: Mode 3.54 (Jonathan Feinberg)
Please post sketch fle code.
Create a sketch named boston pass. This program will tell the user whether they passed a course or not Please read the entire question before starting.
Create the following variables using an appropriate name and datatype (do not name them first variable, etc.)
First variable: keeps track of the student mark (whole number)
Second variable: keeps track of a Boolean value indicating if the student passed
Third variable: keeps track of amount the student passed or failed by (whole number)
Create the following functions using appropriate names (do not name them first function, etc.)
First function: accepts one numeric value, purpose is to see if a student passed the course (50 or more), returns a true or false value.
Second function: accepts one numeric value, purpose is to see how much more or less than 50 the student received, returns the amount higher or lower
than 50.
Third function: accepts one numeric value, purpose is to draw a number of happy faces (using built in drawing functions) based on supplied numeric
value, returns nothing. This function draws a minimum of one happy face.
Fourth function: accepts one numeric value, displays a number of sad face images based on supplied numeric value, returns nothing.
For the sad face image, draw a sad face on a piece of paper or take a picture of yourself with a sad face. Transfer the picture to your computer to use for
this function. Make sure to drag the picture onto your code so it becomes part of your program. Your class notes and the following links may be helpful:
Plmage resize()
Program Functionality: The program will start by asking the user/student for a mark between 0 and 100. This mark should be stored in the appropriate variable
as declared above. If the student enters a mark outside the valid range(0-100) then they should be re-prompted to enter the mark again. Only when the valid mark
is entered will the program continue.
The student mark should then be sent to the appropriate function to see if the student passed. The result of the function should be stored in the appropriate
variable,
Next, the student mark should be sent to the appropriate function to see how much the student passed/failed by. The result of the function should be stored in the
appropriate variable.
If the student passed, then the amount the student passed by should be sent to the function that will draw the happy faces otherwise the amount the student failed
by should be sent to the function that displays sad faces.
Transcribed Image Text:Language: Pyhon. Processing: Mode 3.54 (Jonathan Feinberg) Please post sketch fle code. Create a sketch named boston pass. This program will tell the user whether they passed a course or not Please read the entire question before starting. Create the following variables using an appropriate name and datatype (do not name them first variable, etc.) First variable: keeps track of the student mark (whole number) Second variable: keeps track of a Boolean value indicating if the student passed Third variable: keeps track of amount the student passed or failed by (whole number) Create the following functions using appropriate names (do not name them first function, etc.) First function: accepts one numeric value, purpose is to see if a student passed the course (50 or more), returns a true or false value. Second function: accepts one numeric value, purpose is to see how much more or less than 50 the student received, returns the amount higher or lower than 50. Third function: accepts one numeric value, purpose is to draw a number of happy faces (using built in drawing functions) based on supplied numeric value, returns nothing. This function draws a minimum of one happy face. Fourth function: accepts one numeric value, displays a number of sad face images based on supplied numeric value, returns nothing. For the sad face image, draw a sad face on a piece of paper or take a picture of yourself with a sad face. Transfer the picture to your computer to use for this function. Make sure to drag the picture onto your code so it becomes part of your program. Your class notes and the following links may be helpful: Plmage resize() Program Functionality: The program will start by asking the user/student for a mark between 0 and 100. This mark should be stored in the appropriate variable as declared above. If the student enters a mark outside the valid range(0-100) then they should be re-prompted to enter the mark again. Only when the valid mark is entered will the program continue. The student mark should then be sent to the appropriate function to see if the student passed. The result of the function should be stored in the appropriate variable, Next, the student mark should be sent to the appropriate function to see how much the student passed/failed by. The result of the function should be stored in the appropriate variable. If the student passed, then the amount the student passed by should be sent to the function that will draw the happy faces otherwise the amount the student failed by should be sent to the function that displays sad faces.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Graphical User Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education