Part-1prepare a program that teaches arithmetic to a young

Assignment Help JAVA Programming
Reference no: EM13351133

Part-1

Prepare a program that teaches arithmetic to a young child. The program tests subtraction and addition. In Level 1 it tests only addition of numbers less than 10 whose sum is less than 10. In level 2 it tests addition of arbitrary one-digit numbers. In level 3 it tests subtraction of one-digit numbers with a non-negative difference. Generate random problems and get the player input. The player gets up to two tries per problem. Advance from one level to the next when the player has achieved a score of five points.

Part-2

Write a program that assigns seats on an airplane. Suppose the airplane has 20 seats in first class (5 rows of 4 seats each, separated by an aisle) and 90 seats in economy class (15 rows of 6 seats each, separated by an aisle). Your program could take three commands: add passengers, show seating, and quit. When passengers are added, ask for the class (first or economy) the number of passengers traveling together (1 or 2 in first class; 1 to 3 in economy), and the seating preference (window or aisle in first class; aisle, center, or window in economy). Then try to evaluate a match and assign the seats. If no match exists, print a message. Your solution should include a class Airplane that is not coupled with the Scanner or Print Stream classes.

Reference no: EM13351133

Questions Cloud

The business strategy game bsg is basically a pc-based : the business strategy game bsg is basically a pc-based approach devised to highlight the actual-world character of the
In january 2009 anna entered in a contractual agreement : in january 2009 anna entered in a contractual agreement with penguin ltd to prepare a book on indian recipes for
1 salem corporation uses the calendar year as its tax and : 1. salem corporation uses the calendar year as its tax and financial annual accounting period. management because of
Problem 1the average prices for a product in 12 stores in a : problem 1the average prices for a product in 12 stores in a city are given
Part-1prepare a program that teaches arithmetic to a young : part-1prepare a program that teaches arithmetic to a young child. the program tests subtraction and addition. in level
Given a hash function hkey prepare a java simulation : given a hash function hkey prepare a java simulation program to determine each of the subsequent quantities after
Q1 for the beam given in the figure below assume that the : q1. for the beam given in the figure below assume that the material is astm-a514 steel with elastic modulus and e
A horizontal 500 lb force performs at a point d of : a horizontal 500 lb force performs at a point d of crankshaft ab which is held in static equilibrium by a twisting
Q1 an s corporation is subject to the following taxa : q1. an s corporation is subject to the following tax.a. corporate income tax. b. built-in gains tax. c. accumulated

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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