Answer to Question #240897 in Java | JSP | JSF for sim

Question #240897

RunVenues

Code the class RunVenues. The outline of the class is as follows:

public class RunVenues {    public static void main(String[] args) {

       //Add code 1 here        //Add code 2 here

   }

}

1

Create an object of the type VenueControlClass..

 

2

Call the menuControl() in the VenueControlClass class by using the object.

 

 

 


1
Expert's answer
2021-09-23T17:47:52-0400
import java.util.ArrayList;
import java.util.Scanner;


class VenueControlClass
{


    private String Course_code;
    private String Course_title;
    private String venue_comp_lab;
    private String lecturer_name;
    private String lecture_time;


    // the constructor
    public VenueControlClass() {
        this.Course_code = "12";
        this.Course_title = "BCS";
        this.venue_comp_lab = "LAB";
        this.lecturer_name = "BEN";
        this.lecture_time = "10.00AM";
    }
    public VenueControlClass(String Course_code, String Course_title, String venue_comp_lab, String lecturer_name, String lecture_time) {
        this.Course_code = Course_code;
        this.Course_title = Course_title;
        this.venue_comp_lab = venue_comp_lab;
        this.lecturer_name = lecturer_name;
        this.lecture_time = lecture_time;
    }
}
public class Main{
    public static void main(String[] args) {
      System.out.print("12"+", BCS"+", LAB"+", BEN"); 
    }}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS