---+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
This topic: CenterForComputing
>
WebHome
>
SyllabiSpring2022
>
CSC121SylS2022
>
CSC121S2022Lab1
Topic revision: r2 - 2022-01-18 - cathybareiss
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