This website uses cookies to ensure you have the best experience.

# Cis 170 Lab 3 Essay

1089 words - 5 pages

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

A nested loop is when one loop is completely contained in another loop. In an inner loop, you will read the five scores one at a time. Every time you read the score (in the loop), you will compare the score to the highest so far and also to the lowest so far so you can determine the highest and lowest scores, in addition to adding the scores up one at a time.You also need to have your program process multiple divers. Put this in an outer loop. After you process the information for one diver, prompt the user if she/he wants to process another diver. Allow the user to type either a “Y” or “y” to enter another diver's information; otherwise, exit the loop. Write an event summary by calculating and displaying the average score for all divers and the total number of divers participating.Garbage in Garbage Out (GIGO): The data being entered by the user needs to be validated. Scores by judges may range between 0 and 10. If the user enters an invalid score, display an error message, and prompt for the score again. Keep doing this until the user enters the score correctly. The degree of difficulty may range from 1.00 to 1.67.  Sample output from program Report to the mediaEvent: Diving competitionEnter the diver's name: Sue JonesEnter the diver's city: DallasEnter the score given by judge #1: 45Invalid score - Please reenter (Valid Range: 0 - 10)Enter the score given by judge #1: 3Enter the score given by judge #2: 4.5Enter the score given by judge #3: 6.7Enter the score given by judge #4: 89Invalid score - Please reenter (Valid Range: 0 - 10)Enter the score given by judge #4: 8Enter the score given by judge #5: 9.2What was the degree of difficulty? 1.9Invalid degree of difficulty - Please reenter (Valid Range: 1 - 1.67)What was the degree of difficulty? 2Invalid degree of difficulty - Please reenter (Valid Range: 1 - 1.67)What was the degree of difficulty? 1.2Diver: Sue Jones, City: DallasOverall score was 7.68Do you want to process another diver (Y/N)? yEnter the diver's name: Dave SmithEnter the diver's city: HoustonEnter the score given by judge #1: 5.7Enter the score given by judge #2: 6.8Enter...

## Other Essays Like Cis 170 Lab 3

### Application of Gc in Flavour Analysis

980 words - 4 pages Batch 1Bottom-2 0.21 3 Batch 1Bottom-3 0.21 4 Batch 1Middle-1 0.77 5 Batch 1Middle-2 0.79 6 Batch 1Middle-3 0.84 Marker Quantification in Lab blended Flavoured Tea Sample Flavoured Tea Analysis 16000 14000 Area (pA*sec) 12000 10000 S1 S2 S3 8000 6000 4000 2000 0 0 10 20 30 RT (min) 40 50 60 Different marker compounds eluting at different RT in three varieties of tea

### Normalization Essay

894 words - 4 pages Lab 3: EasyPHP and MySQL Setup Michelle Cox Professor Gerry Waldrop CIS 111 August 4, 2014 MySQL is available for Microsoft Windows, for both 32-bit and 64-bit versions. It is possible to run MySQL as a standard application or as a Windows service. By using a service, you can monitor and control the operation of the server through the standard Windows service management tools. Generally, you should install MySQL on Windows

### Customs Union Of Belarus, Kazakhstan, Russia And Kyrgyzstan

3064 words - 13 pages for others. Moreover, it is also believed that by forming the Customs Union Russia could control other countries and enhance influence in the Central Asia region.Analysis of 3 (4 in future) countries' marketThe Customs Union sets up a market with a population of 165-170 million people, aggregate industrial potential of \$600 billion, oil reserves of 90 billion barrels, and agricultural production of \$112 billion. The three countries' aggregate GDP

### Sindh Poultry Vaccine Center

4797 words - 20 pages -700 litres) Freezer (walk in cooler) Incubator (Shaker Capacity 50 litres) Incubator (Bacteriological) Incubator (Roller Bottles for CO2) Incubators (CO2 Lab Scale) Incubators (Egg without hatcher, Capacity 5000 eggs) Lyophilizer (Capacity 10000 vials) QUANTITY 2 3 5000 5000 1 1 3 250 500 1 2 2 1 1 1 2 1 1 1 4 2 1 2 3 1 RATE Rs 15,000.00 100,000.00 25.00 50.00 500,000.00 500,000.00 600,000.00 250.00 400.00 250,000.00 250,000.00 1,000,000.00

### Partnering with Industry for a Computer Science

5009 words - 21 pages learning experience of a team effort and a more constrained and realistic set of projects provided the impetuous for our extensive revision of the Senior Project course. 2 3 3.2 Course objectives and implementation The Senior Project course (CIS 4910) is the capstone experience for seniors in the Department of Computer Science and Engineering. The goal of the revised course is for students to learn the product development process

### Finr Final Assignment Av La Rosa Saipem Schlumberger

