Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Questions: (1) (2 marks) Create and test a C console application that does the following (1) Create three variables of the string data type, named

image text in transcribed
image text in transcribed
Questions: (1) (2 marks) Create and test a C console application that does the following (1) Create three variables of the string data type, named fin name, last name, and full name respectively; (2) Use the built-in function Console.ReadLine() to get the user's input for first name and last_name using the following statements: Console.WriteLine("Enter your first name:"); first_name Console.ReadLine(): Console.WriteLine("Enter your last name: "); last_name - Console.ReadLine(); (3) Concatenate the variables first_name and last name together, and then assign the result to the variable full name as follows (there is a space between the two double quotes); full_name = first_name + " " + last_name; (4) Use the following statement to display the output: Console.WriteLine("Thank you + full name); (2) (4 marks) Create and test a C# console application that does the following: (1) Create three variables of int data type, named x, y, respectively: (2) Use the built-in function Console.ReadLine() to get the user's input for x and y as follows (it is assured that the user always inputs integers when testing this program); Console.WriteLine("Input the first number:"); Convert.ToInt32(Console.ReadLine(): Console.WriteLine("Input the second number:"); y - Convert.ToInt32(Console.ReadLine(); (3) Compute the smaller of x and y, and then assign the result to z as follows: if (x

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago