Question
1. Create an array size that stores the shoes size of 6 people. Setup the array to initially be filled with ones. Then use a
1. Create an array size that stores the shoes size of 6 people. Setup the array to initially be filled with ones. Then use a for loop to fill the array with sizes 5 - 15 by an interval of 2.
a)Output the 3rd size in the array.
b) swap the value of the 2nd and 6th size & re-output the array
2. Create an array full of 12 values ( 12, 7, 3, 7, 9, 4, 7,9, 19,7,13, 7). Use a for loop to count all of the 7's within the array.
3. Create a while loop that asks the user whether they are a Duke or Carolina fan. If they watched the game last night ( an input of yes or no) output that they are a true fan, if not they are a mediocre fan.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started