SlideShare a Scribd company logo
1 of 7
DEVRY CIS 170 C iLab 3 of 7 Looping
Check this A+ tutorial guideline at
http://www.cis170entirecourse.com/cis-170/cis-
170-c-ilab-3-of-7-looping
For more classes visit
http://www.cis170entirecourse.com
www.cisl70entirecourse.com
CIS 170 C iLab 3 of 7 Looping
Lab # CIS CIS170C-A3 Lab 3 of 7: Looping 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:
Become familiar with the different types of looping
structures. Be able to debug a program of syntax
and logic errors. 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.Deliverables Section
Deliverable Points Lab 3
Step 6: Program Listing and Output
Lab Steps Preparation:
If you are using the Citrix remote lab, follow the
login instructions located on the iLab tab in Course
Home.
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:
45
>tudio 2010
icon
application.Lab:
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.
summary reportcreated that lists the total number
of divers and the average of the overall scores. Lab
hints: When writing this lab, use nested loops. 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
media Event: Diving competition Enter the diver's
name: Sue Jones Enter the diver's city: Dallas Enter
the score given by judge #1: 45 Invalid score -
Please reenter (Valid Range: 0 - 10) Enter the
score given by judge #1: 3 Enter the score given by
judge #2: 4.5 Enter the score given by judge #3: 6.7
Enter the score given by judge #4: 89
Invalid score - Please reenter (Valid Range: 0 -
10) Enter the score given by judge #4: 8 Enter the
score given by judge #5: 9.2 What was the degree
of difficulty? 1.9 Invalid degree of difficulty -
Please reenter (Valid
Range: 1 - 1.67)
What was the degree of difficulty? 2 Invalid
degree of difficulty - Please reenter (Valid
Range: 1 - 1.67)
What was the degree of difficulty? 1.2 Diver: Sue
Jones, City: Dallas Overall score was 7.68
Do you want to process another diver (Y/N)? y
r the diver's name: Dave Smith
Inter the diver's city: Houston
Enter the score given by judge #1: 5.7 Enter
the score given by judge #2: 6.8 Enter the
score given by judge #3: 7.6 Enter the score
given by judge #4: 8.7 Enter the score given
by judge #5: 6.7 What was the degree of
difficulty? 1.1 Diver: Dave Smith, City:
Houston Overall score was 7.74
Do you want to process another diver (Y/N)?
n
EVENT SUMMARY
Ente
Number of divers participating:
2 Average score of all divers:
7.71
Press any key to continue . . .
Step 2: Processing Logic
Using the pseudocode below, write the code that
will meet the requirements.
Write report heading Loop as long as there are
divers to process Input diver's name and city
Initialize highest score, lowest score and total
score
Using a do-while loop input the 5 judge's scores
Validate the score to ensure it is between 0 and 10
Add score to total
Determine highest and lowest scores I
nput
and
validate the degree of difficulty Calculate the
overall diver's score Display the diver's
information and overall score Add diver's overall
score to the final score Add 1 to the number of
divers Prompt the user if she wants to process
another
diver
End-Loop
Calculate the average score for all divers Display
the number of divers and the average
score for all divers
Step 3: Create a New Project Create a
new project and name it LAB3.
Write your code using the Processing Logic in Step
2. Make sure to save your program.
Step 4: Build Solution
To compile the program, click Debug 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.
WWW.CStep 5: 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.

More Related Content

Similar to Devry cis-170-c-i lab-3-of-7-looping

CIS 115 Effective Communication - tutorialrank.com
CIS 115  Effective Communication - tutorialrank.comCIS 115  Effective Communication - tutorialrank.com
CIS 115 Effective Communication - tutorialrank.comBartholomew18
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsjody zoll
 
Cis 170 i lab 2 of 7
Cis 170 i lab 2 of 7Cis 170 i lab 2 of 7
Cis 170 i lab 2 of 7helpido9
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsshyaminfo04
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsash52393
 
Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7comp274
 
Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7solutionjug4
 
Going loopy - Introduction to Loops.pptx
Going loopy - Introduction to Loops.pptxGoing loopy - Introduction to Loops.pptx
Going loopy - Introduction to Loops.pptxAmy Nightingale
 
Cis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and stringsCis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and stringsCIS321
 
