In the following, write all loops so they would still work if the sizes of the arrays were changed. (You need not get values from the user for the following; you can just make up values in the code. However, your code should still work if those values were changed.) In a project, in a main, create an array of doubles of length 10, and give it values using special initialization. Then write a loop that goes through the array, and after the loop report the largest and smallest number in the array, and the average of all the numbers. [Extra Credit+5] also report the second largest. In the same main, create an array of 10 strings. Using nested loops, fill it with values so that each element is a string containing a number of x’s based on the index, so the 0th element is “”, the 1st element is “x” the 2nd element is “xx”, and the 9th element is “xxxxxxxxx”. (hint, one loop will move you through the array, the other will add the right number of x’s to the current element). In the same main, create an array of 10 booleans called printIt and and array of 10 strings called words, both using special initalization. Then go through the words array and print each element of words only if the printIt array in the same position is true. You DO NOT need a nested loop for each array (think about the parallel arrays). In the same main, create an array of 10 ints called howManyTimes using special initalization. Then go through the words array (again) and print each element of words the number of times given in howManyTimes. So if howManyTimes[3] is 9 and words[3] is “hello” you would print “hello” 9 times. To do this you will need nested loops: an outer loop to move through the arrays, and an inner loop to print the words the right number of times. You DO NOT need a nested loop for each array (think about the parallel arrays). [Extra Credit+5] change the loop you just wrote so that for each element you print the words howManyTimes only if printIt is true, and otherwise print “[THIS WORD REMOVED]” once.
Posted on by admin
In the following write all loops so they would still work if the sizes of the arrays were changed. (You need not get values from the user for the following you can just make up values in the code. However your code should still work if those values wer
WHAT OUR CURRENT CUSTOMERS SAY

- Google

- Sitejabber

- Trustpilot
Zahraa S
Absolutely spot on. I have had the best experience with Elite Academic Research and all my work have scored highly. Thank you for your professionalism and using expert writers with vast and outstanding knowledge in their fields. I highly recommend any day and time.
Stuart L
Thanks for keeping me sane for getting everything out of the way, I’ve been stuck working more than full time and balancing the rest but I’m glad you’ve been ensuring my school work is taken care of. I'll recommend Elite Academic Research to anyone who seeks quality academic help, thank you so much!

Mindi D
Brilliant writers and awesome support team. You can tell by the depth of research and the quality of work delivered that the writers care deeply about delivering that perfect grade.

Samuel Y
I really appreciate the work all your amazing writers do to ensure that my papers are always delivered on time and always of the highest quality. I was at a crossroads last semester and I almost dropped out of school because of the many issues that were bombarding but I am glad a friend referred me to you guys. You came up big for me and continue to do so. I just wish I knew about your services earlier.

Cindy L
You can't fault the paper quality and speed of delivery. I have been using these guys for the past 3 years and I not even once have they ever failed me. They deliver properly researched papers way ahead of time. Each time I think I have had the best their professional writers surprise me with even better quality work. Elite Academic Research is a true Gem among essay writing companies.
Got an A and plagiarism percent was less than 10%! Thanks!


Jermaine Byrant
Nicole Johnson



