Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

start to review and develop your employability skills

Answered: 1 week ago