Cis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.comCis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.comrobertledwes38
 
Devry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menuDevry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menunoahjamessss
 
Devry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menuDevry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menucskvsmi44
 
COMP 122 Entire Course NEW
COMP 122 Entire Course NEWCOMP 122 Entire Course NEW
COMP 122 Entire Course NEWshyamuopeight
 
Cis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interfaceCis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interfaceccis224477
 
nullcon 2010 - Tracking the progress of an SDL program: lessons from the gym
nullcon 2010 - Tracking the progress of an SDL program: lessons from the gymnullcon 2010 - Tracking the progress of an SDL program: lessons from the gym
nullcon 2010 - Tracking the progress of an SDL program: lessons from the gymn|u - The Open Security Community
 
Variant calling v4
Variant calling v4Variant calling v4
Variant calling v4Shaojun Xie
 
Test Coverage: An Art and a Science
Test Coverage: An Art and a ScienceTest Coverage: An Art and a Science
Test Coverage: An Art and a ScienceTeamQualityPro
 
Cis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interfaceCis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interfacecis247
 
Cis247 i lab 1 of 7 creating a user interface
Cis247 i lab 1 of 7 creating a user interfaceCis247 i lab 1 of 7 creating a user interface
Cis247 i lab 1 of 7 creating a user interfacesdjdskjd9097
 

Similar to Devry cis-170-c-i lab-3-of-7-looping (20)

CIS 115 Effective Communication - tutorialrank.com
CIS 115  Effective Communication - tutorialrank.comCIS 115  Effective Communication - tutorialrank.com
CIS 115 Effective Communication - tutorialrank.com
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
 
Cis 170 i lab 2 of 7
Cis 170 i lab 2 of 7Cis 170 i lab 2 of 7
Cis 170 i lab 2 of 7
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
 
Devry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and stringsDevry cis 170 c i lab 5 of 7 arrays and strings
Devry cis 170 c i lab 5 of 7 arrays and strings
 
Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7
 
Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7Cis 170 ilab 2 of 7
Cis 170 ilab 2 of 7
 
Going loopy - Introduction to Loops.pptx
Going loopy - Introduction to Loops.pptxGoing loopy - Introduction to Loops.pptx
Going loopy - Introduction to Loops.pptx
 
Cis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and stringsCis 170 c ilab 5 of 7 arrays and strings
Cis 170 c ilab 5 of 7 arrays and strings
 
Cis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.comCis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.com
 
Devry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menuDevry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menu
 
Devry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menuDevry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menu
 
COMP 122 Entire Course NEW
COMP 122 Entire Course NEWCOMP 122 Entire Course NEW
COMP 122 Entire Course NEW
 
Cis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interfaceCis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interface
 
nullcon 2010 - Tracking the progress of an SDL program: lessons from the gym
nullcon 2010 - Tracking the progress of an SDL program: lessons from the gymnullcon 2010 - Tracking the progress of an SDL program: lessons from the gym
nullcon 2010 - Tracking the progress of an SDL program: lessons from the gym
 
Abi75002.0.1 e
Abi75002.0.1 eAbi75002.0.1 e
Abi75002.0.1 e
 
Variant calling v4
Variant calling v4Variant calling v4
Variant calling v4
 
Test Coverage: An Art and a Science
Test Coverage: An Art and a ScienceTest Coverage: An Art and a Science
Test Coverage: An Art and a Science
 
Cis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interfaceCis247 a ilab 1 of 7 creating a user interface
Cis247 a ilab 1 of 7 creating a user interface
 
Cis247 i lab 1 of 7 creating a user interface
Cis247 i lab 1 of 7 creating a user interfaceCis247 i lab 1 of 7 creating a user interface
Cis247 i lab 1 of 7 creating a user interface
 

More from govendaagoovenda

Devry cis-170-c-i lab-4-of-7-functions
Devry cis-170-c-i lab-4-of-7-functionsDevry cis-170-c-i lab-4-of-7-functions
Devry cis-170-c-i lab-4-of-7-functionsgovendaagoovenda
 
Devry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisionsDevry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisionsgovendaagoovenda
 
Devry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedDevry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedgovendaagoovenda
 
