Question: Hello – I Need Help With This Assignment. Not Allowed To Use Lists Or Any Built-in Functions (including Min And Max). Will Like And Comment Responses. Write On The Whiteboard The Number Of Kids Your Parents Have (you + Your Siblings). (Did In Class, Have This List Of Numbers: 2, 3, 3, 6, 2, 4, 1. Type All The Numbers From The Whiteboard Into A Data …

Question: Hello – I Need Help With This Assignment. Not Allowed To Use Lists Or Any Built-in Functions (including Min And Max). Will Like And Comment Responses. Write On The Whiteboard The Number Of Kids Your Parents Have (you + Your Siblings). (Did In Class, Have This List Of Numbers: 2, 3, 3, 6, 2, 4, 1. Type All The Numbers From The Whiteboard Into A Data …

Hello – I need help with this assignment. Not allowed to uselists or any built-in functions (including min and max). Will likeand comment responses.

  1. Write on the whiteboard the number of kids your parents have(you + your siblings). (Did in class, have this list of numbers: 2,3, 3, 6, 2, 4, 1.

  2. Type all the numbers from the whiteboard into a data filen_kids.txt, one number
    per line.
  3. Write a program n_kids.py that reads the data from n_kids.txt,does some math,
    then displays the following:
    Total number of families:
    Total number of kids:
    Average number of kids per family: (to 2 decimal places)
    Maximum number of kids in a family:
    Minimum number of kids in a family:

(Visited 1 times, 1 visits today)
Translate »