Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Perform each of the following exercises in a single BlueJ-project/package/directory titled Assignment01c. 3.5 Find future dates Write a program that prompts the user to enter

Perform each of the following exercises in a single BlueJ-project/package/directory titled Assignment01c.

3.5 Find future dates Write a program that prompts the user to enter an integer for today's day of the week (Sunday is 0, Monday is 1, and Saturday is 6). Also prompt the user to enter the number of days after today for a future day and dis-play the future day of the week.

Here is a sample run:

Enter today's day: 1 [Enter] Enter the number of days elapsed since today: 3 [Enter] Today is Monday and the future day is Thursday Enter today's day: 0 -E,,w, Enter the number of days elapsed since today: 31 [Enter] Today is Sunday and the future day is Wednesday

3.8 Sort three integers Write a program that prompts the user to enter three integers and display the integers in non-decreasing order.

3.12 Palindrome number Write a program that prompts the user to enter a three-digit integer and determines whether it is a palindrome number. A number is palin-drome if it reads the same from right to left and from left to right.

Here is a sample run of this program: Enter a three-digit integer: 121 [Enter] 121 is a palindrome Enter a three-digit integer: 123 [Enter] 123 is not a palindrome

3.14 Game: heads or tails Write a program that lets the user guess whether the flip of a coin results in heads or tails. The program randomly generates an integer 0 or 1, which represents head or tail. The program prompts the user to enter a guess and reports whether the guess is correct or incorrect.

3.17 Game: scissor, rock, paper Write a program that plays the popular scissor-rock-paper game. (A scissor can cut a paper, a rock can knock a scissor, and a paper can wrap a rock.) The program randomly generates a number 0, 1, or 2 representing scissor, rock, and paper. The program prompts the user to enter a number 0, 1, or 2 and displays a message indicating whether the user or the computer wins, loses, or draws.

Here are sample runs: scissor (0), rock (1), paper (2): 1 [Enter] The computer is scissor. You are rock. You won scissor (0), rock (1), paper (2): 2 [Enter] The computer is paper. You are paper too. It is a draw

NEEDED ASAP PLEASE AND THANK YOU AND IS C++ JAVA PROGRAMMING LANGUAGE USING BlueJ

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 Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

What would you do?

Answered: 1 week ago