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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 20PE
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,