Write a program in the form of a game to guess a birthday

Assignment Help Computer Engineering
Reference no: EM131986087

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!"

Reference no: EM131986087

Questions Cloud

Describe the right-to-die movement in the united states : Name TWO significant cases or events that occured in the United States that furthered the right-to-die cause.
Perform k-means clustering on the dataset : Assignment Task - Clustering, Perform k-means clustering on the dataset. Are there any anomalies (unusual data/missing values) in the given dataset
What is the yield to call if they are called in five years : Kempton Enterprises has bonds outstanding with a $1,000 face value and 10 years left until maturity. What is the yield to call if they are called in 5 years?
Why stem cells are valued for certain types of scientific : Why stem cells are valued for certain types of scientific research. List one reason for and one reason against xenotransplantation.
Write a program in the form of a game to guess a birthday : 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).
What rate of return would she have earned for past year : If Janet sold the bond today for $1,173.39, what rate of return would she have earned for the past year?
What is the marxist perspective on the distribution of power : What is the Marxist perspective on the distribution of power within society and the political system & how this might affect participation in liberal democracy?
How much should you be willing to pay for bond : How much should you be willing to pay for Bond X today?
Employee working in a job with health care benefits : Where does the employer get the money to buy health insurance (excluding the employees' payment for any portion of the premium)?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a program that draws two solid squares

Write a program that draws two solid squares: one in pink and one in purple. Use a standard color for one of them and a custom color for the other.

  A database is a very important system in many

a database is a very important system in many organizations. you have been asked to participate in the selection of a

  What are two processes of conserving ip addresses

How are default subnet masks determined.What are two processes of conserving IP addresses? Explain these methods.

  Display total cost of their selection including sales tax

Create Web site that allows users to enter their first and last names phone number and e-mail. Display the total cost of their selection including 7% sales tax.

  Write an assertion for the bank database

Write an assertion for the bank database to ensure that the assets value for Perry ridge branch is equal to the sum of all amounts lent by Perry ridge branch.

  List some applications for large-screen displays

Explain how viflual-reality systems can be used in design applications. List some applications for large-screen displays.

  A program on a registration application for a school

a program on A registration application for a school

  Create script that copy the content from crash dumb folder

Need a script that copy the content from crash dumb folder and to store somewhere else

  Develop a plan on how to support a business

Develop a plan on how to support a business need with software, this software will have data points that we need to map.

  What are race situations difficult to debug

assume the legislature in your state is debating the adoption of UCITA and you have been known as an expert witness. What are the three most important ideas you want your legislators to get from the testimony.

  Implementing the java program

Write down a Java program which allows the user to enter the loan amount and loan period in number of years and show the monthly and total payments.

  Assume that intlist1 and intlist2 are list containers

assume that intList1 and intList2 are list containers.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd