Question: Module 5 : Assignment Instructions Assignments must be completed on your own. Any evidence that students have collaborated on assignments will be considered a violation
Module : Assignment Instructions
Assignments must be completed on your own. Any evidence that students have collaborated on assignments will be considered a violation of the academic honesty code.
All the outputs should change according to the entered values.
Outputs should exactly match mine.
Not allowed to use the materials that are not taught in this course.
Not allowed to use the input function, unless it is mentioned and asked in the assignment.
Not allowed to use lists.
You are ONLY allowed to use : operator for slicing. Using split or slice function for slicing will result in a zero.
You can NOT use csvreader or import csv module.
Filename: assignpy
Write a program that takes the input shown below and produces the output. Assume each string in the input represents patient records. The first value is the patient's name, followed by their age, cholesterol category, height, and weight. The script should be general enough that I can enter any number of patient records and it will still work. Calculate each patient's BMI and BMI category using the functions developed for this purpose in assign Format the BMI to two decimal places as shown in the output. Also count the number of cholesterol categories for all of the patients.
Input:
a python C:Users
edaDataProgrammingMassignpy Joe,high, Mary,desirable, John,desirable,
b python C:Users
edaDataProgrammingMassignpy Joe,high, Mary,borderline, John,desirable, Alex,borderline,
Output:
a Desirable count:
Borderline count:
High count:
Joe: overweight
Mary: normal
John: normal
b Desirable count:
Borderline count:
High count:
Joe: overweight
Mary: normal
John: normal
Alex: overweight
Filename: assignpy
Write a program that reads the input as shown below. Each string in the input represents a person's name, followed by the grades. The program should read each input, calculate the average, and output the result. The sample output is shown below.
Input:
a python C:Users
edaDataProgrammingMassignpy Neda: John: Mary:
b python C:Users
edaDataProgrammingMassignpy Joe: Mary:
Output:
a Neda's average:
John's average:
Mary's average:
a Joe's average:
Mary's average:
Filename: assignpy
Write a program that takes a string that contains numbers separated by a comma as shown below. The program calculates the summation of odd numbers and even numbers in the string. The output is shown below.
Input:
a python C:Users
edaDataProgrammingMassignpy
b python C:Users
edaDataProgrammingMassignpy
Output:
a Odd numbers total: even numbers total:
b Odd numbers total: even numbers total:
Assignment Expectations
Your code should contain meaningful comments. Place your name, due date, and assignment and problem number in comments at the top of the file. Cile all sources in comments.
Your output should match mine exactlyin spacing, capitalization, etc.
Name your files according to the directions in each problem and submit the files for this task in your submission folder.
Submit your files to M Assignment a Submission
Filenames must be exactly as specified or you will receive a zero.
Where is the assignment folder? in GoView, under the Assessments mode, choose Assignment, and find the associated one.
Doublecheck your submission to be certain you submitted the correct file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
