Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C programming. How do you do the first part with the date without using strings? Also how to work the random number generator. Thank you.

image text in transcribed

C programming. How do you do the first part with the date without using strings? Also how to work the random number generator. Thank you.

Enter your date of birth (dd):1 Enter month now (mm):1 Enter the year now (yyyy): 2000 enter month y):2000 ******************************************************** You were born on 1st day of January 2000 In words, you were born on day One in January of 2000 ******************************************************** You will get 5 chances to guess the number generated by me. The number is between 1 and 30 (both inclusive). After every incorrect, you will get a clue. After 3 chances, you could use an additional clue. Best of luck Pick a number between 1 and 30: 1 Go higher Pick a number between 1 and 30: 2 Go higher Pick a number between 1 and 30: 10 Let me give you another clue -----Think of an even number and ----- Go lower Pick a number between 1 and 30: 8 Go lower Pick a number between 1 and 30: 6 You should have gone lower - the actual number is 4 Sorry - better luck next time Enter your date of birth (dd):1 Enter month now (mm):1 Enter the year now (yyyy): 2000 enter month y):2000 ******************************************************** You were born on 1st day of January 2000 In words, you were born on day One in January of 2000 ******************************************************** You will get 5 chances to guess the number generated by me. The number is between 1 and 30 (both inclusive). After every incorrect, you will get a clue. After 3 chances, you could use an additional clue. Best of luck Pick a number between 1 and 30: 1 Go higher Pick a number between 1 and 30: 2 Go higher Pick a number between 1 and 30: 10 Let me give you another clue -----Think of an even number and ----- Go lower Pick a number between 1 and 30: 8 Go lower Pick a number between 1 and 30: 6 You should have gone lower - the actual number is 4 Sorry - better luck next time

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 Theory Icdt 97 6th International Conference Delphi Greece January 8 10 1997 Proceedings Lncs 1186

Authors: Foto N. Afrati ,Phokion G. Kolaitis

1st Edition

3540622225, 978-3540622222

More Books

Students also viewed these Databases questions

Question

Does it have correct contact information?

Answered: 1 week ago