CGS 3767 Operating Systems - project 1 : pgm1b1_OS

Professor: Michael Robinson 
e-mail   : michael.robinson@cs.fiu.edu 
Web Page : cs.fiu.edu/~mrobi002


a - Download and install virtualbox in your laptop. It is already installed at the FIU Labs computers
    https://www.virtualbox.org/

b - Download and install Ubuntu version 16.04 as a virtual machine inside virtualbox
    https://www.ubuntu.com/download/alternative-downloads

c - Download and install Windows7 or Windows 10 as a virtual machine inside virtualbox
    from the iso-images as explained in class
    
    NOTE: Watch this video, it is a step by step Server VM installation.
          http://users.cis.fiu.edu/~downeyt/videos/win7-vbox/win7-vbox.html
          You can also get guidance in our Hardware Lab at PG6 #102 No appointments needed. 
          and ask questions in class

          details from the above video:
          In Windows select Computer
          map 
          y
          \\buffallo\cgs3967-vmstorage
          [x] reconnect at logon
          connect
          go to your images folder
          select your desired windows.iso operating system and download it to be used in your
          laptop inside your virtual machine.

  
d - Download and install Java JDK inside Ubuntu, Windows7 or Windows10 in your virtualBox
    http://www.oracle.com/technetwork/java/javase/downloads/index.html

    NOTE: Make sure you learn all terminal mode commands to do the following:
    
e - Make sure that your java version and your javac version are the same for all VMs, 

f - Make sure that java programs can be compiled and run in terminal mode in all Vms.

g - *** USING TERMINAL MODE ONLY ***, and using my JAVA Programming Rules, located at:      

    https://users.cs.fiu.edu/~mrobi002/includes/JAVA_programmingRules      
    
    In EACH of your VMs, write a java program named: 
    1) Your last name+First letter of your first name+Ubuntu+pgm1.java for Ubuntu
       example:  robinsonMpgm1Ubuntu.java, as follows:
    
    2) Your last name+First letter of your first name+Windows+pgm1.java for Windows
       example:  robinsonMpgm1Windows.java, as follows:
    
h - *** USING TERMINAL MODE ONLY ***
    In your Ubuntu VM do the following:
    1) Create a folder called pgm1
	
    2) Move into the pgm1 folder
	
    3) Using a linux editor ONLY create a Java program named:
         your last name + first letter of your first name + ubuntuPgm1.java
		 example robinsonMubuntuPgm1.java
       In the above program, from the main method call a new method named:
       processUbuntu passing your name, and the number 2019.2 

    4) At the processUbuntu method, using System.out.printf display the accepted data, in two 
	   rows. 
	   On the first row display the first data field, and on the second row display
       the second accepted data field, using 10 spaces for the integer part and 5 spaces
	   for the decimal part of the number.
	
	   
i - *** USING TERMINAL MODE ONLY ***
    In your Windows VM do the following:
    1) Create a folder called pgm1
	
    2) Move into the pgm1 folder
	
    3) Using a Windows editor ONLY create a Java program named:
         your last name + first letter of your first name + windowsPgm1.java
		 example robinsonMwindowsPgm1.java
		
       In the above program, from the main method call a new method named:
       processWindows passing your name, the numbers 3.99, 3.50, and 2 

    4) At the processWindows method, using System.out.printf display the accepted data, in two 
	   rows. 
	   On the first row display the first data field, followed by the second and third field
       using 6 spaces for the interger part and 5 spaces for the decimal part of the number, 
	   followed by the fourth field using 6 spaces.
	   
	   On the second row display the label: Average GPA, followed by the result of the computation
	   of field 2 plus field 3, divided by field 4, using 6 integer spaces and 2 decimal spaces.
  
        
Submitting your program
- On the due date or before, upload to Canvas, your 2 java programs
           
- Make sure the program is properly documented and aligned, looking professionally,
  I will take points off if it not.

- Print your programs and bring them to class on the due date.
  !!!! MAKE SURE TO STAPLE YOUR PAGES OTHERWISE YOU LOSE .5 POINT !!!!  
 
- MAKE SURE YOUR PROGRAMS COMPILE AND EXECUTE
 
NOTE: We recommend to use our FREE tutoring at our hardware lab PG6 #102
      see schedule at https://users.cs.fiu.edu/~mrobi002/teaching/currentSemester2.php