Question: Using a UNIX/LINUX/UNIX Emulator, create a console program that can compile and execute programs either by the user entering the name of the program, or

  1. Using a UNIX/LINUX/UNIX Emulator, create a console program that can compile and execute programs either by the user entering the name of the program, or automatically executing all of the programs in a directory. The program will essentially simulate the system monitor of a Batch system.
    1. The programs to be run will be small c/c++ programs. Each time a program does some i/0, do a small delay (during development, the smaller the better).
      1. Program that prints 50 dots
      2. Program that does a summation of numbers from 1 to 10
        1. print sum along the way.
      3. Program that does a factorial of 10
        1. print factorial along the way
      4. Program that prints 100 #s
      5. Etc.
    2. The programs will reside in a directory called /jobs.
    3. The BatchMonitor program will live in a different directory than the jobs directory. See below.
      1. C:\users\batch
      2. C:\users\batch\jobs
    4. The Batch Monitor program will give the user the following options
      1. List jobs
      2. Set jobs directory
      3. Compile and run a specific program
      4. Compile and run all jobs in a specific directory.
      5. Shutdown
      6. List program options
      7. help

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!