Answered You can hire a professional tutor to get the answer.

QUESTION

It's actually into to c#, i'm trying to write_a simple program with a while loop in visual studio. The problem is: Create_a C# console application...

It's actually into to c#, i'm trying to write_a simple program with a while loop in visual studio.

The problem is:

Create_a C# console application (.NET framework) to complete the following. Running on a particular treadmill, you burn 3.9 calories per minute. Ask the user how many calories they wish to burn in this workout session (this is their goal). Once they tell you, output on the console after each minute, how many calories they have burned (e.g. After 1 minute, you have burned 3.9 calories). Keep outputting the total amount of calories they have burned until they have met their goal.

I have:

      String CalorieGoalString;

      double Caloriesburned=0;

      double CalorieGoal=0;

      int m=1;

      Console.WriteLine("Welcome to Time to Burn Calories!nnPlease enter your calorie goal for this workout!");

      CalorieGoalString = Console.ReadLine();

      CalorieGoal = Convert.ToDouble(CalorieGoalString);

      while (Caloriesburned <= CalorieGoal)

        {

        m++;

        m * 3.9 = Caloriesburned;

        Console.WriteLine(Caloriesburned);

        }

      Console.WriteLine("You must run for" + m + "minutes to burn" + CalorieGoal + "calories!");

      Console.ReadKey();

My program continues to fail and need some help.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question