Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Open Visual Studio and create an empty project and name it 'InLab 0 2 ' , make sure the save location is set to your

Open Visual Studio and create an empty project and name it 'InLab02', make sure the save location is set to your Home drive (W:) in CNIT105 In_Labs folder or in your appropriate folder directory.
Add a new item to the Source Files folder in the Solution Explorer and name the file 'InLab02.c'
Type the code using the template provided earlier
Declare the following variables, with proper data types and meaningful names:
a. The number of students (an integer)- Name it 'numStudents'.
b. The price of a textbook (a floating-point number)- Name it price'
c. Today's temperature in Fahrenheit (a floating-point number)- Name it 'tempF'.
d. Today's temperature in Celsius (a floating-point number)- Name it 'tempC'.
e. The distance a car has moved (a floating-point number)- Name it 'distance'.
f. The time it has traveled (a floating-point number)- Name it 'time'.
g. The speed of the car (a floating-point number)- Name it 'speed'.
image text in transcribed

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

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

How to solve maths problems with examples

Answered: 1 week ago