Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Jul 2017 |
Last Sign in: | 211 Weeks Ago, 4 Days Ago |
Questions Answered: | 15833 |
Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
CIS170C-Week 2 Lab Instructions is attached. C++ code is needed to complete the assignment. Thanks
Â
|
Â
CIS170C-Week 2 Lab Instructions
Â
Lab 2 of 7: Decisions and Repetition
Â
Lab Overview—Scenario/Summary
Â
You will code, build, and execute two programs requiring decisions.The first program will determine the smaller of two numbers input on the screen. The second program will calculate the number of calories burned on a treadmill using repetition.
Â
Learning outcomes:
Â
Â
Deliverables
Â
Section |
Deliverable |
Points |
Part A |
Step 7: Program Listing and Output |
15 |
Part B |
Step 7: Program Listing and Output |
15 |
All Parts |
Total |
30 |
Â
Lab Steps
Â
Â
If you are using the Citrix remote lab, follow the login instructions located in the lab (under General Resources within Course Resources) in Course Home.
Â
Locate the Visual Studio 2015 icon, and launch the application.
Â
Part A: Determine Smallest Number |
 |
Step 1: Requirements |
 |
Write a program that inputs two numbers and determines which of the two numbers is the smallest. If the numbers are equal, display a message that they are equal. Â Â Â Â Â Â Â Sample output from program: Â You will be asked to enter two numbers. The smallest value will be displayed or a message if they are the same. Â Â Â Â Â Please enter a numeric value: 4 Â Â Â Â Please enter a numeric value: 7 Â Â Â Â Â The smallest value is 4 Â Press any key to continue. Â AND THEN: Â Â Â Â Please enter a numeric value: 7 Â Â Â Â Please enter a numeric value: 4 Â Â Â Â Â The smallest value is 4 Â Press any key to continue. Â Â |
 |
Step 2: Pseudocode |
 |
Using the pseudocode below, write the code that will meet the requirements.  Display description of the program. Prompt the user for the first number. Prompt the user for the second number. If first number equals second number    Display the two numbers are equal Else    If first number is greater than second number        Assign second number to smallest    Else        Assign first number to smallest    End-If    Display smallest number End-If    |
 |
Step 3: Create a New Project |
|
Create a new project and name it LAB2A. Write your code using the processing logic in Part A, Step 2. |
|
Step 4: Save Program |
|
Save your program by clicking File on the menu bar and then clicking Save Program.cpp, or by clicking the Save button on the toolbar, or Ctrl + S. Â |
|
Step 5: Build Solution |
|
To compile the program, click Debugand then Build solution (F7). You should receive no error messages. If you see some error messages, check the code above to make sure you didn’t key in something wrong. Once you make your corrections to the code, go ahead and click Build >> Build Solution again.  |
|
Step 6: Execute the Program |
|
Once you have no syntax errors, to execute or run your program, click Debug on the menu bar, and then click Start Debugging. Â |
|
Step 7: Capture the Output |
|
 1.    Capture a screen print of your output.(Do a PRINT SCREEN, and paste into an MS Word document.) 2.    Copy your code and paste it into the same MS Word document that contains the screen print of your output. 3.    Save the Word Document as Lab02A_LastName_FirstInitial.   |
|
END OF PART A |
 |
Â
Â
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly