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

  Program which evaluates a weighted average

Write a program which reads student names, social security numbers, and test scores from an input file named infile.

  Web engineering principles

web application development, Web Engineering methodology, UML-based Web Engineering (UWE), models to the expansion of web applications, Object Oriented Web Solutions (OOWS),Web Modeling Language (WebML) methodology, Object-Oriented Hypermedia Design..

  Implement the fraction class

Implement the Fraction Class, Add the following functions into the definition of the Fraction class above main. The main function already has the calls to those functions written. You must write the required functions into the Fraction class such..

  Implements both the quicksort and mergesort algorithms

Write a program that correctly implements both the Quicksort and Mergesort algorithms. The program should generate an array of 500 random numbers in the 1-100 range. The program should sort the same set of numbers and keep time stamps of how long it ..

  Create a pair of programs a client and a server to

create a pair of programs a client and a server to distribute the functions of the library you developed. the client

  Create a tic-tac-toe

create a tic-tac-toe

  A common useful equation

In physics, a common useful equation for finding the position s of a body in linear motion at a given time t, based on its initial position s0, initial velocity v0, and rate of acceleration a, is the following: ??= ??0+??0??+12????2. Write code to de..

  Write a servlet that computes the total cost of the bulbs

Write a servlet that computes the total cost of the ordered light bulbs from above problem after adding 6.2 percent sales tax. The servlet must inform the buyer of exactly what was ordered in a table

  How these feature desirable in modern software engineerig

Java is a portable language and being an object-oriented programming language, it also encourages component reusability. How are these features desirable in modern software engineering

  Write a string expression that parenthesizes the value

Given a string varible word, write a string expression that parenthesizes the value of word. So if the word contains "sadly" the value of the expression would be the string "(sadly)".

  Represent the relationship between parents - children class

Draw a class diagram that represents the relationship between parents, children, and grandparents. Take into account that a person can have both a parent and a child. Annotate associations with roles and multiplicities.

  Tic-tac-toe game assignment

Assignment 1(Java): Tic-Tac-Toe Game (Assignment 1 is attached),  Use the concepts and scenario from Assignment 1 and continue with the tic-tac-toe game design and development.  Section 1: Java Program File, The following method, numPaths, is suppos..

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