Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is the first project of the course. In this project you will set up necessary software in order to develop the rest of the

image text in transcribed

image text in transcribed

This is the first project of the course. In this project you will set up necessary software in order to develop the rest of the C#/.NET projects for the course. You will also verify that your IDE is configured properly and get familiar with your IDE by writing and running a simple test program on it. Specifically, you will complete the following: I. II. Software installation: a. Follow the instructions on pages 6-9 of the textbook to install Visual Studio (VS) 2022 with C# 10 and .Net 6 support on your computer. It is recommended to install VS Code since it's cross-platfonn but VS Windows and VS Macs are acceptable if that works best with your system. Most code examples given in this course will be developed in VS Code but should compile and run in other versions with minor editing if any at all. b. Continue following the instructions to create a Hello-World console application in your VS IDE, then compile and run the application to verify the installation is successful. Develop and run a test program for your VS: Create a console application named Project that tests your IDE is properly conligured. Your Projectl main program should contain code that does each of the following: Add a namespace to your program so that the lollowing statement can be compiled and executed without error: WriteLiner "Starting resting your Visual Studio... "); b. For cach of the types bool, int, double, char, and string, do the following: i. Display the name, size, range of values, and dcfault value of the type if applicable. Create a variable of the type and display the name of the variable, and ii. Assign a non-default value to the variable and display it. Assign the line of slanted text below to the string variable created in (b) in three a. e. c. Assign the line of slanted text below to the string variable created in (b) in three ways and display the string after each assignment. This string contains the following special symbols: d. Display the value of the int variable created in (b) in binary and heximal forms. Use an if statement to determine if the double expression 1.0/3.0 equals the value 0.33333333 in C#? What about 0.33333333333333333? f. Create a dynamic variable and show an example in which the dynamic variable can be used in different types even within the same C# code Block. g. Create a variable of type var and show an example in which the actual type of the variable can be inferred by the compiler. h. Take three command line parameters from the user, treat them as double values and output the average displaying two digits only after the decimal point. a i. Ask the user to hit some random keys on the keyboard and output the sequence of keys the user hit

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

Step: 3

blur-text-image

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

The Database Factory Active Database For Enterprise Computing

Authors: Schur, Stephen

1st Edition

0471558443, 9780471558446

More Books

Students also viewed these Databases questions

Question

b. What are its goals and objectives?

Answered: 1 week ago