Create methods Create a method (calcAverageAge) that accepts a list of student ages as a formal parameter and returns the average of the numbers in the array. Hint: the format for create a method is:...

Create methods Create a method (calcAverageAge) that accepts a list of student ages as a formal parameter and returns the average of the numbers in the array.
Hint: the format for create a method is:
def calcAverageAge(formalParameters separated by commas): ---------- method statements -----
Create classes in PythonCreate an object-oriented class (CIT383Student) for instantiating a new computer user. This class should have the following attributes: first_name, last_name, date_of_birth, username, current_password. The class should have getters and setters for each of these attributes. Additionally, include a method that returns the full name of the student. The method should accept a Boolean parameter (firstNameFirst) that indicates the format of the full name. If the parameter is true, the full name should be displayed with the first name followed by the last name. Otherwise, the returned name is the last name followed by the first name, separated by the coma. Include a second method that generates a password for the user. The default password should be based on the first and last initials followed by the current time stamp.
Hint: format for creating classes:

class className: def classMethods:
Add an exception handler to a python program
Include an exception handler for the date of birth. For the purposes of this lab, a CIT383 student should be older than 15years. If a user enters a date of birth that does not meet the above requirement, the method should catch this exception and throw the exception.
Put all of these together:
Write a main program that accepts an integer from the user from the console. Your program should then create a number of CIT383 students. For each such CIT383 student, request for the user to provide the first name, last name and username. Print to the screen the list of users including their full name, date of birth and default password.
Sep 04, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here