Computer Science: An Overview (12th Edition)
12th Edition
ISBN: 9780133760064
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…
In an annual charter day celebration of a university, one of the highlights of its celebration is having a concert for a cause in which national personalities were invited. The student body assigned for the conduct of the event, sold tickets for their fund raising for a cause. Tickets are sold according to the following prices. The green ticket is sold at $20, orange ticket at $30 and white ticket at $40. All students of the university are encouraged to support the said event, however the venue could only accommodate 1500 people. Write a Nassi-Shneiderman diagram that determines the total amount of money that will be generated if all tickets are all sold out and likewise print the total money collected.
In an annual charter day celebration of a university, one of the highlights of its celebration is having a concert for a cause in which national personalities were invited. The student body assigned for the conduct of the event, sold tickets for their fund raising for a cause. Tickets are sold according to the following prices. The green ticket is sold at $20, orange ticket at $30 and white ticket at $40. All students of the university are encouraged to support the said event, however the venue could only accommodate 1500 people. Write an algorithm in pseudocode, a flowchart and NS diagrams that determines the total amount of money that will be generated if all tickets are all sold out and likewise print the total money collected.
Chapter 7 Solutions
Computer Science: An Overview (12th Edition)
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
- Write the code for the following UML diagram. Input(): Ask user to provide values for color and fuel. Default values for speed is “0” and state is “stopped” addFuel(): Ask user to provide value for fuel to add. Add that value in fuel (attribute) and return value of total fuel. moving(): Ask user to provide the speed of vehicle and fuel Set the value of speed and reduce the fuel (attribute) according to fuel consumption. And also set the state to “Moving”. stop(): This method will display that “Vehicle is stopped” and sets the value of speed to “0” and state to “Stopped” 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_forwardCreate a UML diagram for the Employee class. Screenshot providedarrow_forwardA structure will be defined (Student ID, Student Name, Student Surname, Midterm, Final, average).The user will be asked to enter the number of Students in the Class (1).Number, name and surname of the students in the class will be entered (2). After entering the whole class number, name and surname, the student's number, name and surname will be shown and the midterm grades will be requested (3).Then, you will be asked to enter the final grades as the midterm is entered (4).40% midterm, 60% final calculation is made and recorded in the average field (5). The number, name, surname and averages of the students in the class will be shown on the screen (6). The sequence of actions will be performed in the order described.Write the C program code that performs the above operations. Number of students in the class is 10 Any random name, surname, student number, midterm grades and final grades can be usedarrow_forward
- Given 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_forwardQuestion#1 Scenario of web shop application: A supplier (with Supp-#) processes many purchase orders (with PO-#) and sells a number of products (with Prod-#). A product is sold by only one supplier. Each of the purchase orders that a supplier may process includes several products. The relationship between order and product is defined as "Line Item". A customer (with Cust-#) may place one or more purchase orders. A purchase order may be placed by only one customer. Design a complete ER diagram for the above verbal description of web shop application.arrow_forwardWrite 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_forward
- please I want a class diagram for university student club application. The application has the university clubs the user can search for any club they want to know about also the user can registor in the clubs through the application and of the user have any questions they can ask through the application. also there will be an inclination test the user can take to see which club is sutiable for them. Make sure that the class diagram is has all the components in the use case for our system. please I want the class diagram to be correct This is the use case diagram for our application please I want a class diagram for the application, and please I want the class diagram to draw it using an application not by hand pleasearrow_forwardIn Exercises 25 through 30, create the form shown in the figure. (These exercises give you practice creating controls and assigning properties. The interfaces do not necessarily correspond to actual programs.)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_forward
- ASSIGNMENT Understand the pay structure of an IT company. An employee gets basic salary and allowances Travelling allowance (8%), Dearness allowance (20%), Medical (10%), Family (5%), Relocation allowance (6%). Calculate the gross salary he is getting including above mentioned allowances. Also, he is paying 13% GST (tax) for each pay period. Can you calculate NET salary which he receives after these deductions? DESIGN: ALGORITHM AND FLOW CHARTarrow_forwardA college must track equipment items purchased using special funds. Create a struct name Inventory that represents an equipment item. An equipment item consists of an 8-alphanumeric inventory number, a short description of the item, the purchase price of the item, and its current location (e.g.: room/building location). If an item is surplussed (e.g., gotten rid of), then the current location should say surplus, but the item should remain on the list. Write a program that reads inventory items from a file into a vector. Implement a menu system that allows the user to add, edit, and delete records from the list as well as search the list based on inventory number and print a report of all records. The list should always be maintained in order of inventory number. When the program closes, the data file should be overwritten with the most recent data from the list. Write a function for each option. Functions should be as listed. Name Return Type Description add int Function adds a…arrow_forwardA tower show where participants perch on top of each other's shoulders is being prepared by a circus. Each person must be shorter and lighter than the person below them for both functional and cosmetic purposes. Create a method to determine the largest number of individuals that can fit inside such a structure given the heights and weights of each circus performer.A tower show where participants perch on top of each other's shoulders is being prepared by a circus. Each person must be shorter and lighter than the person below them for both functional and cosmetic purposes. Create a method to determine the largest number of individuals that can fit inside such a structure given the heights and weights of each circus performer.A tower show where participants perch on top of each other's shoulders is being prepared by a circus. Each person must be shorter and lighter than the person below them for both functional and cosmetic purposes. Create a method to determine the largest number of…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage