Using Java Develop a Point of Sale (POS) that will be used to transact electronic money between purchasers and dealers. The POS should be able to: 1. Verify the pin of the Bob card holder; 2. Approve the transaction if there is sufficient funds in the account of the purchaser; 3. Output the following reports to separate files: monthly transactions (by item, transfers, customer) 4. Send alerts when the reorder levels of item are reached.
Q: You are in the same group as Sam, Tom, Bill, and so on. The permissions field on a file you own…
A: -rwxr-x--x The string of 10 characters on the left shows the mode. first character: '-' indicates…
Q: 1. Write a Python script to save the dictionary words in the 'wordlist.txt' file, and then compress…
A: python script to store dictionary word and compress it to a zip file with protected password.
Q: How would you modify the permissions on the file pfile2 to allow the user to read, write, and…
A: Read: You have the ability to open and read a file if you have this permission. You may list the…
Q: Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text. An example of…
A: Given:
Q: Write a script which will find all of the processes running on your domain computers,…
A: ANSWER:- FOR SOLUTION SEE STEP NO 2
Q: You have a program that outputs the message “illegal input record” when fed a certain file of input…
A: Initial state: Considering all input records.
Q: belo
A: given - Modify the scripts of Projects 1 and 2 to encrypt and decrypt entire files of text. An…
Q: Implement a simplified version of the UNIX program "cp", which copies one file to another by…
A: Solution:-- 1)As in the given question it is required to give a program for the purpose of copying…
Q: 2. Write the DOS command for the following: Consider that you have four txt file in "E:\ICT" with…
A: According to the question we need to write the DOS command for the following: Consider that you have…
Q: For this problem, solve by hand or write a program (perhaps in Python). If you write a program,…
A:
Q: ou work for a small company that keeps the following information about its clients: • first name •…
A: def get_parts(str1): lst = str1.split(',') #Split a string into a list based on ','…
Q: -Suppose that x=date of your birth and y is month of your birth. Use Matlab and calculate the…
A: Input : Value of x Value of y Output : Value of given expressions
Q: question has to do with Java programing. I am attempting to do a Regex Lab and read in a text file…
A: Java programs are frequently asked in the interview. These programs can be asked from control…
Q: We are building a student management
A: In Serialization,an object is represented as a sequence of bytes called byte streams , these byte…
Q: Close the virtual machines now and close the virtual box. Use your real machine to respond to the…
A: hello how are you 1234567890!? Compute the MD5 hash of this file. Write the hash here : Answer :…
Q: You have 01 computer and a file containing 10 billion random 64-bit numbers. The goal is to take the…
A: ANSWER:-
Q: The names Sam, Tom, Bill, and so on are in the same group as you. The permissions column on a file…
A: To discuss who has the access to a file answer with value on permission column is ----r-----.
Q: It’s lunchtime, so you head to the office kitchen to heat up your food. While you’re waiting on the…
A: For the Given case we have to follow these steps Ignore and just don't focus on that open folder.…
Q: Write a vending machine program with the Linux Shell Script. There will be only 3 items that you can…
A: PROGRAM CODE: echo "Enter the total amount you have :-"read…
Q: ne or more command-line arguments are accepted as well as outputting a message when no command-line…
A: Q. How do change the code so that one or more command-line arguments are accepted as well as…
Q: Write a program invoking the above two functions to show how you can use a password to register a…
A: Code: # Function to check the length of passworddef check_length(password): """ Function checks…
Q: Match the following questions with their best answers. v Which terminal program performs a…
A: cd command is used to change directory from current path. ls is used to list out the files present…
Q: For an e-Shop, there is a Customer whose data is stored in a file ‘Customers.txt’, where ID, Name,…
A: Program approach:- Function to pay. Reading in each value. Accessing each row. The required amount…
Q: I need to create a Transposition Cipher in Java that runs in Eclipse. The programs need to ask the…
A: Code: import java.io.*;import java.util.*; // Class// For transposition cipherpublic class GFG {…
Q: I know how to swap two floating point number, but my professor asked me to. add security components…
A: As per the given question we have to develop a JAVA code to swap two floating point integers without…
Q: Create a java server class that will do the following: • Run on port 8000 and listen to a client •…
A: import java.io.*;import java.net.*; public class CheckersStockTakingServer { public static void…
Q: java ,write method(totalassests()) that would create a file money.txt and writes bbanks totals…
A: Code to write return value of totalAssets() function to money.txt file: import java.io.FileWriter;…
Q: Suppose that user aletia has a file with permissions 0347 and that user alvarez is a member of the…
A: Below i have answered:
Q: For the following Computer Science question: Does the following Set-UID program have a race…
A: The Answer for the given question in step-2.
Q: Below is a list of different access right settings. We want to implement shared update of certain…
A: CHOICES: A. Assign Bob ownership to Alice's files, and Alice ownership to Bob's files. If we…
Q: Programmin language is C: Create a file , print on that file the following: clients.txt account…
A: In the main class Declare the pointer variable fptr of type file. Declare the variable account_no…
Q: 3. Write a Python script to save the dictionary words in the 'wordlist.txt' file, and then compress…
A: Algorithm: Start Store "wordlist.txt" in wordlist Store "protected.zip" in zipFile Initialize the…
Q: what is access modifier? Access modifier is good? why? We have Public, Default, Private, and…
A: Disclaimer: “Since you have posted a question with multiple sub-parts, we will solve the first three…
Q: How do change the code so that one or more command-line arguments are accepted as well as outputting…
A: Find the following program:
Q: You need to find a specific filename on the system. Using C and what you learned in class, how would…
A: The file is the basic unit in the operating system. Almost everything is treated as a file,…
Q: Using the following data file (delimited by a space or tab) November 400 January 200 June 400 March…
A: Answer :
Q: Trace the output of the following codefragments? a) for(vari=10;i=0;i--){document.write(i)}…
A: a) This will not print anything as i starts with 10 and should be less than 10 in each iteration…
Q: Create a Java program with comments, that allows a user to input customer records (ID number, first…
A: The answer is given below. In Local disk C and Users folder, create a text file named…
Q: Suppose you want to back up a huge file (e.g., a 10-GB AVI file) to aCD-R. You can achieve it by…
A: Program: // Import the required packages. import java.io . *; import java. util.*; public class Main…
Q: Given a X509 certificate contained in the file sdo.cer, write a program to import and print out…
A: Code for the programming language If the content of your X905 certificate is in the source file…
Q: Suppose the following code segment in a certain method that throws IOException was used to write to…
A: Specified By: This method is specified in the readDouble () version of the DataInput interface.…
Q: Implement a simplified version of the UNIX program "cp", which copies one file to another by…
A: see where we are and what we already haveLet’s go back to our shell-lesson-data directory on the…
Q: -Suppose that x=-7-5i and y=4+3i. Use Matlab and calculate the followings; a) x+y
A: Please find the answer below :
Q: In a UP project, each iteration ends with a stable executable. Select one: O a.FALSE b.TRUE
A: In a UP project, each iteration ends with a stable executable The answer is True.
Q: Write a java program to create a file called password.txt
A: Java Program: // importing Fileimport java.io.File; class Files{ public static void main(String[]…
Q: For the following Computer Science question: Does the following Set-UID program have a race…
A: Race condition vulnerability is an attack that may occur when a system has to perform two or more…
Q: 2. Write a program in HACK assembly, without using symbols, that implements the described Feistel…
A: The Hack Assembly Language is minimal, it mainly consists of 3 types of instructions. It ignores…
Q: Assume that for B. Tech admission in an education institution, a student can attend the counselling…
A: Answer: I have done code and also I have attached code as well as code screenshot.
Q: Q1) The following problems can be solved by writing commands in the command window, or by writing a…
A: Required: None
Using Java Develop a Point of Sale (POS) that will be used to transact electronic money between
purchasers and dealers. The POS should be able to:
1. Verify the pin of the Bob card holder;
2. Approve the transaction if there is sufficient funds in the account of the purchaser;
3. Output the following reports to separate files:
monthly transactions (by item, transfers, customer)
4. Send alerts when the reorder levels of item are reached.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 5 images
- Implement the DBS Share Price Index System in Python as per Figure 2 below which allows users toadd, delete, update and lookup Share Prices. The System should store the Company Name and SharePrice. Your program should not allow users to add the same company more than once. On adding,deleting, updating or looking up a Share Price, your program should let the user know if theoperation was successful or not. On looking up a Share Price return the Company Name and SharePrice of the company; if the company is not found give the user the option to add the details theyare looking up. The user can perform multiple actions; they can add a new entry and subsequentlydelete an entry without having to stop and start the program until they decide to quitCreate a JavaFX program to allow a user to query the Northwind database. You should be able to perform the following functionality using the program: 1. Print order total (not including the freight cost) for a given order number The program will ask the user for an order number, and then print out the total for all products in the order, taking into account quantities and discounts. (All computations should be done within the SQL query). Print all order details for a given order number The program will ask the user for an order number, and then print the order date, freight charge, and all products and their quantity, unit price, and discount for the order. Print the names and cities of all customers in a given state The program will ask the user for a state, and then print out the names and cities of all customers in this state in order by city. Print the names of all employees who have a birthday in a given year The program will ask the user for a year, and then…I need help with this one please, already tried but still getting a wrong answer Scenario You have been tasked with building a URL file validator for a web crawler. A web crawler is an application that fetches a web page, extracts the URLs present in that page, and then recursively fetches new pages using the extracted URLs. The end goal of a web crawler is to collect text data, images, or other resources present in order to validate resource URLs or hyperlinks on a page. URL validators can be useful to validate if the extracted URL is a valid resource to fetch. In this scenario, you will build a URL validator that checks for supported protocols and file types. Task Create two lists of strings – one list for Protocol called valid_protocols, and one list for storing File extension called valid_fileinfo. For this take the protocol list should be restricted to http, https and ftp. The file extension list should be .html, .csv and .docx. Split an input named url, and then use the first…
- Write a program that generates student records in a database file. Your program should be able to generate at least 10 records. The format in the database should be: student name, student id The first student id should be 20180001, second id will be 20180001 and so forth. Show screenshot of scriptHow can we implement the requirement for "Hotel booking management "? - The system can display the availability of the room on a specific date. (search based on the date entered and display)- Staff can book (we add our own functionalities here: cancel booking, etc.).- Staff can give a discount on a certain room. (change the discount attribute).- The system can generate a report for the booking. (print all the details of the booking) #include <string>using namespace std; class Room {string type; // standard, family, deluxedouble price; // Searchingdouble discount;bool booked;string facilites[5];string bookedAt[30];}using c++ In this assignment you are going to implement your own version of university library system,Thesystem will have two different sides , the first one is to help the librarian to do his job and the other side for admin to manage every one permissions in the system , so You should provide the following features in your system: Admin view o Add/remove Studentso Add/remove librarian o Add/remove other admins Librarian viewo Add/Delete bookso Issue/Return bookso View bookso View Issued bookso Log in /log outo Search for the book(id/name) Simple backend for your system , You could use a file each row should represent itemo Books File should be something like:Id , Book Name, Author Name, Available quantity, Issued Quantity1,Oliver Twist, Charles Dickens,98,2In the previous the first row was the name of each column , you can do that or handle it in your code , id =1 , Book Name =Oliver Twist ..Etc. Tables neededo Books Id Book Name Author Name Available quantity Issued…
- Study the scenario and complete the question(s) that follow: Excellence UniversityExcellence University is a local university that offers a variety of degrees. You were recently recruited by the university as a Java Developer. For your first task, the university management wants to develop a program that can be used to compute certain statistics about their students. The program will assist lecturers in finding at risk students. The university management has provided you with a file called students.txt that contains information about their students doing a particular subject (Name, Days behind). Below is sample data for the first five students: Students.txtSheunesu Makura, -55Thando Mandela, 60Mariaane Trichardt, -17Xolani Xaba, -44Palesa Ramodike, 8 Develop a Java program in NetBeans for Excellence University using the information provided in the scenario above. The program must read names and days behind from the students.txt text file and write the names and days of all students who…Create a simple Monitoring System of Vaccinated and Unvaccinated Students using python Programming. The user can add, delete, and update the data inputted. Data should contains the ff. (name, age, address, type of vaccine and status of vaccine(fully vaccinated or partially vaccinated))Using java, Create a simple Student Information System. The program must perform the following: Create student information, Retrieve the student information Update and Delete the specific student.note: Use the Java GUI.
- The databse system has a database called online shop. What is a result of a CREATE statement that tries to create OnlineShop a second time? A)The statement replaces OnlineShop with a new OnlineShop database. B)The statement produces an error that the database already exists. C) The statement creates a copy of the database OnlineShop as onlineShop_1 D) The statment is ignored.Write a program that generates student records in a database file. Your program should be able to generate at least 10 records. The format in the database should be: student name, student id The first student id should be 20180001, second id will be 20180001 and so forth.this code is not reading the input in doing Update vaccine quantities. The system should allow the employees to select a particular vaccine and indicate either received or distributed quantity. In either case, the quantity of the selected vaccine needs to be updated accordingly in the vaccine.txtfile.E.g. Assume that the initial quantity of Pfizer vaccine in vaccine.txt file is 1 million. When the company receives a new stock, this quantity has to be added to the existing quantity of 1 million in the vaccine.txt file. In the case where the vaccines are distributed to hospitals for vaccination, the distributed quantity has to be subtracted from the quantity available in the vaccine.txt file.Note: Whenever a vaccine is distributed to hospitals, its code and the quantity distributed need to be recorded into a text file named as dist.txt. Each vaccine is expected to be distributed more than once. Hence, while testing the program, there should be at least 10 records created in the…