Devry busn-278-entire-course
Devry busn-278-entire-courseDevry busn-278-entire-course
Devry busn-278-entire-coursegovendaagoovenda
 
Bus 650-week-6-final-paper-financial-analysis-the-lg-group
Bus 650-week-6-final-paper-financial-analysis-the-lg-groupBus 650-week-6-final-paper-financial-analysis-the-lg-group
Bus 650-week-6-final-paper-financial-analysis-the-lg-groupgovendaagoovenda
 
Ash bus-650-week-4-dq-1-applying-the-capital-asset-pricing-model
Ash bus-650-week-4-dq-1-applying-the-capital-asset-pricing-modelAsh bus-650-week-4-dq-1-applying-the-capital-asset-pricing-model
Ash bus-650-week-4-dq-1-applying-the-capital-asset-pricing-modelgovendaagoovenda
 
Ash bus-650-week-2-dq-2-managing-earnings
Ash bus-650-week-2-dq-2-managing-earningsAsh bus-650-week-2-dq-2-managing-earnings
Ash bus-650-week-2-dq-2-managing-earningsgovendaagoovenda
 
Devry bis-155-i lab-2-first-national-bank-new
Devry bis-155-i lab-2-first-national-bank-newDevry bis-155-i lab-2-first-national-bank-new
Devry bis-155-i lab-2-first-national-bank-newgovendaagoovenda
 
Dervy bis-155-week-4-quiz-new
Dervy bis-155-week-4-quiz-newDervy bis-155-week-4-quiz-new
Dervy bis-155-week-4-quiz-newgovendaagoovenda
 
Dervy bis-155-week-3-quiz-new
Dervy bis-155-week-3-quiz-newDervy bis-155-week-3-quiz-new
Dervy bis-155-week-3-quiz-newgovendaagoovenda
 
Dervy bis-155-week-3-dq-data-analysis-tools-new
Dervy bis-155-week-3-dq-data-analysis-tools-newDervy bis-155-week-3-dq-data-analysis-tools-new
Dervy bis-155-week-3-dq-data-analysis-tools-newgovendaagoovenda
 
Dervy bis-155-week-5-quiz-new
Dervy bis-155-week-5-quiz-newDervy bis-155-week-5-quiz-new
Dervy bis-155-week-5-quiz-newgovendaagoovenda
 

More from govendaagoovenda (13)

Devry cis-170-c-i lab-4-of-7-functions
Devry cis-170-c-i lab-4-of-7-functionsDevry cis-170-c-i lab-4-of-7-functions
Devry cis-170-c-i lab-4-of-7-functions
 
Devry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisionsDevry cis-170-c-i lab-2-of-7-decisions
Devry cis-170-c-i lab-2-of-7-decisions
 
Devry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedDevry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-started
 
Devry busn-278-entire-course
Devry busn-278-entire-courseDevry busn-278-entire-course
Devry busn-278-entire-course
 
Busn 278-week-4-midterm
Busn 278-week-4-midtermBusn 278-week-4-midterm
Busn 278-week-4-midterm
 
Bus 650-week-6-final-paper-financial-analysis-the-lg-group
Bus 650-week-6-final-paper-financial-analysis-the-lg-groupBus 650-week-6-final-paper-financial-analysis-the-lg-group
Bus 650-week-6-final-paper-financial-analysis-the-lg-group
 
Ash bus-650-week-4-dq-1-applying-the-capital-asset-pricing-model
Ash bus-650-week-4-dq-1-applying-the-capital-asset-pricing-modelAsh bus-650-week-4-dq-1-applying-the-capital-asset-pricing-model
Ash bus-650-week-4-dq-1-applying-the-capital-asset-pricing-model
 
Ash bus-650-week-2-dq-2-managing-earnings
Ash bus-650-week-2-dq-2-managing-earningsAsh bus-650-week-2-dq-2-managing-earnings
Ash bus-650-week-2-dq-2-managing-earnings
 
Devry bis-155-i lab-2-first-national-bank-new
Devry bis-155-i lab-2-first-national-bank-newDevry bis-155-i lab-2-first-national-bank-new
Devry bis-155-i lab-2-first-national-bank-new
 
Dervy bis-155-week-4-quiz-new
Dervy bis-155-week-4-quiz-newDervy bis-155-week-4-quiz-new
Dervy bis-155-week-4-quiz-new
 
Dervy bis-155-week-3-quiz-new
Dervy bis-155-week-3-quiz-newDervy bis-155-week-3-quiz-new
Dervy bis-155-week-3-quiz-new
 
Dervy bis-155-week-3-dq-data-analysis-tools-new
Dervy bis-155-week-3-dq-data-analysis-tools-newDervy bis-155-week-3-dq-data-analysis-tools-new
Dervy bis-155-week-3-dq-data-analysis-tools-new
 
Dervy bis-155-week-5-quiz-new
Dervy bis-155-week-5-quiz-newDervy bis-155-week-5-quiz-new
Dervy bis-155-week-5-quiz-new
 

Recently uploaded

Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 

Recently uploaded (20)

Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 

Devry cis-170-c-i lab-3-of-7-looping

  • 1. DEVRY CIS 170 C iLab 3 of 7 Looping Check this A+ tutorial guideline at http://www.cis170entirecourse.com/cis-170/cis- 170-c-ilab-3-of-7-looping For more classes visit http://www.cis170entirecourse.com www.cisl70entirecourse.com CIS 170 C iLab 3 of 7 Looping Lab # CIS CIS170C-A3 Lab 3 of 7: Looping 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: Become familiar with the different types of looping structures. Be able to debug a program of syntax and logic errors. Be able to use the debug step-into feature to step through the logic of the program
  • 2. and to see how the variables change values.Deliverables Section Deliverable Points Lab 3 Step 6: Program Listing and Output Lab Steps Preparation: If you are using the Citrix remote lab, follow the login instructions located on the iLab tab in Course Home. 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: 45 >tudio 2010 icon application.Lab: Diver's Name, City JudgeScore1 - The scores entered are from 0 to 10. JudgeScore2
  • 3. 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. summary reportcreated that lists the total number of divers and the average of the overall scores. Lab hints: When writing this lab, use nested loops. 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.
  • 4. 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 media Event: Diving competition Enter the diver's name: Sue Jones Enter the diver's city: Dallas Enter the score given by judge #1: 45 Invalid score - Please reenter (Valid Range: 0 - 10) Enter the score given by judge #1: 3 Enter the score given by judge #2: 4.5 Enter the score given by judge #3: 6.7 Enter the score given by judge #4: 89
  • 5. Invalid score - Please reenter (Valid Range: 0 - 10) Enter the score given by judge #4: 8 Enter the score given by judge #5: 9.2 What was the degree of difficulty? 1.9 Invalid degree of difficulty - Please reenter (Valid Range: 1 - 1.67) What was the degree of difficulty? 2 Invalid degree of difficulty - Please reenter (Valid Range: 1 - 1.67) What was the degree of difficulty? 1.2 Diver: Sue Jones, City: Dallas Overall score was 7.68 Do you want to process another diver (Y/N)? y r the diver's name: Dave Smith Inter the diver's city: Houston Enter the score given by judge #1: 5.7 Enter the score given by judge #2: 6.8 Enter the score given by judge #3: 7.6 Enter the score given by judge #4: 8.7 Enter the score given by judge #5: 6.7 What was the degree of difficulty? 1.1 Diver: Dave Smith, City: Houston Overall score was 7.74 Do you want to process another diver (Y/N)? n EVENT SUMMARY Ente Number of divers participating: 2 Average score of all divers: 7.71
  • 6. Press any key to continue . . . Step 2: Processing Logic Using the pseudocode below, write the code that will meet the requirements. Write report heading Loop as long as there are divers to process Input diver's name and city Initialize highest score, lowest score and total score Using a do-while loop input the 5 judge's scores Validate the score to ensure it is between 0 and 10 Add score to total Determine highest and lowest scores I nput and validate the degree of difficulty Calculate the overall diver's score Display the diver's information and overall score Add diver's overall score to the final score Add 1 to the number of divers Prompt the user if she wants to process another diver End-Loop Calculate the average score for all divers Display the number of divers and the average score for all divers Step 3: Create a New Project Create a new project and name it LAB3.
  • 7. Write your code using the Processing Logic in Step 2. Make sure to save your program. Step 4: Build Solution To compile the program, click Debug 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. WWW.CStep 5: 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.