Implement a simple banking system in Java. Your application should demonstrate the following. Upon running the java code, first the application should welcome the user, then ask the user to give one of the options:
1) display the balance summary,
2) withdraw money, or
3) deposit money.
Based on the options your code should perform the following operations such as
1) read the transaction details from a file and display them on the screen.
2) ask the user to enter the amount he wants to withdraw and debit the withdrawal amount from the balance amount. It has to update the file and display the transaction summary. The system should not allow an attempt to withdraw an amount greater than the balance.
3) ask the user to enter the amount he wants to deposit, credit the balance and update the file. It should display the transaction summary.
The records in the file should contain transaction number, transaction type, amount withdrawn, or amount deposited, and balance. Example:
1 Deposit 100.0$ 1100.0$
2 Withdraw 50.0$ 1050.0$
The welcome screen should look like:
Welcome to CIS-2348 Banking System!
Enter your Option in a number: 1. Display balance 2. Deposit amount 3. Withdraw amount We assume that there is an opening balance of 1000 available in the system (Assign balance=1000.0 in the beginning of the code). Also, while running first start by choosing deposit option or withdraw option.
In: Computer Science
For this assignment you will create a set of simple classes that model a cookbook. The cookbook will consist of set or recipes. Each recipe will consist of a set of ingredients and instructions. Your submission will consist of the below three classes and a test driver (the only class with a main()) that exercises the functionality of your system.
You will need to implement the following classes based on the description of their attributes and operations:
In: Computer Science
write code data structure using c language
You will build a system to manage patients’ data in a hospital. The hospital patient management system stores specific information in the form of health record to keep track of the patients’ data. Your program should read the information from a file called “patients.txt” that should be on the following format
: Patient Name#Gender#Date of admission#Date of birth #Illness#Address (City)#Blood type
Your program should be able to do the following tasks: Options: 1. Read data: read the data of the patients from the file.
2. Create linked list: create a linked list.
3. Sort data: use Radix sort to sort the data based on the patients’ names.
4. Add patient: add a new patient.
5. Update patient: update patient’s information.
6. Delete patient: soft delete (explained below).
7. Search for patients a. Name b. Date of birth
8. List patients a. All patients b. Category (i.e., illness) c. City d. Discharged (Patients who were deleted from the system)
9. Export medical report: export XML file following medial health record standards.
10. Exit: exit from the system and store the information back to the file.
you are not allowed to use the String library functions.
In: Computer Science
1) Write an INSERT statement that adds this row to the Invoices table: i
nvoice_id: The next automatically generated ID
vendor_id : 32
invoice_number: AX-014-027
invoice_date: 8/1/2014
invoice_total: $434.58
payment_total: $0.0
credit_total: $0.0
terms_id: 2
invoice_due_date: 8/31/2014
payment_date: null
Write this statement without using a column list.: Use DEFAULT to insert the automatically generated ID.
2) Write an INSERT statement that adds these rows to the Invoice_line_Items table:
invoice_sequence: 1 2
account_number: 160 527
line_item_amount: $180.23 $254.35
line_item_description: Hard drive Exchange Server update
Set the invoice_id of these two rows to the invoice ID that was generated by MySQL for the invoice you added in question 1
3) Write an UPDATE statement that modifies the invoice you added in question 1. This statement should change the credit_total column so its 10% of the invoice_total column, and it should change the payment_total column so that the sum of the payment_total and credit_total are equal to the invoice_total column.
4) Write a DELETE statement that deletes the row that you added to the Invoices table in question 1. When you execute this statement, it will produce an error since the invoice has related rows in the Invoice_Line_Items table. To fix that, precede the DELETE statement with another DELETE statement that deletes the line items for this invoice. (Remember that to code two or more statements in a script, you must end each statement with a semicolon.
In: Computer Science
On January 1, 2018, R Corp. had 480000 shares of common stock outstanding. During 2018, the following transactions affected the common stock account: 2/1/208 issued 120000 shares. 5/1/208 acquired 100000 shares of treasury stock. 6/1/2018 issued a 3-for-1 stock split. 10/1/2018 reissued 60000 shares of treasury stock ( not adjusted for dividend or split). a) Determine the weighted-average number of shares outstanding as of December 31, 2018. b) Assume that Wilke Corp. earned net income of $3456000 during 2018, determine basis EPS
In: Accounting
In: Accounting
Cost of Quality and Value-Added/Non-Value-Added Reports for a Service Company
Three Rivers Inc. provides cable TV and Internet service to the local community. The activities and activity costs of Three Rivers are identified as follows:
a. Identify the cost of quality classification for each activity and whether the activity is value-added or non-value-added.
| Quality Control Activities | Activity Cost | Quality Cost Classification | Value-Added/ Non-Value-Added Classification |
|
| Billing error correction | $29,800 | External failure | Non-value-added | |
| Cable signal testing | 120,700 | Appraisal | Value-added | |
| Reinstalling service (installed incorrectly the first time) | 64,100 | External failure | Non-value-added | |
| Repairing satellite equipment | 49,700 | Internal failure | Non-value-added | |
| Repairing underground cable connections to the customer | 19,400 | External failure | Non-value-added | |
| Replacing old technology cable with higher quality cable | 164,000 | Prevention | Value-added | |
| Replacing old technology signal switches with higher quality switches | 187,400 | Prevention | Value-added | |
| Responding to customer home repair requests | 35,800 | External failure | Non-value-added | |
| Training employees | 39,100 | Prevention | Value-added | |
| Total activity cost | $710,000 | |||
b. Prepare a cost of quality report. Assume that sales are $3,550,000. If required, round percentages to one decimal place.
| Three Rivers Inc. | |||
| Cost of Quality Report | |||
| Quality Cost Classification |
Quality Cost | Percent of Total Quality Cost |
Percent of Total Sales |
| Prevention | $ | % | % |
| Appraisal | % | % | |
| Internal failure | % | % | |
| External failure | % | % | |
| Total | $ | % | % |
c. Prepare a value-added/non-value-added analysis.
| Three Rivers Inc. | ||
| Value-Added/Non-Value-Added Activity Analysis | ||
| Category | Amount | Percent |
| Value-added | $ | % |
| Non-value-added | % | |
| Total | $ | % |
d. What percentage of total costs of quality
are considered to be value-added?
72.0%
In: Accounting
Wei deposits 3000 at time 0, and 2000 at time 2 in an account that earns interest at an effective rate i. His account balance at time 5 is twice as large as at time 1. Determine i.
In: Finance
In order to pay off the most recent invoice, a company is scheduled to pay $2000 today and $1500 in 6 months. Due to a decrease in sales, the company has chosen to renegotiate the payments. The invoice will be settled by a payment of $1000 in 3 months and a final payment 12 months from now. Determine the size of the final payment if interest is 6% p.a. compounded quarterly.
In: Finance
In: Finance