Tags:
view all tags
---+First Program ---++Learning Objective(s) 1. Get the environment up and working 1. Enter your first program ---++Overview of the Program This lab has two parts. Part one is to create a virtual machine in which you will store all work for this class. Part two is to edit a program to change its functionality a little. ---++Specifics ---+++Part One For this part it is <b>ESSENTIAL</B> that you <b>ONLY</b> use your betheluniversity.edu account! Any other account (including a google account will cause major problems! 1. Follow the instructions to create your virtual machine. 2. Remote into it from any machine using remote access. If you are on a Mac, you might need to download an app to allow the Mac to remote into a virtual Windows machine 3. Launch !JGrasp ---+++Part Two 1. In the CSC121 folder, you will find a program entitled !CircleArea.java. Load it into !JGrasp 1. Change the name of the class to !RectArea and resave it as !RectArea.java 1. Change the code so that instead of getting a radius from the user, it gets two numbers: height and width 1. Change the code so that it outputs the area of a rectangle instead of a circle. 1. Add your name to the author as the modifier of the code 1. Save it 1. Test it and make sure it works 1. Once it works a. create an empty zip folder a. place !RectArea.java into it a. submit the zip folder on canvas ---++Optional improvements Optional improvements should ONLY be worked on once the program is completing working. In addition, the work is to be done on your own with little if any help for lab assistants or the instructor. 1. Have it compute the area of three different shapes 1. Have it reject any negative number
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2021-12-02
-
cathybareiss
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback