Cis 170 Lab 3

In: Computers and Technology

Submitted By bob10
Words 1057
Pages 5
Student Lab Activity

A. Lab # CIS CIS170C-A3

B. Lab 3 of 7: Looping C. Lab Overview – Scenario/Summary

You will code, build, and execute a program that will use looping to determine the score for a diver based on individual judge’s scores.

Learning outcomes:

1. Become familiar with the different types of looping structures. 2. Be able to debug a program of syntax and logic errors. 3. Be able to use the debug step-into feature to step through the logic of the program and to see how the variables change values.

D. Deliverables

Section | Deliverable | Points | Lab 3 | Step 6: Program Listing and Output | 45 |

E. Lab Steps

Preparation:
If you are using the Citrix remote lab, follow the login instructions located on the iLab tab in Course Home.

Locate the Visual Studio 2010 icon and launch the application.

Lab:

Step 1: Requirements - DIVER Scoring Program | Your State Dive Association presently scores its diving competitions with pencil and paper. They would like for you to design and develop a Dive Program in C++.The paper forms that they presently use have the following: Diver’s Name, City
JudgeScore1 - The scores entered are from 0 to 10.
JudgeScore2
JudgeScore3
JudgeScore4
JudgeScore5
DegreeOfDifficulty - This is assigned once for each diver.
OverAllScore - The overall score is the individual diver’s scores totaled and then divided by the degree of difficulty. The highest and lowest scores are removed as they are often skewed entries. Total the three scores left, divide them by 3, and then multiply that by the DegreeOfDifficulty. The degree of difficulty ranges from 1.00 to 1.67.

Display the diver's information and overall score.When the competition is complete, there is a summary report created that lists the total number of divers and the average of the overall…...

Similar Documents

Cis 170 Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please reenter (Valid Range:...

Words: 523 - Pages: 3

Cis 170 Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please reenter (Valid......

Words: 525 - Pages: 3

Cis 170 Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please reenter (Valid......

Words: 525 - Pages: 3

Cis 170 Ilab 3 of 7

...helpido.com/cis336ilab-3-of-7/ --------------------------------------------------- CIS/336 iLab 3 of 7 - SQL Course ________________________________________ Beginning with this lab, and continuing through the remaining weeks you will be doing all of your work in Oracle itself. The editor interface to the Oracle server is SQL*Plus, and by now you have received your logon ID and password and should have at least made sure you can connect. If for any reason you have not done so, please do so now before continuing any further. If for any reason you cannot connect then you need to let the instructor know ASAP so that any problems can be resolved. Before attempting Lab #3, you need to be sure you have read through the SQL*Plus tutorial which can be found in Doc Sharing as well as under the SQL*Plus Tutorial tab in Week 3. This tutorial describes the functionality of the editor and will take you through the process of setting up and using the SQL*Plus in the iLab environment so that it will best serve your needs for the remainder of the labs required for this course. The lab for this week addresses taking a logical database design (data model) and now transforming that into a physical model (tables, constraints, and relationships). As part of the lab, you will need to download the Zip file titled "Lab 3 Support Documents" from Doc Sharing. This Zip file contains three documents: Lab 3 Relationship Diagram.docx, Lab 3 Meta Data Diagram.xlsx, and Lab 3 Input......

Words: 1452 - Pages: 6

Cis 170 Ilab 3 of 7

...helpido.com/cis336ilab-3-of-7/ --------------------------------------------------- CIS/336 iLab 3 of 7 - SQL Course ________________________________________ Beginning with this lab, and continuing through the remaining weeks you will be doing all of your work in Oracle itself. The editor interface to the Oracle server is SQL*Plus, and by now you have received your logon ID and password and should have at least made sure you can connect. If for any reason you have not done so, please do so now before continuing any further. If for any reason you cannot connect then you need to let the instructor know ASAP so that any problems can be resolved. Before attempting Lab #3, you need to be sure you have read through the SQL*Plus tutorial which can be found in Doc Sharing as well as under the SQL*Plus Tutorial tab in Week 3. This tutorial describes the functionality of the editor and will take you through the process of setting up and using the SQL*Plus in the iLab environment so that it will best serve your needs for the remainder of the labs required for this course. The lab for this week addresses taking a logical database design (data model) and now transforming that into a physical model (tables, constraints, and relationships). As part of the lab, you will need to download the Zip file titled "Lab 3 Support Documents" from Doc Sharing. This Zip file contains three documents: Lab 3 Relationship Diagram.docx, Lab 3 Meta Data Diagram.xlsx, and Lab 3 Input......

Words: 1452 - Pages: 6

Cis/170 - Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please reenter (Valid......

Words: 525 - Pages: 3

Cis/170 - Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please reenter (Valid......

Words: 525 - Pages: 3

Cis/170 - Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please reenter (Valid......

Words: 525 - Pages: 3

Cis/170 - Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please reenter (Valid......

Words: 525 - Pages: 3

Cis 170 Cis170 Cis/170 - Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS 170 CIS170 CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please......

Words: 528 - Pages: 3

Cis 170 Cis170 Cis/170 - Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS 170 CIS170 CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please......

Words: 528 - Pages: 3

Cis 170 Cis170 Cis/170 Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS 170 CIS170 CIS/170 iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please......

Words: 528 - Pages: 3

Cis 170 Cis170 Cis/170 Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS 170 CIS170 CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please......

Words: 528 - Pages: 3

Cis 170 Cis170 Cis/170 Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS 170 CIS170 CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please......

Words: 528 - Pages: 3

Cis 170 Cis170 Cis/170 Ilab 3 of 7

...HELPIDO.COM ------------------------------------------ Follow this link to get the tutorial www.helpido.com/cis170ilab-3-of-7/ ------------------------------------------ CIS 170 CIS170 CIS/170 - iLab 3 of 7 ________________________________________ Part A: Requirements - DIVE Scoring Program Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You’ve been hired to write a program to automate the scoring of dives. Following are the requirements for the program. After each dive, the user will be prompted to enter the:  diver’s name;  diver’s city;  degree of difficulty (ranges from 1.00 to 1.67); and  scores from five judges (scores can range from 0 to 10). If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered. The program will then display the following information:  Diver’s name  Diver’s city  Dive final score: This is calculated by dropping the highest and lowest of the five judges’ scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty. The program will then prompt the user if she/he wants to process another dive. The user can type “Y” or “y” to continue, and ”N” or “n” to quit. Sample output: Diver’s name: Sue Jones Diver’s city: Dallas Dive degree of difficulty: 1.9 Invalid degree of difficulty – Please......

Words: 528 - Pages: 3

Chapter 48 | LEIDEN ZET SYRISCHE VLUCHTELING OP STRAAT EN MARIJTIE KETENT ZICHZELF VAST | #BOOS S02E15 | Download Apk