Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ language Bonus Exercise 1 (Optional): Iterating through arrays Write a program(s) that does the following... Uses an array and a for loop to print

image text in transcribed

C++ language

Bonus Exercise 1 (Optional): Iterating through arrays Write a program(s) that does the following... Uses an array and a for loop to print each letter of the English alphabet. Prints only the second half of the alphabet. Uses a for loop to print all the elements of the following array in reverse order 1, 3, 5, 7, 9 Declares the following array of integers 10, 15, 25, 35, 50, 75 and uses a for loop and some maths to calculate the average of these values. Calculates the average temperature for the past 7 days, these temperatures should be entered by the user. Example temperatures: 7.5, 6.3, 10.0, 6.5, 9.1, 11.5, 10.3 Prints out the highest value of a following array values: 6.5, 1.3, 10.9, 7.5, 8.1, 9.9, 9.3 Prints out the lowest value of a following array values: (10, B, 4, 21, 345, 99, 17 Assigns all numbers between 0 and 100 to an array using a for loop. Then using another for loop, iterates through the array and print only the odd numbers

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

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions

Question

10. What is meant by a feed rate?

Answered: 1 week ago

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago