Design and implement an application that reads an integer

Assignment Help Database Management System
Reference no: EM13327701

Program 1

Design and implement an application that reads an integer value representing a birthdate from the user. First get the month, then get the day and then finally the year from the user. The purpose of the program is to determine if what the person's astrological sign is.Once you display their sign, you should display the description of that particular sign.

Extend:Take this program and allow the user to continue adding new birthdates.You should also keep track of how many of each sign have been entered.

Program 2

Design and implement an application that produces a multiplication table, showing the results of multiplying the integers 1 through n by themselves.** Think n x n table of results.You will get the size of n from the user and then print out the table.Create a variation of this program that prints out only the evens and then another variation that prints out only the odds.You should give the user the option to print out evens or odds.You should create another class with methods to perform these calculations.

Extend:You should allow the user to enter the first number and the last number as well.

Example:

 

1

2

3

1

1

2

3

2

2

4

6

3

3

6

9

Program 3

Pig - Dice Game

Gameplay

On a turn, a player rolls the die repeatedly until either:

  • A 1 is rolled
  • The player chooses to hold (stop rolling)

If a 1 is rolled, that player's turn ends and no points are earned.

If the player chooses to hold, all of the points rolled during that turn are added to his or her score.

Scoring Examples

Example 1:Sherri rolls a 3 and decides to continue. She then chooses to roll two more times (6, 1). Because she rolled a 1, Sherri's turn ends and she earns 0 points.

Game End

When a player reaches a total of 100 or more points, the game ends and that player is the winner.

New to you: You are going to fully implement this game now.

Program 4

You are going to extend your SimpleQuestionandAnswer game so that you can ask how many questions they want to answer. You are also going to extend it so that any operation could can work (i.e. +,-,*,/).Finally, you should keep track of how many they got correct and how many they go incorrect.You should also ask them if they want to go again or not.

Reference no: EM13327701

Questions Cloud

Advise alpha of the income tax : Advise Periwinkle of its FBT consequences arising out of the above information, including calculation of any FBT liability, for the year ending 31 March 2014 and how would your answer to (a) differ if Emma used the $50,000 to purchase the shares h..
What is the force which must be exerted on block : The surface between a 12kg block , the 16kg wedge and between 16 kg wedge and the horizontal plane are smoothe, What is the force F which must be exerted on the 16 kg block in order that the 12 kg block
Roles they play in society or your life : Explain ways in which you alter your communication according to context and or individuals and the roles they play in society or your life. Please use specific examples and demonstrate how they adequately explain your point.
Compute the duration for bond c and rank the bonds : Compute the duration for bond C, and rank the bonds on the basis of their price volatility. The current rate of interest is 8 percent, so the prices of bonds A and B are $1,000 and $1,268 respectively.
Design and implement an application that reads an integer : Design and implement an application that reads an integer value representing a birthdate from the user. First get the month, then get the day and then finally the year from the user.
Find the temperature at the initial state : 4 lbm of water is in a volume of 10.0 ft3 at 60 psi. The water undergoes an isobaric change of state until the temperature is 500°F. Find the temperature at the initial state
Mitigate threats by bolstering weaknesses : Use both research and your personal experience to develop a SWOT analysis of your college or university (your school’s website is almost certainly a rich source of information). Remember that strengths and weakness are internal, and typically within ..
Determine what is the value of the stock today : Simpkins Corporation does not pay any dividends because it is expanding rapidly and needs to retain all of it's earnings. However, investors expect Simpkins to begin paying and dividends, with the first dividend of $.50 coming 3 years from today.
What is the average speed of the object : An object moves 20 m east in 30 s and then returns to its starting point taking an additional 50s. what is the average speed of the object

Reviews

Write a Review

 

Database Management System Questions & Answers

  Information-gathering techniques for the project

Explain the information-gathering techniques and design methods you would suggest to use for project. Recognize the key factors that help ensure the information required for the project.

  Create link list in adt to maintain employee information

Create a link list in ADT c to maintain employee information like name,empid,basic salary and address.1.add employee info to the list if the empid is valid.

  Design and build a prototype data warehouse

Design and build a prototype data warehouse using the data on Spend over £25,000 in the Science and Technology Facilities Council

  Perform large number of client-server requests into database

A small business with 100 computer workstations is installing a new local area network. All of the users perform the usual operations of e-mail. State your reasoning. Draw a floor plan for each If possible, show both floor plans on one page.

  Write procedure to construct character frequency table

Write the procedure named Get_frequencies which constructs character frequency table. Input to procedure must be a pointer to the string, and pointer to array of 256 doublewords.

  Write an application that creates a database named phonebook

Write an application that creates a database named PhoneBook. The database should have a table named Entries, with columns for a person's name and phone number. Next, write an application that lets the user add rows to the Entries table,

  Write three items contained in fat database

What does CHS stand for? List three items contained in the FAT database. List two features NTFS provides that FAT does not.

  Show the rea diagram using microsoft word

Show the REA diagram using Microsoft Word

  Explain data for each candidate of eight constituencies

supplies % of votes each candidate is likely to receive, based on popularity rating. Actual number of votes received is that percentage of General votes. You should enter data for each candidate in each of the eight constituencies.

  Explain evaluating a proposal for acquisition and sourcing

When evaluating a proposal for acquisition and sourcing, are there considerations that are unique in the case of an IT project versus a non-IT project

  Binary 1-n relationship-optional-to-optional relationship

Give examples of binary 1:N relationships, for (a) an optional-to-optional relationship, (b) an optional-to-mandatory relationship,

  Explain the apache web server in regard to cost

Discuss the Apache Web server in regard to cost, functionality, and compatibility. Are there certain implementations were it may not be suitable

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