Question: Framework/Hint: using System; public class FirstProgramV3 { public static void Main() { // Declare a 'string' variable called 'name' to hold the user's name //

 Framework/Hint: using System; public class FirstProgramV3 { public static void Main()
{ // Declare a 'string' variable called 'name' to hold the user's
Framework/Hint:
using System;
public class FirstProgramV3
{
public static void Main()
{
// Declare a 'string' variable called 'name' to hold the user's name
// ...
// Declare an 'int' variable called 'height' to hold the user's height
// ...
// Display the message "Please enter your name: ".
// (hint: Use Console.Write instead of WriteLine for this)
// ...
// Use Console.ReadLine to read what the user types into the 'name' variable
// ...
// Write a single blank line
// ...
// Write "Hello (name goes here), and welcome to CAB201" on a line by itself.
// Instead of (name goes here) you should put in the name the user gave you.
// ...
// Write "How tall are you, (name goes here)? "
// (use Console.Write instead of Console.WriteLine for this)
// ...
// Read in the user's height (in centimeters)
// ...
// If the user's height is greater than 180cm, display this message:
// "(name goes here), you are taller than most people!"
// Otherwise, display this message:
// "(name goes here), you are shorter than most people!"
// ...
{
// ...
} else
{
// ...
}
Console.WriteLine("Press enter to exit");
Console.ReadLine();
}
}

After typing your name and pressing enter, the program greet you and then ask for your height: Please enter your name: Tin ello Tin, and welcome to CA B201 low tall are you. Tin? Upon entering your height, the program should remark "(name), you are taller than most people!" if your height is greater than 180cm: Please enter your name Tin Hello Tin, and welcone to CAB201 in, you are taller than most people! Press enter to exit in. you are yolier than n2st people

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!