CourseHero2
.docx
keyboard_arrow_up
School
Glendale Community College *
*We aren’t endorsed by this school
Course
MISC
Subject
Computer Science
Date
Feb 20, 2024
Type
docx
Pages
2
Uploaded by reraj51807
CIS18A Unit 1 Lab: JDK, Virtual Machine and Running Java Programs.
In this lab, you will install SDK, Virtual Machine and run basic Java Program. Complete the following steps
and provide answers or screen captures as required. These instructions are implemented for IDE. See IDE
information in course module if you want to use IDE for this course.
Referencing Documentation and Review Install Guide
•
To begin, visit https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
** Note: You can use JDK 12 – 15. Be sure to review documentation for the selected version.
•
Select the appropriate download type for your computer operating system.
•
If you are using Windows PC for this course, download Windows x64 installer and complete Part A
•
If you are using macOS for this course, download macOS installer and complete Part B.
•
If you are using Linux OS for this course, download Linux RPM package and complete part C.
Part A: Running Java Program in Windows PC – Windows 10 or 8
•
You need to set Environment Variables. See Setting Environment Variables Section for details https://docs.oracle.com/en/java/javase/11/install/installation-jdk-microsoft-windows-
platforms.html#GUID-E3C75F92-D3B2-421D-A9BE-933C15F7CD1B
•
In Search, search for and then select: Control Panel
•
In Control Panel, click System and Security (category), then select System applet.
•
Click the Advanced system settings link (on left)
•
Click Environment Variables (on bottom of tab). •
In the section System Variables
on the bottom section, find the PATH environment variable and select it. Click New.
•
Return to System variables find PATH and select it. Click Edit
•
In the Edit System Variable window, click New button specify the value %JAVA_HOME%. Click OK. Close all remaining windows by clicking OK.
•
Open Command Prompt, in Windows 10 or 8.1, type cmd into the search bar of the Start menu. Click on Command Prompt to open the application.
•
In command prompt input javac -version then press Enter key.
•
Take a screen capture showing that you have installed Version 11.0.5 on the PC. *To take screen capture, press Alt and PrtSc (on upper right of keyboard). Paste the captured image to a document that your answers from question 3 for later submission.
•
Open Notepad and create your first Example.java file. See below:
•
Save file as Example.java
to Desktop. *Note: “Example” as typed in file name must match class in code. Otherwise, you will get an error.
•
Return to Command Prompt and input cd desktop then press Enter key
•
In command prompt, input javac Example.java then press Enter key. At this point, you are compiling the program. Notice that you will find Example.class on the desktop once the program is compiled.
•
In Command Prompt, input java Example then press Enter key.
•
Take a screen capture showing text display in Command Prompt.
•
In Notepad (Windows) create Example2.java file as shown below:
•
Repeat steps 14 – 18 to compile and run Example2 program.
•
Take a screen capture showing command line contain displayed text as programmed.
•
Review the Example2 program and answer the following questions:
•
What is the assigned and output value of variable myVar1?
1204
•
What is the output value of variable myVar2?
512 is the output variable of myVar2
•
Repeat the steps to create and compile Example3.java as shown below:
•
Take a screen capture showing the displayed output in command line of Example3.
•
Review the Example3 and answer the following questions:
•
What is the primary difference in variable v and variable x declaration?
•
How do the data type and assignment impact the output of the program?
•
Repeat the steps to create and compile GaltoLit.java as shown below:
•
Take a screen capture showing output in command line of GalToLit program.
•
•
Review the output and program code to answer the following questions:
•
What are the variables in this program?
•
What data type are used in variable declaration of the program?
•
What happen if the int is used instead of double? •
Save your document that contains answers and screen captures. •
Submit the document (.docx or .pdf) that contains answer and screen captures to Lab 1 on Canvas Unit 1 Module.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Task Performance
Student List
Objective:
At the end of the exercise, the students should be able to:
• Map values in Java and Python.
Software Requirements:
• NetBeans IDE
Java Development Kit (JDK) 8
Python 3.7 or higher
Procedure:
1. Create a folder named LastName_FirstName in your local drive. (ex. Reyes_Mark)
2. Using NetBeans, create a Java project named StudentList. Set the project location to your own
folder.
3. Import Scanner, Map, and HashMap from the java.util package.
4. Create an empty hash map named students.
5. The output shall:
5.1. Ask three (3) of your classmates to enter their student number (key) and first name (value).
5.2. Display the keys and values of the map.
5.3. Delete the mapping of the third entry.
arrow_forward
Please don't use AI
arrow_forward
Fast answer please.
arrow_forward
Using deep access is preferred over shallow access from the perspective of a developer, as opposed to a user.
arrow_forward
Identify Testing Types
c. While doing Beta testing, a customer noticed a hectic delay in the page loading ofan application. He was so frustrated and went to the feedback page of thecompany site and complained about the lazy loading issue. Garreth, a supportspecialist of the company, looked into the incoming issue he received from thecustomer who wrote about the page loading issue. Garreth logged into the defecttracking tool and started writing details about the new issue reported by thecustomer and it has a field to enter the type of issue. So, help Garreth identifytesting types.
arrow_forward
Salesforce
Please describe some Salesforce annotations that we use for the test classes and testing methods in the Salesforce.
arrow_forward
Web Services
arrow_forward
Intro to software engineering:
Q5- A company supplies a Tax Returns Automation process to its clients, visiting their sitesand inspecting their revenues for a given year, giving advice and completing the necessaryforms for Tax Returns purposes. Once the forms have been completed, they are saved aspaper copies; one is kept by the client, the other is filed locally within the company’s paper-based archives. The corresponding electronic copies are also saved in a word-processorformat and saved on a local computer.The company is seeking to develop a more fully automated process: the tax consultantvisiting the client's premises periodically would log-in to an on-line application (within thecompany website) and input the data to an on-line form. The data collected would be used tokeep the clients informed of the results of the consultant’s visits and the date of the next visit.Considering the above scenario:a) List and describe at least THREE possible risks that the company will be…
arrow_forward
Explain the role of data binding in supporting undo/redo functionality in a user interface. What considerations are important when implementing this feature?
arrow_forward
ObjectiveTo develop a simple database application using modern programming tools.ToolsStudents should use python as their main development platform. They can also choose either one of the database management systems SQLite, MySQL, PostgreSQL, and Microsoft SQL Server.GuidelinesEach student should agree to work with one student from the class as a teammate. Otherwise, the student works alone and gets penalized by getting at most 75% of the project grade. Teams should work independently toward the same project goal. Each team has to prepare a report presenting all the details about the work done and the job division. The number of pages should not pass twenty.Description of the ProjectThe project is to develop a simple university management system. The application should let three different kinds of users to work, namely, the student, the instructor, and the faculty coordinator. Users should have the following functionalities in the system:Faculty coordinator Log in to the system Add…
arrow_forward
The Driver Relationship considered that working on both DRIVERS and ACTIVE_DRIVERS tables is difficult and too much work. Therefore, the team wants you to remove the table for the active drivers.
arrow_forward
Hi, please show the code and output. Thank you.
arrow_forward
Lab Activities: Activity
Write a GUI based Java program for the below table
arrow_forward
Project: Covid-19 Vaccination Appointment
Group members: 1
You need to follow the MVC architectural pattern to develop an online Covid-19 vaccination appointment system using Java Servlets and JSPs.
Requirements:
The user shall enter his National ID number (then submit the request)
The system shall determine if the user:
Fully vaccinated – boosted (a person who received two doses, and a booster shot).
Fully vaccinated (Two doses) ? (can go for a third shot (vaccine booster shot), see Req 6 below).
Already received the first dose ? Allow the user to book an appointment for the second dose
Didn’t take any dose ? Allow the user to book an appointment for the first dose
The user shall be able to determine the vaccination type (for the first dose only)
The user shall be able to select the date/time for the appointment
If the user is booking an appointment for the second dose, the time between the first and second dose shall not be less than N weeks (N is configurable in the database based…
arrow_forward
Subject : Object Orieted Programming
Language Java Netbeans
Q: You have been approached by a client to automate inter college event management. The main purpose of this project is to simplify the process of handling each event by providing a web interface for admin, teacher and students.
The admin part consists of multiple modules where admin or the authorized person needs to register the college name to create the event by adding the type of event (indoor or outdoor). System allows admin to add teachers who will conduct the particular event activity, which is allotted by the admin itself, also can view the student registration for a particular event and lastly, viewing the results of all events held in college.
The teacher part has come up with handling all the event related activity assigned by the admin. Teacher performs various task such as taking the attendance of the students who are registered for a particular event, viewing the list of students to mark the winner of each…
arrow_forward
i want you to draw a er model dont give me this draws all tutors answred by it :(i want new one only photos
arrow_forward
Pipelining decreases the latency of each task.
true
false
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Related Questions
- Task Performance Student List Objective: At the end of the exercise, the students should be able to: • Map values in Java and Python. Software Requirements: • NetBeans IDE Java Development Kit (JDK) 8 Python 3.7 or higher Procedure: 1. Create a folder named LastName_FirstName in your local drive. (ex. Reyes_Mark) 2. Using NetBeans, create a Java project named StudentList. Set the project location to your own folder. 3. Import Scanner, Map, and HashMap from the java.util package. 4. Create an empty hash map named students. 5. The output shall: 5.1. Ask three (3) of your classmates to enter their student number (key) and first name (value). 5.2. Display the keys and values of the map. 5.3. Delete the mapping of the third entry.arrow_forwardPlease don't use AIarrow_forwardFast answer please.arrow_forward
- Using deep access is preferred over shallow access from the perspective of a developer, as opposed to a user.arrow_forwardIdentify Testing Types c. While doing Beta testing, a customer noticed a hectic delay in the page loading ofan application. He was so frustrated and went to the feedback page of thecompany site and complained about the lazy loading issue. Garreth, a supportspecialist of the company, looked into the incoming issue he received from thecustomer who wrote about the page loading issue. Garreth logged into the defecttracking tool and started writing details about the new issue reported by thecustomer and it has a field to enter the type of issue. So, help Garreth identifytesting types.arrow_forwardSalesforce Please describe some Salesforce annotations that we use for the test classes and testing methods in the Salesforce.arrow_forward
- Web Servicesarrow_forwardIntro to software engineering: Q5- A company supplies a Tax Returns Automation process to its clients, visiting their sitesand inspecting their revenues for a given year, giving advice and completing the necessaryforms for Tax Returns purposes. Once the forms have been completed, they are saved aspaper copies; one is kept by the client, the other is filed locally within the company’s paper-based archives. The corresponding electronic copies are also saved in a word-processorformat and saved on a local computer.The company is seeking to develop a more fully automated process: the tax consultantvisiting the client's premises periodically would log-in to an on-line application (within thecompany website) and input the data to an on-line form. The data collected would be used tokeep the clients informed of the results of the consultant’s visits and the date of the next visit.Considering the above scenario:a) List and describe at least THREE possible risks that the company will be…arrow_forwardExplain the role of data binding in supporting undo/redo functionality in a user interface. What considerations are important when implementing this feature?arrow_forward
- ObjectiveTo develop a simple database application using modern programming tools.ToolsStudents should use python as their main development platform. They can also choose either one of the database management systems SQLite, MySQL, PostgreSQL, and Microsoft SQL Server.GuidelinesEach student should agree to work with one student from the class as a teammate. Otherwise, the student works alone and gets penalized by getting at most 75% of the project grade. Teams should work independently toward the same project goal. Each team has to prepare a report presenting all the details about the work done and the job division. The number of pages should not pass twenty.Description of the ProjectThe project is to develop a simple university management system. The application should let three different kinds of users to work, namely, the student, the instructor, and the faculty coordinator. Users should have the following functionalities in the system:Faculty coordinator Log in to the system Add…arrow_forwardThe Driver Relationship considered that working on both DRIVERS and ACTIVE_DRIVERS tables is difficult and too much work. Therefore, the team wants you to remove the table for the active drivers.arrow_forwardHi, please show the code and output. Thank you.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage