Computer Science  >  Lab Experiment  >  Middlesex County College CSC 236 lab 2 236.docx-VERIFIED BY EXPERTS (All)

Middlesex County College CSC 236 lab 2 236.docx-VERIFIED BY EXPERTS

Document Content and Description Below

//Rushi Patel //CSC-236-C1 //Program1 package lockclientdemoclass; import java.util.Scanner; public class LockClientDemoClass { public static void main(String [] args) { outputList(); } pub ... lic static void outputList() { int x, y, z; Scanner sc = new Scanner(System.in); LockDataStructureClass obj1 = new LockDataStructureClass(); while(true) { System.out.println(" Menu "); System.out.println("\nPick a letter from the list for" + " the lock simulator."); System.out.println(" 1: Set a new lock combination "); System.out.println(" 2: Closes lock"); System.out.println(" 3: Attempt opening lock "); System.out.println(" 4: Lock Status "); System.out.println(" 5: Check current number "); System.out.println(" 6: Exit the program \n"); char outputMenu = sc.next().charAt(0); outputMenu = Character.toUpperCase(outputMenu); switch(outputMenu) { case '1': { System.out.println("\n Enter the first number to set the lock combo."); x = sc.nextInt(); System.out.println("Enter the second number to set the lock combo."); y = sc.nextInt(); System.out.println("Enter the third number to set the lock combo."); z = sc.nextInt(); obj1.alter(); break; }case '2': { obj1.close(); obj1.inquire(LockDataStructureClass.lockOrUnlockStatus); break; } case '3': { System.out.println(""); System.out.println("enter the first number of lock combo."); x = sc.nextInt(); System.out.println("enter the second number of lock combo."); y = sc.nextInt(); System.out.println("enter the third number of lock combo."); z = sc.nextInt(); break; [Show More]

Last updated: 3 years ago

Preview 1 out of 15 pages

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)
Preview image of Middlesex County College CSC 236 lab 2 236.docx-VERIFIED BY EXPERTS document

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Reviews( 0 )

$9.00

Buy Now

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Instant download

Can't find what you want? Try our AI powered Search

103
0

Document information


Connected school, study & course


About the document


Uploaded On

May 27, 2021

Number of pages

15

Written in

All

Seller


Profile illustration for d.occ
d.occ

Member since 4 years

233 Documents Sold

Reviews Received
30
8
4
1
7
Additional information

This document has been written for:

Uploaded

May 27, 2021

Downloads

 0

Views

 103

Document Keyword Tags

Recommended For You

Get more on Lab Experiment »

$9.00
What is Scholarfriends

Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·