Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 1, Problem 2RQ
When using an analogy involving a blueprint and a tree house, the ____________ is the class, and the ____________ is an object created from it.
- a. blueprint, tree house
- b. tree house, blueprint
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Create a class of Customer with custName, custAddress, custCnic, custPhone, custType. Create another class of Employee with empName, empAddress, empCnic, empPhone, empType (tele-callrs , doc boy, sales executive , back office). You have to provide both default and parametrized constructors.
I am trying to create a class that follows these instructions. My code so far is listed at the bottom. Create a class called Game Info
Use the class specification below:/*** Represents the information about a gamer on a* service like Steam, etc.** @author <put your name here>**/
GamerProfile should have the following instance variables:
userName of type String
pvpEnabled of type boolean
online of type boolean
gameLibrary of type ArrayList<GameInfo>
My code:
/** * Represents the information about a gamer on a * service like Steam, etc. * * @author lkelly * */
public class GamerProfile { public String userName; boolean pvpEnabled; boolean online; }
Create a class Car with parameters companyName, color, maxSpeed (Not more than 150) andcategory. Use appropriate data types and access specifiers. Use default constructor to create objectsof cars.
(JAVA)
Chapter 1 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 1 - What is a computer program?Ch. 1 - What is a GUI?
Ch. 1 - What is the process of translating a solution into...Ch. 1 - In object-oriented programming, what is a class?Ch. 1 - Which window in the IDE lists the tools you can...Ch. 1 - While designing an interface, which window in the...Ch. 1 - Prob. 3MQ2Ch. 1 - Prob. 1MQ3Ch. 1 - Prob. 2MQ3Ch. 1 - What filename extension indicates that the file is...
Ch. 1 - Prob. 1MQ4Ch. 1 - Prob. 2MQ4Ch. 1 - Prob. 3MQ4Ch. 1 - Prob. 4MQ4Ch. 1 - Prob. 1MQ5Ch. 1 - What is the three-character ID used when naming...Ch. 1 - What is the purpose of an access key?
Ch. 1 - What character is used to designate an access...Ch. 1 - Prob. 1MQ6Ch. 1 - Prob. 2MQ6Ch. 1 - Prob. 3MQ6Ch. 1 - Prob. 4MQ6Ch. 1 - Prob. 1MQ7Ch. 1 - Prob. 2MQ7Ch. 1 - Prob. 3MQ7Ch. 1 - Prob. 4MQ7Ch. 1 - In the Code Editor window, what character...Ch. 1 - A(n)._____ is an environment that contains all of...Ch. 1 - When using an analogy involving a blueprint and a...Ch. 1 - You create your application’s user interface in...Ch. 1 - Each tool in the toolbox represents a class from...Ch. 1 - Which window is used to set the characteristics...Ch. 1 - Prob. 6RQCh. 1 - Prob. 7RQCh. 1 - Prob. 8RQCh. 1 - Which property is used to give a form file a more...Ch. 1 - Which property determines the initial position of...Ch. 1 - Prob. 11RQCh. 1 - Prob. 12RQCh. 1 - Prob. 13RQCh. 1 - Prob. 14RQCh. 1 - Prob. 15RQCh. 1 - What is the three-character extension appended to...Ch. 1 - Prob. 17RQCh. 1 - Prob. 18RQCh. 1 - Which statement terminates an application that...Ch. 1 - Prob. 20RQCh. 1 - Prob. 21RQCh. 1 - Prob. 22RQCh. 1 - Prob. 23RQCh. 1 - Prob. 24RQCh. 1 - Prob. 25RQCh. 1 - Prob. 1ECh. 1 - Prob. 8E
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- When using an analogy involving a blueprint and a tree house, the _____________________ is the class, and the _____________________ is an object created from it. a. blueprint, tree house b. tree house, blueprintarrow_forwardConsider a web browser where you can go back to any of the previous webpages that youhave visited earlier. However, you cannot jump directly to a previously visited page; youcan only visit them one at a time in the reverse order of how you visited them in the firstplace. State the design pattern that you would use to meet the above requirements.There shall be three classes in your design. The first class shall be named PageStorageand it contains a variable called state of the type WebPage which is the webpage thatcan be restored. The second class shall be named PageStorer which will create andstore the webpages in the PageStorage objects. The third and final class shall be namedPageList which contains a list of all the webpages that were stored, and there shall be amethod called pop() that will return the most recent webpage from the list.Draw the Class diagram. You must include all the required classes and variables andmethods mentioned above.arrow_forwardComputer Science Write a program to design a graphical user Interface using JavaFX without FXML and make a main class and subclasses for a project of your Interest that contains the following features add four buttons for: Add information or add service or add booking..etc Update information, update service, update booking.. etc Delete information, delete service, delete booking..etc Search information, search service, search booking..etc Add a logo at the top of the interface. You Program should follow the class Design Guidelines. Your Program should include Inheritance feature, use Interface, encapsulation. Draw a UML Diagram that represent your project. For example, Add Booking: The system will ask the user to enter the user information (Name, Phone number, Date Booked, service or anything related to your project. Once the Booking is added a message Booking confirmed with name and service, Date Booked will be displayed. The System need to check if the same Phone number…arrow_forward
- I have been posting the same questions but they always come with the same answer that does not use the starting code given below. Please make sure to use the following code as a starting point. Also, please make sure to use the same class name so that I don't get confused. Please use the information in the screenshot to create a class called BST. The base of the code is given below. Base of class Node public class Node {int key;Node left, right, parent; public Node() {} public Node(int num) {key = num;left = null;right = null;parent = null;}} Base of class BST import java.util.*; class BST {// do not change thisprivate Node root;private ArrayList<Integer> data; // DO NOT MODIFY THIS METHODpublic BST() {root = null;data = new ArrayList<Integer>(0);} // DO NOT MODIFY THIS METHODpublic ArrayList<Integer> getData() {return data;} // DO NOT MODIFY THIS METHODpublic void inOrderTraversal() {inOrderTraversal(root);} // DO NOT MODIFY THIS METHODprivate void…arrow_forwardCreate a class HelloFrame and extend it from JFrame o Inside HelloFrame declare o 3 textfields for taking string input for name, email and number variables o 1 textarea to write a message. o Create a button “Submit” which should submit the form. • Now create a public constructor for HelloFrame inside which o You should call super("Hello Java"); //used to set title of the frame setSize(700, 400); //set length and width of the frame create a label which should display the "Contact US Panel" similarly create labels for showing name, email, number. Add textfields and button to JFrame. 3. Bind and Action Listener with the button which reads the data and from the text fields and save it to File name ‘data.txt’ also show a dialog box showing “Submit button clicked, Data saved successfully”. Programming language : Javaarrow_forwardCreate a Shape class that shall have color and filled instance variables of enum Color and boolean type. The filled boolean variable shall show, whether the shape is filled (colored). The enum Color shall be defined within the class having 4 color names (choose any four). Also define getArea and getPerimeter method in Shape class, both shall return 0. Create Rectangle class with length and width attributes and a Circle class with radius attribute, of type double. Properly encapsulate all fields. Circle and Rectangle shall extend Shape class and override getArea and getPerimters methods as per its type and specific formula. In Test class, create an object of Rectangle and Circle, by initializing all attributes in constructor and print both shapes' area and perimters. In Test class, define a static method with following signature, public static void printEachShapeCount(Shape... shapes) As you know, the parent type variable can hold the reference of any child class object. That…arrow_forward
- I would like to request for a precise Java programming for this example: Procedure: Create a NetBeans project for this activity. The project name should be as follows: Project Name: MP3_<lastname_firstname> Example: MP3_Blanco_Maria The class names to be created are the following: Client (the main class that contains the main method and the implementation of the main menu) SavingsAccount (the subclass where attributes and methods are defined) BankAccount (the superclass where attributes and methods are defined) All class names must be suffixed with last name and only three classes are created within the Netbeans project. Client<your_last_name> Ex.: ClientBlanco SavingsAccount<your_last_name> Ex.: SavingsAccountBlanco BankAccount<your_last_name> Ex.: BankAccountBlanco Please check the screenshots for the specifications. The instructions given should be strictly followed.arrow_forwardI would like to request for a precise Java programming for this example: Procedure: Create a NetBeans project for this activity. The project name should be as follows: Project Name: MP3_<lastname_firstname> Example: MP3_Blanco_Maria The class names to be created are the following: Client (the main class that contains the main method and the implementation of the main menu) SavingsAccount (the subclass where attributes and methods are defined) BankAccount (the superclass where attributes and methods are defined) All class names must be suffixed with last name. Client<your_last_name> ClientBlanco SavingsAccount<your_last_name> SavingsAccountBlanco BankAccount<your_last_name> BankAccountBlanco Please check the screenshots for the specifications.arrow_forwardCreate a class named “Rectangle” having length and width as attribute. There should be behaviorstoset the values of length and width (individually and collectively), and get their values individually. There should also bebehavior to display the perimeters and area of the rectangle. Create another class named as Main which hastwo objects of Rectangle (r1, r2) having length (3.2, 20) and width (4.5, 36) respectively. Also displaythe length, width, perimeter and area of both rectangles.arrow_forward
- Create an application named TurningDemo that creates instances of four classes: Page, Corner, Pancake, and Leaf. Create an interface named ITurnable that contains a single method named Turn The classes named Page, Corner, Pancake, and Leaf implement ITurnable. Create each classs Turn() method to display an appropriate message. For example, the pages Turn() method might display You turn a page in a book.arrow_forwardIn JavaScript, how are an object and an interface related to each other? a. The object’s interface consists of the code and data needed for that object. b. An object’s interface is analogous to a pocket calculator’s inner workings. c. Built-in JavaScript objects do not require an interface, but custom objects do. d. An interface allows another program to access an object’s properties and methods.arrow_forwardJava code please 1. Appliance and TV by CodeChum Admin Create a class called Appliance. An appliance simply has a: brand (a text) a cost (a monetary value) a power status (ON or OFF) Power status, brand and cost should not be accessible out the class or its hierarchy of inheritance. It has one constructor that accepts a string and double for the brand and cost respectively (prints "Appliance Constructor" as well). It sets the power status to OFF. Apart from the getters, it also has two public methods, power(), and toString(). power() turns on the appliance if it is off, otherwise, if it is on, it turns the appliance off. toString() simple returns a String object representing the Appliance in this format ("Brand: xxxx, Cost: PhP xxxx.xx, Power: xx"). Create another class called Television. Television is an Appliance. It only has the following additional private attributes: type (whether Smart or Non-Smart) volume (0 - 100) channel (1 - 100) It should have the following…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Memory Management Tutorial in Java | Java Stack vs Heap | Java Training | Edureka; Author: edureka!;https://www.youtube.com/watch?v=fM8yj93X80s;License: Standard YouTube License, CC-BY