In this c# program please convert into c++ program and please put the height (feet into inches. Source Code: using System; namespace BMI {     internal class Program     {         static void Main(string[] args)         {             float bmi, m, h;             String name;             Console.Write("Enter the student name: ");             name =  Console.ReadLine();             Console.Write("\nEnter the grade level(1-6): ");             h = float.Parse(Console.ReadLine());             Console.Write("\nEnter the student Weight(kg): ");             m = float.Parse(Console.ReadLine());             bmi = m / (h * h);             Console.WriteLine("\nStudent BMI is: " + bmi);             if(bmi < 18.5)             {                 Console.WriteLine("\nStudent is Underweight");             }             else if(bmi >= 18.5 && bmi < 25)             {                 Console.WriteLine("\nStudent is Normal Weight");             }             else if(bmi >= 25 && bmi < 30)             {                 Console.WriteLine("\nStudent is Overweight");             }             else             {                 Console.WriteLine("\nStudent is Obese");             }         }     } }

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.6: Nested Loops
Problem 5E: (Mathematical functions) Write a program that calculates and displays values for y when y=xz/(xz)...
icon
Related questions
Question

In this c# program please convert into c++ program and please put the height (feet into inches.

Source Code:

using System;
namespace BMI
{
    internal class Program
    {
        static void Main(string[] args)
        {
            float bmi, m, h;
            String name;

            Console.Write("Enter the student name: ");
            name =  Console.ReadLine();

            Console.Write("\nEnter the grade level(1-6): ");
            h = float.Parse(Console.ReadLine());

            Console.Write("\nEnter the student Weight(kg): ");
            m = float.Parse(Console.ReadLine());

            bmi = m / (h * h);

            Console.WriteLine("\nStudent BMI is: " + bmi);

            if(bmi < 18.5)
            {
                Console.WriteLine("\nStudent is Underweight");
            }
            else if(bmi >= 18.5 && bmi < 25)
            {
                Console.WriteLine("\nStudent is Normal Weight");
            }
            else if(bmi >= 25 && bmi < 30)
            {
                Console.WriteLine("\nStudent is Overweight");
            }
            else
            {
                Console.WriteLine("\nStudent is Obese");
            }
        }
    }
}

 

See the picture below that's sample output of this program.

INPUT
Your program must prompt the user to input the following:
Students' full name (Last, First)
• Grade level (1-6)
Students' Weight (pounds)
Height (feet and inches)
Transcribed Image Text:INPUT Your program must prompt the user to input the following: Students' full name (Last, First) • Grade level (1-6) Students' Weight (pounds) Height (feet and inches)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning