Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This project is to acquaint you with fundamental UNIX commands and utilities when creating a multifunctional application. You will practice on managing shell variables, using

image text in transcribed

image text in transcribed

This project is to acquaint you with fundamental UNIX commands and utilities when creating a multifunctional application. You will practice on managing shell variables, using shell operators employing selection and repetition logic structures, creating a menu-based program, listing contents of a file, adding records to a file, searching patterns in a file, deleting records from a file, and using UNIX commands/utilities to manage cursor and output format, etc. The completion of the project will strengthen your knowledge and skills of utilizing UNIX commands/utilities and UNIX shell script programming language In this project you will build a menu-based application for tracking student information. The specifications of the project are as follows: (10 points) It is a menu-based program with a main screen offering the user options to view records, add new records, search for records, delete records, and quit the program, as shown in Figure 2. Use a case statement to determine what choice the user made, and perform the appropriate action. The only way to exit the application is by pressing "5" to quit the program All other options should return to the main menu. Your program should handle the case in which the user doesn't enter anything, or the user enters an invalid option * (5 points) The student records are stored in a text file called student_data, as shown in Figure 1. The file contains information about a student's ID, last name, first name, program name, and total credits. Each record is stored on one line and has the above five fields separated by the colon :" character. The initial data file contains the following records: 1001: Jones : Alice : Accounting: 105 1320:Moore: Sarah:Mechanical Engineering: 80 2100:0lson : Timothy: Computer Systems: 66 1520:Mitchel1:Barbara: Electrical Engineering: 34 1800:Smith: Paul: Mathematics:87 2010:Whitman:Henry:Business Management:114 1480:Richard: Johnson: Computer Systems: 90 1234:Willims : David:Economics:78 (20 points) The View Records option should display a sub-menu, as shown in Figure 3, to let user choose how the records are sorted before they are displayed. The records can be sorted by last name or program name in alphabetic order, or sorted by credits in ascending order, or sorted by ID in ascending order by default. The records should be displayed in a neat fixed-length form as shown in Figure 4. The total number of records should also be displayed. The program returns to the main menu after records are displayed and the "Enter" key is pressed. (15 points) The Add New Records option should allow the user to enter the student ID, last name, first name, program name, and total credits. This information will be appended to the end *

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Discuss all branches of science

Answered: 1 week ago

Question

1. Write down two or three of your greatest strengths.

Answered: 1 week ago

Question

What roles have these individuals played in your life?

Answered: 1 week ago

Question

2. Write two or three of your greatest weaknesses.

Answered: 1 week ago