Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Jul 2017 |
Last Sign in: | 211 Weeks Ago, 4 Days Ago |
Questions Answered: | 15833 |
Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
|
Course Code |
Type Course Code Here |
Description |
Computer Programming 2 |
|
College / Department: Online Education |
Laboratory Exercise No. |
003 |
LABORATORY EXERCISE |
Page 1 of 3 |
· Upload your solution to the link provided on the course page.
· You may submit the java file, or the rar or zip file.
Â
· For the java file, your filename must be in this format: Lab2_<lastname_firstname>.java
Example: Lab2_Blanco_Maria.java
Â
· For multiple java files, save them into one folder. The folder name should be in this format:
Lab2_<lastname_firstname>, Example: Lab2_Blanco_Maria
Compress the folder into .rar or .zip format before uploading.
Â
· For projects created using NetBeans, the project name should be in this format:
             Lab2_<lastname_firstname>, Example: Lab2_Blanco_Maria
Compress the project folder into .rar or .zip format before uploading.
Â
· DO NOT SUBMIT THE WORD FILE. Failure to follow the instructions will meana deduction
from your score.
Â
Write the program based on the given instructions.
Â
1. Circle Calculator. Write a circle calculator program that computes the area, circumference and diameter of a circle. The program will accept input number (radius) and that number will be used to get the area, circumference and diameter of a circle. Use this formula to find the area, circumference and diameter of a circle:
Î = 3.14
Area = πr2
Diameter = 2r
Circumference = 2Ï€r
Â
Below is the sample output of the program:
Â
|
Course Code |
Type Course Code Here |
Description |
Computer Programming 2 |
|
College / Department: Online Education |
Laboratory Exercise No. |
003 |
LABORATORY EXERCISE |
Page 2 of 3 |
Â
2. Using JOptionPane, create a program that will ask the user to enter their personal information, such as name, age, address and contact number. The program should display all the information that the user have entered. For example:
Â
Â
Â
Â
|
Course Code |
Type Course Code Here |
Description |
Computer Programming 2 |
|
College / Department: Online Education |
Laboratory Exercise No. |
003 |
LABORATORY EXERCISE |
Page 3 of 3 |
Â
Â
Â
Â
Attachments:----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly