Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Problem

Write a program in the form of a game to guess a birthday of you're choosing, and ask the player to try guessing it. (I've chosen 7/30/1989)

1. For the start of the game, print out "Are you ready to play?"

2. Ask the player/user to input a year by printing "Please input a year"

3. Ask the player/user to input a month by printing "Please input a month"

4. Finally, ask the player/user to input a day of the month by printing "Please input a day"

5. If the player/user gives a non-numeric input, display "Game over" and end the game.

Total points possible is 100. If the user guesses the wrong year, deduct 20 points. If the user gets the month wrong, deduct 15 points. If the user guesses the wrong day, deduct 5 points. The remaining points are automatically given as a reward for participating, but can be subtracted by incorrect guesses.

6. For the Final output, display the total points to the user in the format of "Your score is ___ points". If the user gets all 100 points, print "Congratulations! You Won!"

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92823739

Have any Question?


Related Questions in Computer Engineering

Tasks1 identify possible actors and use cases involved in

Tasks: 1. Identify possible actors and use cases involved in Personal Trainer's operations. 2. Create an object relationship diagram for the Personal Trainer information system. 3. Create a use case diagram for the syste ...

Quesiton for completion of the program use arrays and

Quesiton: For completion of the program, use arrays and files. Instead of prompting the user for the prices of the book, update the website program to reflect the following changes: • Read the prices into an array from a ...

Discuss the relationship between fundamental analysis and

Discuss the relationship between fundamental analysis and intrinsic value. Include real-world examples in your explanation.

A bird is flying around the world at a rate of 256ftmin how

A bird is flying around the world at a rate of 25.6ft/min. How many weeks will it take to compete it's journey if the circumference of the earth is25,000 miles using factor label method.

Research and describe a tool that can be used to test for

Research and describe a tool that can be used to test for web server vulnerabilities. This tool can be as simple as a Google Dork or it can be included in a toolkit for performing enumeration. Why is this tool valuable t ...

Question responsive frameworks and libraries provide

Question : Responsive frameworks and libraries provide convenience when creating a modern website. Discuss at least three design options, such as hiding content or layout changes, that would be beneficial for a responsiv ...

What is the simplest way to understand hc03 in the

What is the simplest way to understand HC03 in the acid-base study of electrolytes?

This chart lists the estimated lengths and arrival times

This chart lists the estimated lengths and arrival times for 5 jobs. In what order do these run using FCFS? What is the average turn-around time (difference in time between a job's arrival and its completion)? In what or ...

Short answer1 what must be installed or prepared to utilize

Short answer: 1. What must be installed or prepared to utilize Windows Remote Management (WinRM) on a Windows Server 2012 R2? 2. What is the PowerShell command to check the status of Windows Remote Management (WinRM)? 3. ...

Please do it in c programrevisit the matrix addition

Please do it in C program Revisit the matrix addition function Write the program so that it would not need to take a third pointer for the result matrix Instead, have the function return a pointer to the results matrix P ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As