Question: Instructions In this programing assignment, students will show mastery of for - loops. The point of this lesson is to work with for - loop.

Instructions
In this programing assignment, students will show mastery of for-loops. The point of this lesson is to work with for-loop. You should review the rules of engagement before submitting as there are very specific functions that you are not allowed to use in this assignment.
Input
The input for this assignment will be variable length tuple of integers. You should hard code variable assignment. It is recommended that you have a list of at least 10 integers for development and test purposes.
Output
Provide a print statement that identifies the following:
The values in the tuple -- you may use a simple print statement for this line.
The number of numbers in the tuple.
The sum and average of the tuple.
The highest number in the tuple.
The lowest number in the tuple.
The number of negative numbers in the tuple.
The number of even and odd numbers in the tuple.
Rules of Engagement
Violating the rules of engagement will lead to a grade of zero.
The first three lines of the program should be comments that show: student name, course, and assignment.
There should be three sections with a comment label: Input, Processing, and Output - the code should be beneath the comment.
Input -- code that gathers information from the user.
Processing -- code that uses the input to support the output.
Output -- code that displays the results.
The following data types are allowed: string, integer, float, and Boolean. A tuple is allowed as the input.
Only print statements are allowed in the Output section - each print statement is permitted a single string literal with variables. The variables may be in-line or in a format list. Print statements with expressions are not allowed this includes functions.
You should not attempt to build output strings as variables in processing.
You should not be writing any functions.
The following functions are not allowed: len, sum, min, and max. This is not an exhaustive list you are not allowed to use any function that results in providing the answer directly you must use the for loop. Output must not contain expressions. Print statements must be single string literal.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!