Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Overview This project will help you demonstrate your ability to create a program in Python. Below is a functional specification for the program you are
Overview
This project will help you demonstrate your ability to create a program in Python. Below is a
functional specification for the program you are going to design, code, and test. You will use the
following when coding this program:
variables
if else statements
loops while and for loops
functions
opencreatereadwriteclosing files
read user input
convert data types eg string to integer
a data structure to store the data from the STUDENTDATA.TXT file
Functionality
Based on a menu selection, analyze student records from the STUDENTDATA.TXT file. The menu
items describe the type of processing you will have to do in your program.
Assume a grading scale of:
:
:
:
:
:
Use the student file that is called STUDENTDATA.TXT as input. It has the following fields, which
are comma delimited:
First Name Up to letters
Last Name Up to letters
Grade NNN Grade percentage: eg Round up when doing calculations.
Degree Either MSIT or MSCM
Your program will use a consolecommand linebased user interface, not a graphical user
interface.
Your program will display readable results to the display. You will write records to a file.
Your program will overwrite any output files.
Your program should exit gracefully.
Output files will be in the same format as the input file noted above.
Invalid records mean that all fields are not present, a grade in the file is above or below
or the degree program is listed as something other than MSCM or MSIT.
Validate all user input.
You will comment your program.
Menu options
Your program must have a menu. The menu functionality is below:
Display average grade for all students
Display average grade for each program
Display highest grade record
Display lowest grade record
Display students in MSIT
Display students in MSCM
Display all students in sorted order by student ID
Display invalid records
Create new file with invalid records called BADRECORDS.TXT Display a message that
says BADRECORDS.TXT has been created
Exit programOverview
This project will help you demonstrate your ability to create a program in Python. Below is a functional specification for the program you are going to design, code, and test. You will use the following when coding this program:
variables
if else statements
loops while and for loops
functions
opencreatereadwriteclosing files
read user input
convert data types eg string to integer
a data structure to store the data from the STUDENTDATA.TXT file
Functionality
Based on a menu selection, analyze student records from the STUDENTDATA.TXT file. The menu items describe the type of processing you will have to do in your program.
Assume a grading scale of:
A:
B:
C:
D:
F:
Use the student file that is called STUDENTDATA.TXT as input. It has the following fields, which are comma delimited:
Student ID NNNN numbers
First Name Up to letters
Last Name Up to letters
Grade NNN Grade percentage: eg Round up when doing calculations.
Degree Either MSIT or MSCM
Your program will use a consolecommand linebased user interface, not a graphical user interface.
Your program will display readable results to the display.
You will write records to a file.
Your program will overwrite any output files.
Your program should exit gracefully.
Output files will be in the same format as the input file noted above.
Invalid records mean that all fields are not present, a grade in the file is above or below or the degree program is listed as something other than MSCM or MSIT.
Validate all user input.
You will comment your program.
Menu options
Your program must have a menu. The menu functionality is below:
Display average grade for all students
Display average grade for each program
Display highest grade record
Display lowest grade record
Display students in MSIT
Display students in MSCM
Display all students in sorted order by student ID
Display invalid records
Create new file with invalid records called BADRECORDS.TXT Display a message that
says BADRECORDS.TXT has been created
Exit program
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started