
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
Concept explainers
Question
Create a main( ) java file to perform the required tasks. Validate a user’s input (a menu option) to ensure its validity. Test and document your program to make sure that all of the required tasks are met.
- The main( ) creates a menu for a bank manager and a bank customer. For a bank manager, he/she can add information of bank customers and display all customer records. For a bank customer, he/she can make a deposit to a bank account and withdraw money from the account. Hint: The main ( ) could have a static method that allows a bank manager to add customers’ information to a text file. The information consists of Customer ID, Name (full name), and Email Address. Note that a loop should be used to perform the manager's task. As a result from the process, a text file "BankCustInfo.txt" is created. Also, the main( ) could have another static method that allows the bank manager to display all customer records to the screen.
- Create a class, BankCustomer, that contains attributes such as CustomerID and Balance. The class allows a bank customer to make deposits , withdraw money, display the current balance, and calculate the current interest earned. To calculate an interest earned, an object of the AccountType must be created (see the AccountType in #3).
- Create a class, AccountType, that has two attributes: AccountID and InterestRate. The interestRate value depends on the AccountD; if the AccountID is 1 then it is a checking account, and the interest rate is 0.01. If the AccountID is 2 then the account is a saving account and the interest rate is 0.02. Note that this class could be a static class.
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 6 steps with 8 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
- The Mid-Term Exam: A program to write (below). Note that you must submit and return directly to me with your name and the date included as an upload Canvas (file) submission. Make sure that your name is used as the file name. (You will not get credit if your exam cannot be read.) No notes, books, cells, Internet Search, computer/device, etc., may be used during this exam. Write a Java program that lets the user enter a series of integers with an input range from 2 to 199 (in random order). The user must enter a value of -1, 0, or +1 (a sentinel which must be an integer and not part of the series of numbers) in order to signal the end of the series. • After all the numbers have been entered, the program should display the smallest and largest numbers entered, and not include the sentinel. Note that this must be a Java implementatiọn, and not pseudo-code, etc. You must use a Loop and If-Else constructs as well.arrow_forwardI have the basis of a program that works as an inventory, it reads the contents of a file and displays them and their quantity in three places, and I need to add in a warning option that will alert that in any of the places the amount of product is below 10. Lab = This lab is to to add another option for the user to print warnings of any inventory running low. More specifically:- Add another option to the menu, called W for Warning- Look at all items, in all locations. If an item has less than 10 left, print out on one line the item name,location, and quantity. Pictures included are: 1. How the program currently runs 2. How the program needs to run, with included warning option (My program needs to match this photo) Contents of the file: Contents of Inventory.txt Red delicious apples1.00 25 6 8 10Assorted bouquets4.00 50 10 10 0Camembert cheese2.00 25 10 12 4END The Program: //inventory menu gives placement, warning, and exit option#include <iostream>#include…arrow_forwardDesign and implement an application that prints the verses of thesong “The Twelve Days of Christmas,” in which each verse addsone line. The first two verses of the song areOn the 1st day of Christmas my true love gave to meA partridge in a pear tree.On the 2nd day of Christmas my true love gave to meTwo turtle doves, andA partridge in a pear tree.Use a switch statement in a loop to control which lines getprinted. Hint: Order the cases carefully and avoid the breakstatement. Use a separate switch statement to put the appropriate suffix on the day number (1st, 2nd, 3rd, etc.). The final verseof the song involves all 12 days, as follows:On the 12th day of Christmas, my true love gave to meTwelve drummers drumming,Eleven pipers piping,Ten lords a leaping,Nine ladies dancing,Eight maids a milking,Seven swans a swimming,Six geese a laying,Five golden rings,Four calling birds,Three French hens,Two turtle doves, andA partridge in a pear treearrow_forward
- in java but don't write as a GUI (Graphical User Interface) Write a program that reads a file named input.txt and writes a file that contains the same contents, but is named output.txt. The input file will contain more than one line when I test this and so should your output file. Do not use a path name when opening these files. This means the files should be located in the top level folder of the project. This would be the folder that contains the src folder, probably named FileCopy depending on what name you gave the project. Do not use a copy method that is supplied by Java. Your program must read the file line by line and write the file itself. Class should be named FileCopy do not write to input.txt!arrow_forwardPlease help me with this Create an unbreakable encryption and decryption program using java. Then create a GUI txt file. But use your own ideas. More information is down belowarrow_forwardAdd the ability to convert an entire message into Morse code, as well as the ability to handle a data file comprising numerous entries. Change your input validation code so that the user has an infinite number of opportunities to enter valid responses. Your program should run until the user selects the "quit" option from your menu. Add a menu option to provide the user the option of processing a data file. Add another way to exit the program. When your software starts, the menu should be the first item that appears. The menu format should be the same as in the Sample Output. Allow the user to make more menu selections until they select the option to exit. Before soliciting the user for a menu selection, always show the menu. Handle an incorrect menu option correctly. The user should have an infinite number of opportunities to enter a valid menu option. Validate the user's input for the number of words sent so that numbers less than one are not accepted. Allow the user an unlimited…arrow_forward
- please do fast i will give you thumbs uparrow_forwardFor the following program in phyton : Pay CheckWindow CostWrite an interactive program to calculate the cost of glasswork and metalstripping for rectangular windows. All windows, no matter what size, use thesame quality of glass and aluminum strips. Prompt the user for his/her name,age, length, and width of a window, then calculate the costs shown based on theinformation read in from the windowinfo.txt file which contains the materialstypes and costs (you cannot change this file at all). There is a discount on thetotal cost of 10% if the total area is over 1000 square inches, and 15% if it isover 1500 square inches.*Be sure to include a try/except and any and all string methods you might need*No conditional loops can be used at all**This is the info you will see in the text file, remember you mustread this in and store it:Glass: 80 cents per square inch (unit area)Aluminum: $1.25 per inch (unit length) This is the sample output. Write it to both the screen and a text file…arrow_forwardLab Tasks – complete these Use the information provided here, in the slideshow and in chapter 12 of our text to do the following exercise. Step 1: On the desktop or wherever you will be saving your java program, use notepador other basic text editor (NOT WORD) to create a .txt file. In this file, type out a list of 10 integers (one on each line or with a space between each). Save. Do this manually. Not with Java. Step 2. Now write a program with the following: 1) In the program creating a File object that connects to the .txt file that you just created. 2) Add code that will check if the file exists and if it doesn’t, it will create it. (Yes, we know it definitely exists but do this part anyway.) 3) Set up a Scanner so that you can read the values from the file and print them to the screen using a loop. You will probably need to use the .hasNext() method. Also, you may want to set up a counter to keep track of how many values there are for future use. (Note that the .length()…arrow_forward
- In c programming language, read a file given a command line argument. Then print the file out with line numbers.arrow_forwardWrite a while loop that asks people why they like programming. Each time someone enters a reason, add their reason to a file that stores all the responses.arrow_forwardWrite a program which should handle books information for a book shop. It should be able to handle atleast 100 records. Your program should store following information against a book. Book Id (you may use index number as book ID) Book Code Book Name Author Name Publish Date Price No of copies in hand No of Copies sold Initialize 10 Books and initialize remaining with 0 and spaces. Create a menu, as given below, which should use above information to perform selected action from the given menu on the screen Add book (One book will be added. User will enter book id i.e. index number Record will be placed if code at that index is 0) Display book (Display Books in tabular format with nonzero codes only) Delete book (Place an empty record with 0 code and spaces at the selected index) Search book Sale book (First locate the book Id and check if code is not 0 then update No of Copies in hand and No of Copies sold accordingly) Exit Your assignment will be evaluated on the following basis:…arrow_forward
arrow_back_ios
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