Question: Problem Solving: If Statements Part 1 : Problem Generation First, you must come up one of each of the following types of problems. Simple Decision

Problem Solving: If Statements
Part 1: Problem Generation
First, you must come up one of each of the following types of problems.
Simple Decision Problem (SDP): Think of a problem that requires at least two inputs to solve. The nature
of the problem require an operation to be performed (arithmetic or String operations). The
inputs should be familiar to other students so that they can determine what data type to use in solving
them. This problem must be solvable using a simple if statement - that is, exactly one if statement and
no else if/else statement. Graded out of 4 marks in the Thinking, Inquiry, & Problem Solving category.
Complex Decision Problem (CDP): This time, come up with a problem that requires at least two inputs to
solve. Additionally, your problem must require an if-else if-else statement to solve. Graded out of 4
marks in the Thinking, Inquiry & Problem Solving category.
Your problem must be posted in the Shared Google Doc using the template provided. Please adhere to
the existing template of one problem per page. I will provide to you a grade out of 4 TIPS marks. Once
you achieve 44 on a problem, your problem is considered solvable.
Part 2: Problem Solving
Choose ONE problem to solve from within the repository. The problem you choose must have received a
grade of 44 and therefore deemed solvable. Create your own personal repl to solve the problem and,
upon completion, paste a link to the code by clicking 'Share' on your repl and copying the provided link.
Pnce a problem has been provided a solution, no other student may provide a solution. However, if
there are significant errors with the solution then I will remove it and open up that problem for other
students.
Your solution will be graded out of 4 marks in the TIPS category. Be sure to include your name, the date,
and a description of the problem being solved.
Problem to solve:
Asher is working as a doorman at the GoldenGate Buffet restaurant. He is to greet the customers and allow them in, but
there are a few exceptions.
He is not to let in Jason Li, Tlatoani Cuevas, and David Tran.
Unfortunately, Asher doesn't know what they look like, so he is provided a description.
Jason does not wear glasses, but has short hair
Toani has glasses, but short hair
David has both glasses and long hair.
One of these people is at the door! But who is it? Have the user input whether or not they have glasses, and whether or not
they have long hair. They will not be let in.
Problem Solving: If Statements Part 1 : Problem

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!