Computer Science: An Overview (13th Edition) (What's New in Computer Science)
13th Edition
ISBN: 9780134875460
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 7, Problem 20CRP
Program Plan Intro
Simple class diagram:
It is a type of static structure diagram which is used to explain the structure of the system with their attributes, operations and relationship between the objects.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Exercise 1
Car Dealership
Create an ERD for a car dealership. The dealership sells both new and used cars, and it operates a service facility. Base your design on the following business rules:
A salesperson may sell many cars, but each car is sold by only one salesperson.
A customer may buy many cars, but each car is bought by only one customer.
A salesperson writes a single invoice for each car he or she sells.
A customer gets an invoice for each car he or she buys.
A customer may come in just to have his or her car serviced; that is, a customer need not buy a car to be classified as a customer.
When a customer takes one or more cars in for repair or service, one service ticket is written for each car.
The car dealership maintains a service history for each of the cars serviced. The service records are referenced by the car’s serial number.
A car brought in for service can be worked on by many mechanics, and each mechanic may work on many cars.
A car that is…
When we type a reference, we design a pattern for using the reference. Explain down what a
topics that can be included in a pattern?
Class Diagram
Medical Data
Patient data
+ Id int Pk ()
Id int Pk
Room Data
+ Medical History Varchar(40)
Patient Id Varchar(30)
First Name Varchar (30)
Last Name Varchar (35)
Date of Birth Date ()
Gender fk int (10)
Emergency Con int (30)
Medical int (30)
Address Varchar (40)
+ Id int Pk ()
+ Rooms_level varchar(20)
+Rooms Varchar(20)
Fuse
+ Doctor Varchar (40)
+ Assign Med History ()
+ Assign Room Level ()
+ Assign Record Room()
+ Store Doctors Room ()
+ Assign Doctor 0
Use
Store Patient Data ()
Gender Type Class
Use
Id # int Pk
Gender_Name Varchar (10)
Check ups
Blood Class
+ Id int Pk ()
Visit Date int ()
Check up history ()
Assign type of Gender ()
+ Id int Pk ()
+ Blood type varchar (20)
+ Count Visit()
+ Count Check ups ()
+ Assign Check up history()
+ Store type of Blood
Emergency Contact
Id int pk
First Name Varchar(40)
Last Name Varchar (40)
Address Varchar (100)
Gender int (10)
Phone number (15)
Parent type int (20)
use
Doctors
+ Id int Pk()
+ Doc Name varchar (40)
Store…
Chapter 7 Solutions
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
Ch. 7.1 - Prob. 1QECh. 7.1 - Prob. 2QECh. 7.1 - Prob. 3QECh. 7.1 - Identify two contexts in which the field of...Ch. 7.2 - Prob. 1QECh. 7.2 - Prob. 2QECh. 7.2 - What is the role of a software requirements...Ch. 7.3 - Prob. 1QECh. 7.3 - Prob. 2QECh. 7.3 - Prob. 3QE
Ch. 7.3 - What potential problems do you suspect could arise...Ch. 7.4 - Prob. 1QECh. 7.4 - Prob. 2QECh. 7.4 - Prob. 3QECh. 7.4 - Prob. 4QECh. 7.4 - Prob. 5QECh. 7.4 - What is the difference between a traditional...Ch. 7.4 - Prob. 8QECh. 7.5 - Prob. 1QECh. 7.5 - Prob. 2QECh. 7.5 - Prob. 3QECh. 7.5 - Prob. 4QECh. 7.5 - Prob. 6QECh. 7.6 - Prob. 1QECh. 7.6 - Prob. 2QECh. 7.6 - Prob. 3QECh. 7.6 - Prob. 4QECh. 7.6 - Prob. 5QECh. 7.6 - Prob. 6QECh. 7.7 - Prob. 1QECh. 7.7 - Prob. 2QECh. 7.7 - Prob. 3QECh. 7.8 - Prob. 1QECh. 7.8 - Prob. 2QECh. 7.8 - Prob. 3QECh. 7.8 - Prob. 4QECh. 7.9 - Prob. 1QECh. 7.9 - Prob. 2QECh. 7.9 - Prob. 3QECh. 7 - Give an example of how efforts in the development...Ch. 7 - Prob. 2CRPCh. 7 - Explain how the lack of metrics for measuring...Ch. 7 - Would you expect that a metric for measuring the...Ch. 7 - Prob. 5CRPCh. 7 - Prob. 6CRPCh. 7 - Prob. 7CRPCh. 7 - Prob. 8CRPCh. 7 - Prob. 9CRPCh. 7 - Prob. 10CRPCh. 7 - Prob. 11CRPCh. 7 - Prob. 13CRPCh. 7 - Prob. 14CRPCh. 7 - Prob. 15CRPCh. 7 - Prob. 16CRPCh. 7 - Prob. 17CRPCh. 7 - Prob. 18CRPCh. 7 - Prob. 20CRPCh. 7 - Prob. 21CRPCh. 7 - Prob. 22CRPCh. 7 - Prob. 23CRPCh. 7 - Prob. 24CRPCh. 7 - Contrast the information represented in a class...Ch. 7 - What is the difference between a one-to-many...Ch. 7 - Prob. 27CRPCh. 7 - Prob. 28CRPCh. 7 - Prob. 29CRPCh. 7 - Prob. 30CRPCh. 7 - Prob. 31CRPCh. 7 - Prob. 32CRPCh. 7 - Prob. 33CRPCh. 7 - Prob. 34CRPCh. 7 - Extend your solution to the previous problem to...Ch. 7 - Prob. 38CRPCh. 7 - Prob. 39CRPCh. 7 - Identify some design patterns in fields other than...Ch. 7 - Prob. 41CRPCh. 7 - Prob. 42CRPCh. 7 - Prob. 43CRPCh. 7 - Prob. 44CRPCh. 7 - Prob. 45CRPCh. 7 - Prob. 46CRPCh. 7 - How does open-source development differ from beta...Ch. 7 - Prob. 48CRPCh. 7 - Prob. 49CRPCh. 7 - Prob. 50CRPCh. 7 - Prob. 51CRPCh. 7 - Prob. 52CRPCh. 7 - In what ways can a software developer be...Ch. 7 - Prob. 1SICh. 7 - Prob. 2SICh. 7 - Prob. 3SICh. 7 - Prob. 4SICh. 7 - Prob. 5SICh. 7 - What happens if technology begins to advance so...Ch. 7 - Is the computer revolution contributing to, or...Ch. 7 - Prob. 8SICh. 7 - If you had a time machine, in which period of...Ch. 7 - Prob. 10SI
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
- Instructions: Create a UML diagram for a Dog class. You can get some useful information from your book Review Chapter 5 Pg. 179-180. CLASS NAME List the instance variables in the constructor. Unified Modeling Language (UML) List the methods in the class. o - indicates private o name is the variable name o string is the data type of name CLASS NAME List the instance variables in the constructor. o + indicates public o getName is the method name o o string is the return data type List the methods in the class. The second row of the UML diagram lists the instance variables in the constructor. For example -name: string Java.util. The third row of the diagram lists the methods in the class. For example, +getName(): string empty parenthesie indicate nothing is sent to the method.arrow_forwardGiven our course Grading Scheme: GRADE Name String Student ID Labs 50% Tests 30% Exercises 10% Diagrams 10% 1. Create a NamedTuple to contain this data. 2. Make a NamedTuple object from the NamedTuple. 3. Put some data into the Named Tuple object.arrow_forwardTask 4: Design an immutable data model class to carry the data about a company such as the company address, company name, company phone, and employee details. Company Model final name: string final address: string final phone: string final employee: Employee getName(): string getAddress(): string getPhone: string getEmployee(): Employeearrow_forward
- Write the code for the following UML diagram. Vehicle color:Sting -speeddouble -fuel:double *state: String +input):vold +addFuel): double moving0void +stop(:void +display0:void 1. Input(): Ask user to provide values for color and fuel. Default values for speed is "0" and state is "stopped" 2. addFuel0: Ask user to provide value for fuel to add. Add that value in fuel (attribute) and return value of total fuel. 3. moving0: Ask user to provide the speed of vehicle and fuel consumption. Set the value of speed and reduce the fuel (attribute) according to fuel consumption. And also set the state to "Moving". 4. stop(): This method will display that "Vehicle is stopped" and sets the value of speed to "0" and state to "Stopped" 5. display): This method will display the attributes value to output like: "Vehicle is stopped. It has red color. It's speed is 0.0 and fuel is 2.5 Liter"arrow_forwardTask 1: Planning and Passengers For this task we will be creating an overview of the classes in our system using the Unified Modeling Language (UML) Class Diagram. IMPORTANT: When submitting this question, you must submit it as a Portable Network Graphics (PNG) file. Below is a list of tools for drawing UML diagrams, but you are free to use any program of your choosing: . Google Drawings (https://docs.google.com/drawings/) . Plant UML (https://plantuml.com/) • Inkscape (https://inkscape.org/) • Visual Paradigm (https://online.visual-paradigm.com/) You may use any tool you wish as long as your diagram follows the UML conventions and is in the correct format (PNG). Instructions IMPORTANT: Unless otherwise stated, all attributes should be private or protected. You may decide for yourself whether an attribute should be private or protected. Draw the UML class diagrams for the following classes: 1. An abstract Java class called Person that has the following attributes: a String called…arrow_forwardComputer Science UML is a standard language that allows you to capture different aspects of your system in well-defined graphical models. Some of the models capture static aspects for the system and one will capture dynamic behavior for the system. In this project, you are required to draw an activity diagram showing the actions and events involved in depositing a check to a bank account using a mobile app. In particular, your paper should provide the following: A simple pseudo-code that captures the sequence of that process A detailed activity diagram that maps to your pseudo code you identified Make sure to specify clearly any assumptions you feel important to understand your logic I'm a bit lost on what to do and really just need an example of what this is asking and then suggestions on how to go about doing the assignment.arrow_forward
- For this assignment, you will be building a class, creating objects, doing comparisons and using nested control statements. You need to remember what you have learned in class, lab, books and your assignments. Be sure to refer to them when you need to. There are 2 parts to this assignment. In the first part, you are going to be given a problem and you will then need to create a structure, write algorithms and a flow chart to solve it. In the second part, you’ll be turning this into a java program. So let’s get started! Part 1: Your haunted house adventure: The user always starts the game at the front door and must immediately decide where they want to go. Your movement constraints are as follows: -From the front door, the user must choose between going into the living room, dining room or up the stairs. -To get from one room to the next, there must be a door. That means that to get to some rooms, the user must go through other rooms. See the above diagram for more details. -If the user…arrow_forwardCreate a class diagram and write the pseudocode that defines the class.arrow_forwardWhat's the difference between a Structure and a Class in terms of their functionality?arrow_forward
- ACTIVITY 2: ANALYZING STRUCTURE CHART Describe the differences in the meanings between the two structure charts shown. How have the symbols changed the meanings? Write your answers on the spaces provided below. Books by Author Books by Author Author Out of stock Book Author Вook Find Book by Author Print Find Book Print Footer Print Print Print Print Detail Header Footer by Author Detail Header (a) (6)arrow_forwardQ No. 2: Draw a Use Case diagram for "The Pizza Ordering System". (Hint – correct > or > relationships will attract additional marks). The Pizza Ordering System The Pizza Ordering System allows the user of a web browser to order pizza for home delivery. To place an order, a shopper searches to find items to purchase, adds items one at a time to a shopping cart, and possibly searches again for more items. When all items have been chosen, the shopper provides a delivery address. If not paying with cash, the shopper also provides credit card information. The system has an option for shoppers to register with the pizza shop. They can then save their name and address information, so that they do not have to enter this information every time that they place an order.arrow_forwardObjective: Create your own Class diagram for the Library Information system. ABC University Library in 1962. The core of the collection now contains 10,000 volumes. There are works for advanced study and research, rare books and manuscripts, and a reading collection for undergraduates. Beyond this core are scores of books in departmental and special libraries, the most notable being those of law, business, sciences, engineering and technology, Chinese and Japanese languages, and culture. It is important to keep track of each book title to know and to identify its classification 000 – Computer science, information & general works 100 – Philosophy & psychology 200 – Religion 300 – Social sciences 400 – Language 500 – Pure Science 600 – Technology 700 – Arts & recreation 800 – Literature 900 – History & geography In addition to tracking each title, the library must track each individual copy to note its purchase date, its condition, and status. The library functions…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you