Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Create a program that contains an integer array of 7 elements. Ask the user for the calorie quantity that they ate each day

1. Create a program that contains an integer array of 7 elements. Ask the user for the calorie quantity that

1. Create a program that contains an integer array of 7 elements. Ask the user for the calorie quantity that they ate each day for 7 days. You must use a loop! Once you have all the numbers entered by the user, display all the entered numbers and the total average calories per day that were eaten! 2. Create a program that contains an integer array of 10 elements. The user will then enter in all 10 values using a loop. Display the contents of the array. Swap the 2nd and 4th elements and swap the 6th and 8th elements. Print the contents of the array again. 3. Create a program that initializes an array to the following values: 18.65, 24.56 99.32, 70.14, 35.78, 6.90. Display the contents of the array and then display the statistical range (largest number - smallest number). You may not sort the array. 4. Create a program that will allow the user to enter 10 numbers into an array. Using a loop, count the number of even numbers that the user has entered. Display the entire contents of the array and the number of even numbers. 5. Create a program that will allow the user to enter in 5 numbers into an array. Display the array. Shift all of the numbers to left and move the first number into the last position. Display the array again. 6. Create a program that will initialize an array to the following values: 21, 32, 43, 54, 65, 76, 87, 98. Print the contents of the array. Reverse the elements in the array. Print the contents of the array. (You may NOT print it backwards!)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

The programs for each of the tasks youve outlined in Python 1 Calorie Tracker Program 1 calories 0 7 ... 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

Systems Analysis And Design

Authors: Alan Dennis, Barbara Wixom, Roberta M. Roth

7th Edition

1119496489, 978-1119496489

More Books

Students also viewed these Computer Network questions

Question

Determine for the following: a. b. c.

Answered: 1 week ago