Software Engineering (10th Edition)
10th Edition
ISBN: 9780133943030
Author: Ian Sommerville
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 4, Problem 4.2E
Program Plan Intro
Given Information:
In an automated railway ticket-issuing system, users need to select their destination and input a credit card and a personal identification number. A menu display of potential destinations is activated, along with a message to the user to select destination after the user presses the start button when the rail ticket is issued. Users are requested to input their credit card after a destination has been selected and the validity of credit card is validated and the user is then requested to input a personal identifier and if validated then ticket is issued.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Description:
The program starts by asking the user to select either login (L) or sign up (S) feature. Once the user selects a feature, it asks him for (Card Number, then PIN) and after filling the required information for that feature, it shows the above menu for other features. Otherwise, it keeps asking for the required information. Each feature has to be designed using a separate function and it might be called by other functions including the main function. The description of the login feature, sign up feature, and the above features are given below:
Sign up Feature – def create(): this feature allows new user to create an account and it saves his information in txt. The required information to be asked in this feature as follows:
Card Number: user will enter a card number and should be four digits, each digit is unique and it should not be repeated in the 4-digits card number. This feature will keep running until the user enters the required number with same length and…
Computer Science
Code a Binomial Expansion Calculator in Visual Studio using Windows Forms.app (.NET Framework). UI must have 3 radio buttons, n = 2, n =3 and a custom n value. 3 textbox inputs (a, b, and for n which must only be enabled when radio button custom n value is selected. Outputs – must include a label that should dynamically change depending on the value of a, b &n (e.g.
“The binomial expansion of equation (ax + by) of power n is:”). This should not be editable.
Exercise 1.2
Description: In large markets, a system that allows users to pay by themselves can make both cash and card transactions after the user has their products scanned by the barcode scanner.
Welcoming Screen
1- The user can select the "read membership card" option on the login screen to earn discounts and points at the end of the shopping, or "enter a phone number" if the membership card is not next to it.
2- If he is not a member he can choose to "scan the product" directly.
3- Membership control is carried out by the membership database.
4- After the user has made the selection, the scan and package screen is displayed.
Draw the use case diagram of this scenario.
Chapter 4 Solutions
Software Engineering (10th Edition)
Ch. 4 - Identify and briefly describe four types of...Ch. 4 - Prob. 4.2ECh. 4 - Prob. 4.3ECh. 4 - Prob. 4.4ECh. 4 - Prob. 4.5ECh. 4 - Suggest how an engineer responsible for drawing up...Ch. 4 - Prob. 4.7ECh. 4 - Prob. 4.8ECh. 4 - When emergency changes have to be made to systems,...Ch. 4 - Prob. 4.10E
Knowledge Booster
Similar questions
- Java ATM Machine ATM machines are used to withdraw and deposit cash in addition to make balance inquiries. The user enters a card in the ATM's card reader, then the ATM, and through its console screen, asks the user to enter the card 4 digit PIN number. If the PIN is verified by the Bank (which keeps a list of bank accounts), the ATM will present the user with a menu of the available choices (Transactions), otherwise, invalid PIN message will be displayed, users can try to enter the PIN three times after which the card will be claimed by the machine. If the user choses to withdraw, he will be presented with a menu of a specific amounts or he can enter the amount, if the user balance is sufficient and if the cash dispenser has the amount available, the cash amount will be dispensed from the cash dispenser. 1. Withdraw 2. Balance inquiry At any time during a transaction, the user can choose to cancel and thus end the transaction 1. Ready: waits the user to enter the Card 2. Card Card…arrow_forwardGive Authentic And Relevant Answer. Write a detail use case for “Search a Cab” function. For searching a cab, the passenger would enter his/her source and destination information and the application would list down all the available cabs in a 1km radius. If application unable to find cab within 1km radius passenger can increase the radius up to 3 km. The passenger would send pickup request to the driver and the driver would come to pick the passenger from the source address. ‘Get a Cab’ is a Smartphone application. It will search cabs for the passenger, provide them with security by reminding them about their luggage and it will also allow the user to inform the police with the help of a one-click button. This application facilitates the guardians to trace the location of their loved ones. It also lets passengers locate a driver at any instance to overcome all time related issues. If the passenger wants to avail the services of the same driver in future, he/she can add the driver to…arrow_forwardC code blocks People in a queue are waiting to get the COVID-19 vaccine. The following piece of code prints a menu of the different age groups that can be vaccinated. When a person enters an option on the menu for age groups that are 18 years and older, it should print a message: Congratulations, your age group can be vaccinated. When a person enters an option on the menu for the age group 0 to 17 years, it should print a message: Unfortunately, your age group is not allowed to be vaccinated. For any option that is not on the menu, it should print a message: Invalid menu option! Write ONLY THE MISSING lines of code using a switch statement. Please take note of all the capital letters, spaces and punctuation marks in the messages. Do not add a new line at the end or beginning of a message. Use the default case for any other age group option not specified on the menu. Remember to add a break after each case statement. #include <stdio.h>#include <stdlib.h>int…arrow_forward
- You are a Chemistry major who has to create a program for first time chemistry lab users. The Erlenmeyer flask contains a nitric acid solution. When the student presses a button, 0.5 mL of NaOH solution can be added to a buret, which is set up over the Erlenmeyer flask. An indicator is added to the solution being titrated. The indicator is a substance that changes to blue when the reaction is complete (endpoint). You determine the amount of mixture that will cause this reaction to occur. Create a titration simulator that will allow a student to add up to 18 mL of titrant. Notify the student when the mixture turns blue. In Python please :)arrow_forwardplease make it simple and do not use java program: Validate IP Address. Create a program and reads an IP address and determines whether it is syntactically correct or not. Assume the format of the IP address is 999.999.999.999 where 999 represents a number between 0 and 255. Use the `split function to access the values in the input IP address.arrow_forward1. You have been consulted to develop a currency converter for a Forex Bureau. The client wants an interactive program that uses switch statements. The program should specifically help in these major foreign currencies – US Dollar, Pound, Euro, and the Chinese Yuan. The reference currency should be the Cedi.arrow_forward
- Cell Phone Packages use Java Swing(GUI)Cell Solutions, a cell phone provider, sells the following packages:300 minutes per month: $45.00 per month800 minutes per month: $65.00 per month1500 minutes per month: $99.00 per monthThe provider sells the following phones (a 6 percent sales tax applies to the sale of a phone):Model 100: $29.95Model 110: $49.95Model 200: $99.95Customers may also select the following options:Voice mail: $5.00 per monthText messaging: $10.00 per monthWrite an application that displays a menu system. The menu system should allow the user to select one package, one phone, and any of the options desired. As the user selects items from the menu, the application should show the prices of the items selected.arrow_forwardlanguage: HTML design a simple shopping cart with only 3 items (names can be left as placeholders like "Item 1", "Item 2"). There should be a quantity adder as well as a function that enables the user to see the subtotal of all the item prices together (prices can be a random number)arrow_forwardPlease provide answer in C#: Slot Machine Simulation A slot machine is a gambling device into which the user inserts money and then pulls a lever (or presses a button). The slot machine then displays a set of random images. If two or more of the images match, the user wins an amount of money that the slot machine dispenses back to the user. Create an application that simulates a slot machine. Figure 8-23 (on page 539 of your book) shows an example of how the form should look. The application should let the user enter into a TextBox the amount of money he or she is inserting into the machine. When the user clicks the Spin button, the application should display three randomly selected symbols. (Slot machines traditionally display fruit symbols. You will find a set of fruit symbols attached to this dropbox for your use - from the Student Sample Programs provided by the book author.) If none of the randomly displayed images match, the program should inform the user that he or she has won…arrow_forward
- A console (text-based) program that allows the user (when asked) to enter these three pieces of information: The name of their favorite restaurant (text) The location of the restaurant (city, neighborhood, or street) (text) The number of times they typically eat at a restaurant each month (a number) Before the user can input this information, they must be given instructions on screen. Each of the above inputs requires a prompt, as follows: "Please enter the name of your favorite restaurant:" "Please enter the location of the restaurant: (City, neighborhood, or street.)" "Please enter the number of times you typically eat at the restaurant each month. (Numbers only.)" Each input from the user must be stored in its own variable with an appropriate data type (indicated in parentheses above). The name of each variable must provide a hint at what information it contains. For example, you might call the variable that stores the first input (their favorite restaurant) "favrest",…arrow_forwardInstructions Assuming you are registered in a class with several activities/categories (quizzes, labs, homework, attendance, etc.), you would like to keep track of your grades throughout the quarter. For each category, you need to add your grade, e.g., for the labs you got 100 in lab 1, 95 in lab 2, etc. How are we going to store our grades for each category? Remember that in our main program, we keep the information for various grade categories. This information is stored as a list of lists, which can, for example, look like this: [["Lab", 35], ["Quiz", 35]] Each list that is contained in the main “database” (a list of lists) contains information about a category and its corresponding grade percentage. If for the labs, you got 100 in lab 1, 95 in lab 2, we can store this information for the “Lab” category as an additional list: ["Lab", 35, [100, 95]] This means that our database would then look like this (note the nesting of the grades): [["Lab", 35, [100, 95]], ["Quiz", 35]] In order…arrow_forwardcan NOT edit code one grey line (start-4 & 8-end of code) new JAVA code will have to be added in the middle like in the photo.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