
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Create a scenario from your own experience that requires at least one input validation, one loop for repetition that is not related to the input validation and one decision that is not related to the input validation or the loop. Create a flowchart to design a solution for your scenario.
A model response might look like this: Anne and Gigi are shopping, each buying five items. After having their purchases (verify all costs are positive values) totaled at the cash register individually, determine who spent less money
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 1 images

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
- It implies testing in a "BLACK Box." What different variants exist on this theme?arrow_forwardI need help in improving my code. This is an elevator simulator that uses polymorphism and object-oriented programming to simulate the movement of elevators in a building with multiple types of passengers and elevators.The system has 8 elevators, each of which can be one of 4 types of elevators, with a certainpercentage of requests for each type. Similarly, each passenger can be one of 4 types, with adifferent percentage of requests for each type. The simulation should have 4 types of Passengers: Standard: This is the most common type of passenger and has a request percentage of 70%. Standard passengers have no special requirements. VIP: This type of passenger has a request percentage of 10%. VIP passengers are given priority and are more likely to be picked up by express elevators. Freight: This type of passenger has a request percentage of 15%. Freight passengers have large items that need to be transported and are more likely to be picked up by freight elevators. Glass: This type…arrow_forwardProgramming language is C. I would really be appriciate if you could help me with this. Please provide me with your cashapp, so I can tip you for your work. THANK YOU:) In this project, we shall simulate the operations of an ATM machine. Suppose you’re in charge of this simulation and here is a scenario of what is required to do: The customer will be assigned a random or fixed number for his/her balance. First, the customer is prompted to enter his personal identification number pin (for this case study, we test only if this pin is formed by 4 digits! otherwise, a message like “Invalid PIN, try again . . .” will be displayed) and the user is re-prompted to enter the pin. The customer is given three chances to enter his pin. If he/she fails during the three trials you display a message like “Sorry you can’t continue, contact your bank for assistance!” If the pin is correct (formed by 4 digits), then the system will ask the customer for the receipt ( 1 for YES and 2 for NO ) and a menu…arrow_forward
- the program announces the first set of dancepartners and who the next people are in line. If there is not a complete couple,the next person in line is announced. If no one is left in line, this fact isdisplayed.First, let’s look at the data we use for the simulation:F Jennifer IngramM Frank OpitzM Terrill BeckermanM Mike DahlyF Beata LovelaceM Raymond WilliamsF Shirley YawM Don GundolfF Bernica TackettM David DurrM Mike McMillanF Nikki FeldmanWe use a structure to represent each dancer. Two simple String class methods(Chars and Substring) are used to build a dancer. Write program in c#.arrow_forwardUsing UML class diagrams, create a design for the following (you can defer declaring the types for any instance variables and instance methods as long as you represent the concepts appropriately). NB: You may hand-draw your diagram or use a drawing program (your choice). Upload your finished answer for (a) and (b) as one file. (a) An Employer has one or more Employees. An Employee has exactly one Employer. Employees have attributes for their name, salary and job title (b) We are producing a vehicle registration system for the local DMV/RMV. Model the following using a UML class diagram. Read the entire specification before proceeding (this is ONE question, broken into 4 segments for readability): (i) Our interface (protocol/contract) IVehicle states that all vehicles can register() and calculateExciseTax(). These operations are public and the Vehicle contract is stable – it will not change. (ii) We think we’ll be able to take advantage of code-reuse, so your team must introduce an…arrow_forwardHi, this is a java programming question with direction of what to do. I'm just gonna attach the question sheet. Implement the following class diagram (diagram in attached photo)setFirstName() method should set the firstName attribute of the class.setLastName() method should set the lastName attribute of the class.setSpecialization() method should set the specialization attribute of the Doctor class.setHealthnumber() method should set the healthNumber attribute of the Patient class.setIllness() method should set the illness attribute of the Patient class.If you are not comfortable with set methods, you are free to create your own constructors to set the attribute values.Create a HospitalApplication class which contains the main method. Inside the main method the following should be done in the order mentioned. (Any other ordering would not guarantee full marks).Prompt for the following inputs for 5 Doctors. (Use for loops)• First name• Last name• SpecializationValid specializations…arrow_forward
- You will be using on RV related review comments to train a Sentence completion model. You could use the code below. The code is written in Jupyter notebook python. please follow the following instructions: 1. Build a working sentence completion model. Training data is provided in train.csv. This model should take partial sentences (e.g., "hey how ar," "hello, please") and provide completion for that sentence. Not every input needs to be completed into a correct sentence (e.g., "asdfauaef" does not need to have a sentence completion). For this model's purposes, a sentence is considered completed if an "end of sentence" character (like a full stop, question mark, etc.) occurs within the next five words OR. We predict up to 5 words from the input. 2. BONUS: If you use word vectors or other techniques from what we shared in class using character encoding and have a working model. 3. The test data (test.csv) will be used to evaluate the model. The test file contains partial sentences. Use…arrow_forwardDesign and implement a java program for the above class diagram. Here, you haveto calculate the compound interest for saving accounts (3.2% per year). As youknow, the user should not be able to withdraw money from a savings account but canwithdraw from the current account. The user should maintain a threshold in the currentaccount. If it goes below, the bank will charge some penalty. The tasks area. User can deposit, update, display the balance from both accounts (Savingsand current)b. Calculate interest and sum to savings accountc. Allow to withdraw only in current and goes below some level, charge apenaltyarrow_forwardWriting C++ Code for a Hybrid Market Prize System. A New hybrid market is launching in Muscat and you are asked to create a prize system for the blind customers based on the amount of his invoice. The scenario of giving the prize is as follow: • The market owner should enter the Secret amount (SM), Above Percentage (AP). Lower Percentage (LP) and Prize at the start of executing the system. • The cashier should enter the following information for five customers in a 2D-Array 5 X 3: The Invoice Number, the Invoice Amount, and Customer Name • The system needs to print the number and the amount of each invoice with the customer name. In addition to the prize amount, such that: o it the Invoice Amount is equal to (SM) the record of the customer should be printed with 100% of the Prize. o If the Invoice Amount is Larger than (SM) by (AP) the record of the customer should be printed with 50% of the Prize. o If the Invoice Amount is larger than (SM) by (LP) the record of the customer should be…arrow_forward
- I want an answer for a begainer on Netbeansarrow_forwardWhat is the proper relationship in a UML Class diagram between a test program and a program?arrow_forwardFollow the instructions from your instructor to accomplish the following in-class lab assignment. The Problem to Solve: The user needs a program to interact with employee records. The kinds of interactions are "Add an Employee" (Create record), "Show All Employees" (Read records), "View an Employee" (Read one record), "Update an Employee" (Update or change a record), and "Delete an Employee" (Delete a record). These interactions form the standard data processes in much of business software Create, Read, Update, and Delete, which are known by the acronym CRUD. The user needs to continue working with records until they are ready to tell the program. To do this, the program will present a menu of CRUD options and an option to Quit. The user will choose an option and the program will react accordingly. For this lab, the program will only print out which option the user chose. In later labs, we will add more functionality. Questions: What are the inputs needed to solve this…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education