Question: Write the required pseudocode for a program, which prints instructions for what you should do today? [3 Marks] Problem: If today is a weekday and

Write the required pseudocode for a program, which prints instructions for what you should do today? [3 Marks] Problem: If today is a weekday and its not a holiday, then you go to work. However, if its a weekday and a holiday, then what you do depends on the weather: If its raining, you play video games. If its not raining, you go for a picnic. If today is not a weekday, then you go to the museum if its raining. After the museum, you play video games. If its not a weekday and not raining, you go for a picnic. Note: When you go to work the weather doesnt matter. On the weekend (not a weekday) it doesnt matter if its a holiday. . Your pseudocode must implement the logic. The program should start by asking three yes/no questions and inputting responses from the user. It should then print out the instructions. 2. Sample: Here is a sample output of how a real program written from the pseudocode might run. Of course, you cant run pseudocode (imagine how your pseudocode would run). Is it a weekday today, yes or no? no Is it a holiday? No Is it raining? yes Go to the museum, then play video games. Trace through the following pseudocode program by imagining how it would run. Put a star (*) to the left of each statement that runs. Write the output produced by the program in your file (Use same document file as for Question 1) marked as Answer #2. [2 marks] LET num = 65 IF num < 80 OR num >= 90 THEN PRINT "Not A" IF num >= 50 AND num < 60 THEN PRINT "Grade D" ELSE PRINT "Neither" END IF ELSE PRINT "Grade A" END IF

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 Databases Questions!