Questions
Implement a simple banking system in Java. Your application should demonstrate the following. Upon running the...

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...

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:

  • Ingredient
    • name - the name of the ingredient
    • quantity - the amount of the ingredient
    • units - the unit of the quantity (e.g, tablespoon, or T, or Tbl)
    • require the creator to supply the name of the ingredient in order to create one
    • enable the user to retrieve and update each of the attributes appropriately
  • Recipe
    • name - the name of the recipe
    • category - the category of the recipe
    • ingredients - a list of ingredients (you may assume no more than 20)
    • instructions - this would be a paragraph of text, no need to worry about steps
    • require the creator to supply the name of the recipe in order to create one
    • enable the user to retrieve and update each of the attributes appropriately
  • Cookbook
    • name - the name of the cookbook
    • recipes - a list of recipes (you may assume no more than 20)
    • require the creator to supply the name of the cookbook in order to create one
    • enable the user to find recipes by name, returning only those recipes
    • Extra Credit (+1/3 letter grade): enable the user to find recipes by ingredient and return only those recipes

In: Computer Science

write code data structure using  c language You will build a system to manage patients’ data in...

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...

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...

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

6-42 Comprehensive operating budget. Skulas, Inc., manufactures and sells snowboards. Skulas manu-factures a single model, the...

6-42 Comprehensive operating budget. Skulas, Inc., manufactures and sells snowboards. Skulas manu-factures a single model, the Pipex. In late 2017, Skulas’s management accountant gathered the following data to prepare budgets for January 2018:
Materials and Labor Requirements
Direct materials Wood
Fiberglass Direct manufacturing labor
9 board feet (b.f.) per snowboard 10 yards per snowboard 5 hours per snowboard
Skulas’s CEO expects to sell 2,900 snowboards during January 2018 at an estimated retail price of $650 per board. Further, the CEO expects 2018 beginning inventory of 500 snowboards and would like to end January 2018 with 200 snowboards in stock.
Direct Materials Inventories Wood Fiberglass
Beginning Inventory 1/1/2018 2,040 b.f.
1,040 yards
Ending Inventory 1/31/2018 1,540 b.f.
2,040 yards
Variable manufacturing overhead is $7 per direct manufacturing labor-hour. There are also $81,000 in fixed manufacturing overhead costs budgeted for January 2018. Skulas combines both variable and fixed manu-facturing overhead into a single rate based on direct manufacturing labor-hours. Variable marketing costs are allocated at the rate of $250 per sales visit. The marketing plan calls for 38 sales visits during January 2018. Finally, there are $35,000 in fixed nonmanufacturing costs budgeted for January 2018. Other data include:
2017 Unit Price Wood Fiberglass Direct manufacturing labor
$32.00 per b.f. $ 8.00 per yard $28.00 per hour
2018 Unit Price
$34.00 per b.f. $ 9.00 per yard $29.00 per hour
The inventoriable unit cost for ending finished-goods inventory on December 31, 2017, is $374.80. Assume Skulas uses a FIFO inventory method for both direct materials and finished goods. Ignore work in process in your calculations. 1. Prepare the January 2018 revenues budget (in dollars). 2. Prepare the January 2018 production budget (in units). 3. Prepare the direct material usage and purchases budgets for January 2018. 4. Prepare a direct manufacturing labor costs budget for January 2018. 5. Prepare a manufacturing overhead costs budget for January 2018. 6. What is the budgeted manufacturing overhead rate for January 2018? 7. What is the budgeted manufacturing overhead cost per output unit in January 2018? 8. Calculate the cost of a snowboard manufactured in January 2018. 9. Prepare an ending inventory budget for both direct materials and finished goods for January 2.

In: Accounting

Cost of Quality and Value-Added/Non-Value-Added Reports for a Service Company Three Rivers Inc. provides cable TV...

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...

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...

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

you decide to save $2000 at the end of each year for the next 18 years...

you decide to save $2000 at the end of each year for the next 18 years if your savings earn an annual interest rate of 2% how much will you have saved up by the end of 18 years round to the nearest cent

In: Finance