Part 1 - Say Hello with IDEA
Development Process
1. Write a simple program, in a class named "First" (saved in In its main(), print "Hello World!".
2. Now create a new class, Hello, in a separate file.
a) Add a static method "say()" that prints "Static Hello!".
b) From within First.main(), after printing "Hello World!", call the static method Hello.say();
c) Run the program to see the two "hello"s
3. Add another method to class Hello, an instance method, not a static method.
a) Name the new method "mySay( )"
b) Have mySay( ) print "Instance Hello!"
c) From within First.main() after the call to Hello.say(), instantiate class Hello.
       for example: Hello myHello = new Hello();
d) Then call the mySay( ) for that instance of Hello
e) Run the program to see the three "hello"s
4. Create new, separate projects and experiment with the IDE, its shortcut keys, and its debugger, but don't submit the experimental projects.
Part 1 Additional Requirements
• Add your name and the assignment number, M1A1 in a comment on the top of each .java file
• There should be two classes with separate files: First and Hello
• All three steps described above must be demonstrated and working.
• Zip your whole project and submit it for this assignment, as shown below in "Submitting your work (...)"
Part 2 - Bicycle Calorie Counter
1. Write a small java application to calculate calories burned when riding a bike.
2. Read and work from Bicycle Calorie Calculator Specification
It lists the requirements, gives some guidance, outlines assumptions. You do need to work from the specification.
3. The application must accept velocity in miles per hour in riding the bike and it must output the calories burned per mile and calories burned per hour.

Bicycle Calorie Calculator Specification
Bicycle Calorie Calculator Specification
Write a program to show calories burned in riding a bicycle, for a given velocity (in mph) as described below.
The Formula
A rough estimate of the number of Calories burned by a rider on a bicycle is given by this formula:
CalPerMinute = (K_1*V + K_2*V*V*V) / 69.78 / 0.25
V = velocity in m/s      
V = 0.447 * Vmph;
Vmph = velocity in miles per hour
V = 0.447 * Vmph
Note: For a rider & road bicycle weighing a total of 187 pounds, K_1 = 3.509 and K_2 = 0.2581.Use these constants in your implementation of the formula.
Check: CalPerMinute at 10mph is about 2.22

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

import java.util.Scanner;

* BicycleCalorieCounter class
public class BicycleCalorieCalculator {

    // Method to calculate calories per minute
    public static double CalPerMinute(double Vmph) {
       double K_1 = 3.509;
       double K_2 = 0.2581;
       double V = 0.447 * Vmph;
       double CalPerMinute = (K_1*V + K_2*V*V*V) / 69.78 / 0.25;
       return CalPerMinute;
    // Main method for program execution
    public static void main(String[] args) {
       Scanner s = new Scanner(;
       while (true) {
            System.out.print("Enter a velocity (in mph): ");
            double Vmph = s.nextDouble();
            if (Vmph <= 0)

By purchasing this solution you'll be able to access the following files:

for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats