Programming Exercise: My Meal Ordering
Part II: Input/Output

(Industry-Level, Second-to-None Comprehensive Specifications)


Absolutely no copying others’ works

Development Requirements
When start developing the exercise, follow the requirements below:

Due Date and Submission Methods
Due on or before Monday, October 14, 2024. Send the password for displaying the source code online (only one password for all exercises and functions) to the instructor.



Objective
An application of meal ordering is trivial, but its implications, such as searching and optimizing, could be significant. Exercise I builds a static user interface. The objective of this exercise is to make the interface work by including input and output functions.



Requirements
This is the second part of a meal-ordering application, which is to read, save, and list data. The exercise includes the following requirements:

A User Interface
This is the second part of a meal-ordering application, which is to build an application as follows:


Recommended Steps
Take the following steps to build your Programming Exercise II:
  1. For your convenience, here are the reference cards of Linux and Emacs.

  2. (Off-campus only) You may skip this step if you are on campus. Otherwise, you may connect to the NDUS servers by using VPN (virtual private network) like GlobalProtect.

  3. Connect to the server http://undcemcs02.und.edu/~user.id/ by using SSH (Secure Shell) like PuTTY (PC) or Termius (Mac).

  4. Sign in to your account by using your UND credentials.

  5. Execute the following command for the first time and only time. Otherwise, your CGI scripts will not work.
       shell> chcon -R -t httpd_sys_script_exec_t /home/USER.ID/public_html/cgi-bin 
    Swap out “USER.ID” with your login name:
       shell> chcon -R -t httpd_sys_script_exec_t /home/first.lastname/public_html/cgi-bin 
  6. Create your web folders by using the Linux command mkdir such as
       shell> mkdir public_html/2 
       shell> mkdir public_html/cgi-bin/ 
       shell> mkdir public_html/cgi-bin/280 
       shell> mkdir public_html/cgi-bin/280/2 
  7. Do not forget to open the folders that you just created such as
       shell> chmod 755 public_html/* 
       shell> chmod 755 public_html/*/* 
       shell> chmod 755 public_html/*/*/* 
  8. Enter the folder “public_html/2” by using the Linux command cd such as
       shell> cd public_html/2 
  9. Create the web page by using an editor and open it such as
       shell> emacs interface.html 
       shell> chmod 755 interface.html 
  10. Enter the folder “~/public_html/cgi-bin/280/2” by using the Linux command cd such as
       shell> cd ~/public_html/cgi-bin/280/2 
  11. Create the Perl scripts by using an editor such as
       shell> emacs ClearSystem.pl 
       shell> chmod 755 ClearSystem.pl 
  12. Create the Java scripts by using an editor and compile them such as
       shell> emacs ClearSystem.java 
       shell> javac ClearSystem.java 
  13. Open the files that you just created such as
       shell> chmod 755 * 
  14. Use a browser to check your result at
       http://undcemcs02.und.edu/~user.id/2/interface.html
  15. 🍀   Good luck!   🍀



Evaluations
The following features will be considered when grading:




      “When someone loves you, the way they talk about you is different.    
      You feel safe and comfortable.”    
      ― Jess C. Scott, The Intern