Unit Assessment Type Assessment Number Assessment Weighting Alignment with Unit and Course Due Date/Time Assessment Description ISY1003 Foundations of Programming Practical 1A Input, Processing and...

1 answer below »

Unit


Assessment Type Assessment Number Assessment Weighting


Alignment with Unit and Course


Due Date/Time


Assessment Description


ISY1003 Foundations of Programming


Practical 1A


Input, Processing and Output, Simple Functions 5%


Unit Learning Outcome


ULO 3: Describe and discuss the elements of effective programming style ULO 4: Demonstrate an understanding of the software development life cycle and apply sound programming analysis techniques (design, coding, debugging, testing and documentation) to justify simple programming problems


Graduate Attributes Assessed


GA 1: Communication GA 2: Collaboration GA 4: Critical Thinking


Week 4
16 August2019 via Moodle Turnitin 5:00pm (AEST)


In this project, you will work individually to write programs which demonstrate your understanding of IPO and usage of simple functions in Python programs.


Content and Structure:
You will have to write simple programs to:


1. Accept inputs from user


2. Perform mathematical operations to process data entered by user


3. Print the output


4. Use simple functions which passes on user inputs to a function which performs the operation and returns the result which will be displayed on the console


Program expectation:




  •  The student must be able to explain the working of the program and its logic.




  •  Program should be indented, proper comments should be given, modification


    history should be present, variable names and data types should be chosen


    appropriately.




  •  The program should compile and execute to display the result.




  •  The student must use programming constructs available in Python and follow


    coding standards.




Detailed Submission Requirements




  •  Three different program files must be uploaded.




  •  First program must accept inputs from user, perform operation and display the


    result.




  •  Second program must do the same but by using user defined functions which will


    accept parameters and return result.




  •  Third program must also accept the operation that the user wants to perform on the


    inputs so for example user enters 2 numbers and then chooses to sum them up, the program should be able to do that. A menu could also be provided to user for example Add, Divide, Multiply, Subtract and other operations.




  •  Follow coding standards, naming conventions for variables and functions.




  •  Students will be asked to explain the working of their program and the logic they’ve


    used.




  •  All three program files must be submitted for the assessment through the


    Assessment 1 A Turnitin link on Moodle page for this unit



Answered Same DayAug 10, 2021Federation University Australia

Answer To: Unit Assessment Type Assessment Number Assessment Weighting Alignment with Unit and Course Due...

Neha answered on Aug 10 2021
136 Votes
43124/user_function.py
#In this program we have defined a function named add() in which we have pas
sed two variables.
#This method will perform the operation when we call it. Here first we will ask the user to
#enter values for two variables a and b. Then we will call the fuction add(a,b) and it will perform
#the addition operation on them. The result will be printed.
def add(a,b):
z = a+b
return z
a = int(input("Enter first number : "))
b = int(input("Enter second number : "))
print("The sum of two numbers is : ",add(a,b))
43124/user_input.py
#In this program we will ask the user to enter the input on which we will perform the operation.
#The user will insert first number,x and then the second one,y.
#The third line of code adds x...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here