Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

How have local credit unions performed over the last 20 years?

Answered: 1 week ago

Question

What is Working Capital ? Explain its types.

Answered: 1 week ago