Name: _______________________________ CIS 125 Test 1 100 Points Total Be sure to completely read and follow the below directions! Directions for Test Program (Read CAREFULLY and follow COMPLETELY): ·...

1 answer below »
everything on the page


Name: _______________________________ CIS 125 Test 1 100 Points Total Be sure to completely read and follow the below directions! Directions for Test Program (Read CAREFULLY and follow COMPLETELY): · Create the following program in Python that performs the purpose described. Use the sample output (with user input where applicable) to help you test the program and make your outputs look like it, including the input prompts. · Include at least three lines of comments/remarks in each program, including your name, the date, and a description of the program. · Upload your .py source file to Moodle into the Test 1 Assignment in the Tests Category. · Upload a Word file containing pseudocode or a flowchart for the program that you are coding to the same location as the .py file. · If you choose to answer the extra credit questions, please send me a .pdf or .word file containing your answers. You may submit the same file for your pseudocode/flowchart as you do for the extra credit questions. · Be sure to adhere to the college and course academic honesty policy. Problem Statement: Create a C++ program with two user-defined functions/modules that works in the following way: a. The main part of the program will call a single function three times, passing in no data/variable, but the function will prompt the user to enter a patient’s weight. It will then return this weight value to the main part of the program, placing it into three different variables there. b. Once all three data points (weights) are input, the main will call a second function, passing into it the three weights. c. The second function will the calculate the average weight based on these weights. Equation: average = (weightOne + weightTwo + weightThree) / 3. Return this calculated value to main and there display the average weight to the user. d. Extra Credit (10 Points): Round the output to two decimal points. Sample Output/Input: Please enter a weight: 92 Please enter a weight: 94 Please enter a weight: 96 The patient’s average weight is: 94 lbs Extra Credit (5 Points Each): 1. What are the three parts of the CPU cycle as discussed in the first lecture section? 2. What is one of my knickknacks on the shelves behind me when I teach? 3. What is the difference between information and data? Can there be information without data? CIS 125 Exam 1: Rubric Comments Score Pseudocode Or Flowchart /20 Logic /60 Compilation /5 Test Cases /15 Extra Credit Questions: Code: Total: /100
Answered Same DayOct 07, 2021

Answer To: Name: _______________________________ CIS 125 Test 1 100 Points Total Be sure to completely read and...

Neha answered on Oct 08 2021
144 Votes
93145 - python task/code.py
#name
#date
#method to collect weight from user
def getWeight():
weight = float(input("Please enter a weight: "))
return weight
#method to calculate avergae
def calcAverage(weight1, weight2, weight3):
average = (weight1 + weight2 + weight3) / 3
return average
#main method
def...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here