4613 words - 19 pages World’s Top 10 biggest oilfield services companies list, Schlumberger is the top 1 biggest company and Saipem is the top 3 biggest company; furthermore both companies are listed. For these reasons, we can consider those companies as proper peers. We collected the 2014 Annual Report for both companies. The Annual Reports, retrieved from the Investors section in the related official websites, show the consolidated figures as of December 31, 2014 and

### Clinical Integration Case Analysis

2513 words - 11 pages . (2012). A pilot study evaluating the effect of mindfulness-based stress reduction on psychological status, physical status, salivary cortisol, and interleukin-6 among advanced-stage cancer patients and their caregivers. Journal of Holistic Nursing, 30(3), 170-185. doi:10.1177/0898010111435949 Lewis, S. M., Dirksen, S. R., Heitkemper, M. M., Bucher, L., MacMullen, N., & Dulski, L. (2014). Female reproductive problems. In Medical-surgical nursing

### Nt1210 Intro to Networking

1443 words - 6 pages NT1210 Unit 1 HomeWork Assignment 1: 1. Which of the following is true about 1 bit? a. Can represent decimal values 0 through 9 2. How many bits are in a byte? ____8_____ 3. Fill out the following Chart Term | Size(Bytes) | Size(2n Bytes) | Rounded Size (Bytes) | Kilobyte | 1024 | 2 10 | 1000 | Megabyte | 1,048,576 | 2 20 | 1,000,000 | Gigabyte | 1,073,741,824 | 2 30 | 1,000,000,000 | Terabyte | 1,099,511,627,776 | 2 40

5615 words - 23 pages economy and diminish its reliance upon shrinking oil revenues, Dubai has begun to develop into the Arabian Gulf’s premier international business center. Consider the factors that contribute to this ongoing success story.   Dubai’s Key Advantages I. Strategic Location: Dubai is a time zone bridge between the Far East and Europe on the East-West axis and the CIS and Africa on the north-south axis. It is a gateway to a market that can be

### Medical Case Study: Cardiac Catheterization

3001 words - 13 pages influences the use of potassium, calcium, and protein. Magnesium is needed for neuromuscular activity. Normal Magnesium lab values are 1.5-2.5 mEq/L (Lefever Kee, 2013, p. 279). Total creatine kinase (CK) measures an enzyme in the blood found in muscles and heart tissue; levels rise when there is damage to the heart muscle. Normal CK values are 30-170 units/L. Creatine kinase MB is useful in making the differential diagnosis of myocardial

### Research Proposal

3379 words - 14 pages 1. Companies Listed on KSE SYMBOL COMPANY 1 AABS AL-Abbas Sugur 2 AACIL Al-Abbas CementXR 3 AASM AL-Abid Silk 4 AASML Al-Asif Sugar 5 AATM Ali Asghar 6 ABL Allied Bank Limited 7 ABLTFC Allied Bank (TFC) 8 ABOT Abbott (Lab) 9 ABSON Abson Ind. 10 ACBL Askari Bank 11 ACBL-MAR ACBL-MAR 12 ACCM Accord Tex. 13 ACPL Attock Cement 14 ADAMS Adam SugarXD 15 ADMM Artistic Denim 16 ADOS Ados

## Related Papers

### Diels Alder Rxn Essay

2010 words - 9 pages anhydride. The anhydride was then recovered via vacuum filtration. A sample of the anhydride was hydrolysized by boiling the sample in water. This produced the acid crystals. The crystals were vacuum filtrated to remove the impurities. Conclusion: The initial reaction of 1,3-butadiene and maleic anhydride produced 4-cyclohexene-cis-1,2-dicarboxylic anhydride. The original mixture was of 2.53 of 3-sulfolene and 1.54 g of maleic anhydride

### Cis 115 Tutorials / Cis115dotcom Essay

1917 words - 8 pages value of B times 6 to the value already in X. Add the value of A times 5 to the value already in X. Display the value in X on the screen. Output #3: Pseudocode #3: ..................................................................................................................................................................... CIS 115 Week 3 Lab Decision Calendar (Devry) i L A B O V E R V I E WScenario/Summary Your goal is to solve the

### Managerial Accounting Essay

543 words - 3 pages Case Study 9-55 CASH BUDGET 1. We began by determining how much money is being made and also how much money will be available for spending and etc., which results in \$21, 360. To come up with this number look at the chart below: The calculations that were used to determine how much cash is collected:| |Average Fee (\$)|Quantity|Formula used:|Equals =| Fillings|50|90|\$50 x 90|\$4500| Crowns|300|19|\$300 x 19|\$5700| Root Canals|170|8|\$170

### The Technical Criminal Essay

1019 words - 5 pages Assignment #3 The Technical Criminal: The Internet and Crime CIS 170- Information Technology in Criminal Justice Dr. Austen E. Ichu, PhD November 11, 2013 Generally people have a tendency to adapt to their environments and the changes occurring around them. This has also been the case with the criminal element and the way they commit crimes. Computers and their functions had taken on an entirely new level of advancement in their