Difference: CSC121F2023Lab01 (3 vs. 4)

Revision 42023-07-31 - CathyBareiss

Line: 1 to 1
 
META TOPICPARENT name="CSC121SylF2023"

First Program: Fall 2023

Learning Objective(s)

Line: 13 to 13
 For this part it is ESSENTIAL that you ONLY 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.
    1. Step one is to redeem the coupon. Be EXTREMELY careful about how you are logged in with your browser!
Changed:
<
<
    1. Create a project in the csc121fa2023 folder using your name. For me, I might choose CathyBareiss
>
>
    1. Create a project in the csc121fa2023 folder using your name. For me, I might choose cathybareiss
 
    1. invoke the shell
Changed:
<
<
    1. enter: gcloud config set project {your project id (not name)}. For me, that would be CathyBareiss
                       gcloud config set project CathyBareiss
    2. enter the following (the {YOUR INSTANCE NAME} should be the name you want for the machine such as: BareissProg1
      gcloud compute instances create {YOUR INSTANCE NAME}   --image-project csc121fa2023classproject --image csc121fa2023windows
      
my example would be:
      gcloud compute instances create BareissProg1   --image-project csc121fa2023classproject --image csc121fa2023windows
>
>
    1. enter: gcloud config set project {your project id (not name)}. For me, that would be cathybareiss
       gcloud config set project cathybareiss
    2. enter the following (the {YOUR INSTANCE NAME} should be the name you want for the machine such as: BareissProg1
       gcloud compute instances create {YOUR INSTANCE NAME} --image-project csc121fa2023sample --image csc121fa2023sample --machine-type e2-small
      my example would be:
       gcloud compute instances create BareissProg1 --image-project csc121fa2023sample --image csc121fa2023sample --machine-type e2-small

      You might want to choose a different zone (esp. if you are having problems.)
 
  1. 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
  2. Launch JGrasp

Part Two

Line: 33 to 30
 
  1. Save it
  2. Test it and make sure it works

Sample dialogue

Added:
>
>
 Below is a sample dialogue. Your output can vary somewhat as long as the required data is nicely displayed
Changed:
<
<
What is the original price?

>
>
What is the original price?

 100 What is the interest rate (10% is 0.1)? 0.15
Line: 60 to 59
 
    1. place only InterestRate.java and your pdf document into it
    2. submit the zip folder on canvas

Optional improvements

Added:
>
>
 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.
Changed:
<
<
  1. Make it so it always displays 2 (and only 2) numbers after the decimal point
>
>
  1. Make it so it always displays 2 (and only 2) numbers after the decimal point
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 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