Professional Documents
Culture Documents
CS Submission1
CS Submission1
Q5. Develop a program such that the following options are executed :
a. to find mean of a list
b. to find median value of a list
c. to find mode of a list of values
d. to find average age of students in a class of 20 students(allow user to enter values)
e. exit
All functions to be defined in STATS file which is to be imported in OPTIONS file.
Q6. Develop a program such that the various slicing options with strings and all other
build in functions used with strings are shown properly using various functions which
should be defined in a file STRINGS and then this file is to be imported in MENU.py where
the actual menu is shown and worked upon.
Q7. Develop a program using def( ) such that various pattern options are defined in a file
PATTERN.py , which is to be imported in PRINTING.py for execution using a menu .Give
atleast 10 different patterns .
Q8. Develop a program using def( ) such that various functions available in math library
are designed and made use of under a different name .Do this for atleast 10 functions of
math library. All these to be defined in NEWMATHs file and the menu is to be made and
used in the file USEMATHS.py.
Q9. Develop a program such that the following options are executed :
a. to find a random number between 0 and 1
b. to find a random number between the two limits entered by the user
c. to find a random integral number between 0 and 100
d. to show use of shuffle of random
e. to show use of randrange( )
f. exit
All functions to be defined in RANDOMPYTHON file which is to be imported in
USERANDOM.PY
Note:
Comments are required in each program.
Write the name of the developer and the date on which you are writing the
program as a comment in the beginning of the program.
All the programs must ask if the user wishes to continue.
Programs must have exception handling.