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
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..
|