Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Operating Systems h - *** USING TERMINAL MODE ONLY *** In your Ubuntu VM do the following: 1) Create a folder called pgm1 2) Move

Operating Systems
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, the number 2020, and Spring 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 and third accepted data fields, 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.51, 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. 

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

Logic In Databases International Workshop Lid 96 San Miniato Italy July 1 2 1996 Proceedings Lncs 1154

Authors: Dino Pedreschi ,Carlo Zaniolo

1st Edition

3540618147, 978-3540618140

More Books

Students also viewed these Databases questions