Determine and print the weekly rate.

Assignment Help JAVA Programming
Reference no: EM13940211

The program should allow users to enter the age of the child and the number of days per week stays. Need to write the input statements and the code that initializes the two-dimensional array, determines the weekly rate and prints the weekly rate.

1. Open the source code DayCare.java
2. Declare and intialize the two-dimensional array
3. Write the Java Statements that retrieve the age of the child and the number of days the child will be at the day care center.
4. Determine and print the weekly rate.

Please see attachments for the questions.

import javax.swing.*;

public class DayCare
{
public static void main(String args[])
{
// Declare two-dimensional array here.

// Declare other variables.
int numDays;
int age;
String numDaysString;
String ageString;
int QUIT = 99;

// This is the work done in the getReady() method
// Perform a priming read to get the age of the child.

while(age != QUIT)
{
// This is the work done in the determineRateCharge() method
// Ask the user to enter the number of days

// Print the weekly rate

// Ask the user to enter the next child's age

}
// This is the work done in the finish() method
System.out.println("End of program");

System.exit(0);
} // End of main() method.
} // End of DayCare class.

Attachment:- DayCare.zip

Reference no: EM13940211

Questions Cloud

Explain concept of decoupled organization as it relates : Large organizations face the threat of becoming decoupled. Explain the concept of a decoupled organization as it relates to a criminal justice agency. Discuss some of the challenges that decoupling presents and strategies utilized by criminal just..
Equity prior to the announcement is expected gain or loss : FARO Technologies, whose products include portable 3D measurement equipment, recently had 17 million shares outstanding trading at $42 a share. Suppose the company announces its intention to raise $200 million by sell new shares. What do market signa..
Draft compliance matrix and compliant proposal to rfp : Create a compliance matrix and prepare a FAR-compliant proposal in response to the RFP from Assignment 2. Note: You may create and /or assume all necessary assumptions needed for the completion of this assignment.
Calculate the variable cost and contribution margin per unit : Calculate the variable cost per unit and the contribution margin per unit. Calculate the contribution margin ratio and the variable cost ratio.
Determine and print the weekly rate. : Write the Java Statements that retrieve the age of the child and the number of days the child will be at the day care center.
Estimate of the the call options value-stock price model : You are attempting to value a call option with an exercise price of $90 and one year to expiration. The underlying stock pays no dividends, its current price is $90, and you believe it has a 50% chance of increasing to $125 and a 50% chance of decrea..
Calculate the net present value for the two options : Show by calculation the net present value for the two options (selling cars, mileage fees). Also, according to NPV suggest which alternative you advise your friend to choose
How would you influence the internal and external politics : How would you use the following to improve decision making in the bureau: equity, accuracy, consistency with theory, consistency with resources, and making decisions that contribute to future decisions?
What is the present value of the portfolio : We will derive a two-state put option value in this problem. Data: S0 = 290; X = 300; 1 + r = 1.1. The two possibilities for ST are 330 and 180. a. The range of S is 150 while that of P is 120 across the two states. What is the hedge ratio of the put..

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