Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is suppose to be done in C# 1 using static System.Console; 2 class InchesTo

ID: 3744329 • Letter: T

Question

This is suppose to be done in C#

1 using static System.Console; 2 class InchesToCentinetersInteractive Convert the Inches ToCentimeters program to an interactive application named InchesToCentimetersinteractive. static void Main) nstead of assigning a value to the inches variable accept the value from the user as input const double CENTIMETERS-PER-INCH = 2.54; double inches-3 writeLine("(0) inches is {1} centimeters", inches, Write"Enter the anount of inches to convert: inches * CENTIMETERS-PER-INCH); Display the measurement in both inches and centimeters-for example, if inches is input as 3, the output should be: 3 inches is 7.62 centimeters 10inchesdouble.Parse(ReadLine)) Grading 12 13 14 When you have completed your program, click the Submit button to record your score

Explanation / Answer

Program:--

using System;
                  
public class InchestoCentimetersInteractive
{
   public static void Main()
   {
       const double CENTIMETERS_PER_INCH = 2.54;
       double inches;
       Console.WriteLine("Enter Inches to convert into Centimeters: ");   //asking inches value
       inches=Convert.ToDouble(Console.ReadLine());   //reading from console
       Console.WriteLine("{0} inches is {1} centimeters",inches,inches*CENTIMETERS_PER_INCH);
   }
}

output:--

Enter Inches to convert into Centimeters:
3
3 inches is 7.62 centimeters

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote