Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Program calculates number of months needed for bunnies to reach a total of 100 and 1000 respectively

Program calculates number of months needed for bunnies to reach a total of 100 and 1000 respectively

Project 1
This program calculates number of months needed for bunnies to reach a total of 100 and 1000 respectively

Declare n as integer “Number is the initial number ”

Input the number

Declare monthsCounter as integer

Set MonthsCounter to zero

Set total to n

WHILE newTotal is less than 100:

Set total to double the total

Increase monthsCounter by three

ENDWHILE

PRINT “The initial number of bunnies :”+n

PRINT “It takes monthsCounter months to reach to 100”

Set MonthsCounter to zero

Set newTotal to n

WHILE total is less than 1000:

Set total to double the total

Increase monthsCounter by three

ENDWHILE

PRINT “It takes monthsCounter months to reach to 1000”

Project 2
/**

*This program computes the volume in gallons and weight in

*pounds for water used to fill balloons toss contest

*

*/

import java.util.Scanner;

public class NewClass {

public static void main(String[] args) {

//Declare and initialize variables

Scanner scan = new Scanner(System. in );

final double INCHES_CUBED_TO_GALLON = 231;

final double GALLON_TO_POUNDS = 8.33;

int balloons; //number of balloons

double diameter; //diameter of balloon in inches

double volume = 0; //volume in inches cubed

double volumeInGallons; //volume in gallons

double weight; //weight in pounds

//get inputs

System. out .print(“Number of water balloons: “);

balloons = scan.nextInt();

System. out .print(“Diameter of each balloon in inches: “);

diameter = scan.nextDouble();

//Do calculations

volume = balloons * 3 / 4 * Math. PI * Math.pow((diameter / 2), 3);

volumeInGallons = volume / INCHES_CUBED_TO_GALLON;

weight = volumeInGallons * GALLON_TO_POUNDS;

//display the output

System. out .println(“nWater balloon information”);

System. out .println(“Number of balloons= ” + balloons);

System. out .println(“Gallon of water needed to fill up the balloons= ”

+ volumeInGallons + ” Gallons”);

System. out .println(“Total weight= ” + weight + ” Pounds”);

}//end of main function

}//end of class

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: I'm Homework Free only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by I'm Homework Free are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. I'm Homework Free is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At I'm Homework Free, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.