Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am supposed to draw a flow chart regardless of language Assume in the Mystery island, days of the week are in the following order:

I am supposed to draw a flow chart regardless of language Assume in the Mystery island, days of the week are in the following order: Monday, Sunday, Friday, Saturday, Thursday , Wednesday, and Tuesday.

Devise a flowchart for a computer program to receive two inputs: 1) the day of the first day of the year (store it in y), and 2) a number between 1 and 365 (store it in n). The program should output what day the nth day of the year is in the Mystery island.

For example, if "Friday" and 3 are inputted for y and n, respectively, the program should output "Thursday" because --in the Mystery island-- if the first day of a year is Friday, the 3rd day of the year will be Thursday. As another example, if "Wednesday" and 24 are inputted for y and n, respectively, the program should output "Monday".

Hint: you may want to use the modulus operation and the multiple-branching box.

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

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions