Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Prerequisites Must be able to use Linux based operating system. Must be able to use terminal. Must have basic knowledge of C language. Must

1. Prerequisites Must be able to use Linux based operating system. Must be able to use terminal. Must have basic knowledge of C language. Must be able to compile programs from terminal. Must be able to create processes. Must be able to make program calls. Must be able to communicate between processes. 2. Project Name Transaction Manager 3. Subject There are five programs in the project. These are adder, subtractor, multiplier, divider and transaction manager. adder.c -> adder subtractor.c -> subtractor multiplier.c -> multiplier divider.c -> divider trmn.c -> trmn The Transaction Manager is the main program. Other programs will be created and called from within this program. When the main program runs, it automatically opens other subprocess programs and establishes a separate pipeline for each of them. Each subprocess must have a separate pipeline and you can send pipeline write-read numbers as parameter to subprogram. When the installation is completed by opening the ftm sub-processes and performing the necessary operations, a transaction menu is displayed to the user. 1- Addition 2- Subtraction 3- Multiplication 4- Division 5- Exit The Adder adds the two numbers sent via its own pipe and writes the result back to the pipe. The Subtractor subtracts the two numbers sent via its own pipe and writes the result back to the pipe. The Multiplier multiplies the two numbers sent via its own pipe and writes the result back to the pipe. The Divider divides the two numbers sent via its own pipe and writes the result back to the pipe. If any sub-program takes exit command from the trmn, the program must close itself with code 1. When the user selects one operation, take two inputs from the user and send them to related sup-process by the pipeline and ftm read the result from the related pipeline. Print result of calculation. After that, show the transaction menu again. If the user selects the exit option, send an exit command to all sub-programs. Wait until all sub-programs are closed and exit the main program. Create a makefile file with the program codes (c files) included in the project. Programs should be compiled automatically when the Makefile file is run. Homework checker will just run the makefile and then run the myshell program from the terminal. Projects without a Makefile are not evaluated. o Documents to be included in the project file to be sent: makefile adder.c -> adder subtractor.c -> subtractor multiplier.c -> multiplier divider.c -> divider trmn.c -> trmn

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions