Code an application program that keeps track of student information at your college: names, identification numbers, and grade point averages in a fully encapsulated (homogeneous) Sorted array-based data structure. When launched, the user will be asked to input the maximum size of the data set, the initial number of students, and the initial data set. Once this is complete, the user will be presented with the following menu: Enter: 1 to insert a new student’s information. 2 to fetch and output a student’s information. 3 to delete a student’s information. 4 to update a student’s information. 5 to output all the student information in sorted order, and 6 to exit the program. The program should perform an unlimited number of operations until the user enters a 6 to exit the program.
Just need some help
Data Structures and Algorithms Using Java. McAllister.
In: Computer Science
| Acme Company Balance Sheet As of January 5, 2019 (amounts in thousands) |
|||
|---|---|---|---|
| Cash | 9,000 | Accounts Payable | 1,200 |
| Accounts Receivable | 3,400 | Debt | 3,600 |
| Inventory | 5,100 | Other Liabilities | 2,100 |
| Property Plant & Equipment | 17,500 | Total Liabilities | 6,900 |
| Other Assets | 600 | Paid-In Capital | 5,900 |
| Retained Earnings | 22,800 | ||
| Total Equity | 28,700 | ||
| Total Assets | 35,600 | Total Liabilities & Equity | 35,600 |
Update the balance sheet above to reflect the transactions below, which occur on January 6, 2019
1. Borrow $55,000 from a bank
2. Buy $14,000 worth of manufacturing supplies on credit
3. Pay $7,000 owed to a supplier
4. Receive payment of $12,000 owed by a customer
What is the final amount in Cash?
In: Accounting
On December 31, year 0, your company bought a delivery truck for $45,000. The expected useful life is 4 years, with an expected salvage value of $15,000. On January 1, year 3, your company sold the asset. Provide the financial statement effects of the sale under the different sale prices below.
|
Sale price |
PP&E, Gross |
Accumulated Depreciation |
NI (pretax) |
CFO (ignore taxes) |
CFI |
|
$29,850 |
|||||
|
$30,000 |
|||||
|
$30,670 |
In: Accounting
Java Program
1. Write a program that asks the user: “Please enter a number (0 to exit)”. Your program shall accept integers from the user (positive or negative), however, if the user enters 0 then your program shall terminate immediately. After the loop is terminated, return the total sum of all the previous numbers the user entered.
a. What is considered to be the body of the loop?
b. What is considered the control variable?
c. What is considered to be the test?
d. What is considered to be the update?
e. How can you incorporate the sentinel component into the test?
f. How can you calculate the sum of all previous numbers?
g. Which kind of loop do you think is more convenient to use? And why?
h. Construct the loop based on the information you collected
In: Computer Science
You have conducted several interviews with department supervisors who oversee the acquisition/payment process. The following is a summary of your discussions. Use this narrative to prepare a system flowchart to depict Plume’s acquisition/payment system.
checks are issued by the cash disbursements department. When the
payment
authorization is received from accounts payable, the information is
entered and used to
update the accounts payable and cash disbursements master files. A
check is then
generated (with 1 copy). A copy of the check is filed with the
payment authorization by
date. The check is then forwarded to the Treasurer. Additionally, a
weekly cash
disbursements report is generated and is forwarded to the
controller department.
The Treasurer verifies the check information by looking up the
authorization
information in the accounts payable system. If the check
information is correct, the
treasurer signs the check and sends it to the vendor. If there are
any discrepancies, the
check is forwarded to the Controller.
In: Accounting
Using C++
In a separate header file:
Create a new type called "Patient" - you must use
a class.
Give your "Patient" type at least five (5) member elements of your
choosing, and at least one member function.
You should have member elements to hold patient name, and
visitReason (which can change), and other items of your
choosing.
In your cpp file:
Create at least one instance of Patient type (example:
CurrentPatient ).
Create a menu-driven program OF YOUR OWN DESIGN that runs record
keeping for the dentist office.
(Example: add new patient record, show patient records, update
patient records etc.)
Include File I/O options for saving and recalling patient
records.
In: Computer Science
JavaScript
Write a function named "reverse_kvs" that has a key-value store as a parameter and returns a new key-value store. Your function should add each key-value pair in the parameter to the new key-value store EXCEPT reversing the key and value. For example, if the key-value "extreme":45 were in the parameter then the returned key-value store should contain the key-value pair 45:"extreme".
Code:
function reverse_kvs(store) {
var reverse_store = {};
for (var key in store) {
if (store.hasOwnProperty(key)) {
reverse_store[store[key]] = key;
}
}
return reverse_store;
}
I need to have this code return an output other than an empty result. Does anyone know how to fix the code?
*** UPDATE: The code is not correct. It returns an empty result, such as this "{}"***
In: Computer Science
Using the following data, record the transactions under the
periodic method and then under the perpetual method. Calculate Cost
of Goods under the periodic method, and make the entry to record
cost of goods sold and update ending inventory. (You may find that
using T-Accounts is helpful).
Jan 1 - Beginning Inventory is $100,000
Jan 3 - Inventory is purchased with a retail value of $40,000,
terms 2/10, n/30
Jan 10 - Half of the inventory purchased on January 3 is
returned.
Jan 12 - The amount due from the January 3 purchased is paid.
Jan 15 - Inventory is purchased with a retail value of
$60,000
Jan 18 - Inventory costing $30,000 is sold for $60,000
Jan 30 - The amount due from the Jan 18 sale is received.
Jan 31 - Ending Inventory?
In: Finance
Exercise 4: Perform the following on the Account class and test it in the AccountArrayTest: In the AccountArrayTest class, add a static method called getAverageBalance (Account accounts[]) that returns the average balance of all accounts. Use the enhanced for loop. In the main method get and print the average accounts balance. Add an instance method called deposit() that takes a double amount as parameter and if it is positive it adds it to the current balance. If the amount is less than or equal to zero it does nothing. Add a static method called addInterest(Account accounts[]) that calculates the interest for each account in the accounts array (based on the interestRate value), and then deposits it into the relevant account in that array. (Hint: interest = interestRate * balance/100). Use the above methods to apply the addInterest() for all the accounts in your AccountArrayTest. Print the accountNo and balance after the update.
In: Computer Science
Vance Asbestos Removal Company removes potentially toxic asbestos insulation and related products from buildings. The company’s estimator has been involved in a long-simmering dispute with the on-site work supervisors. The on-site supervisors claim that the estimator does not adequately distinguish between routine work, such as removal of asbestos insulation around heating pipes in older homes, and non-routine work, such as removing asbestos-contaminated ceiling plaster in industrial buildings. The on-site supervisors believe that non-routine work is far more expensive than routine work and should bear higher customer charges. The estimator sums up his position in this way: “My job is to measure the area to be cleared of asbestos. As directed by top management, I simply multiply the square metres by $4,700 per thousand square metres to determine the bid price. Since our average cost is only $3,700 per thousand square metres, that leaves enough cushion to take care of the additional costs of non-routine work that shows up. Besides, it is difficult to know what is routine or not routine until you actually start tearing things apart.”
To shed light on this controversy, the company initiated an ABC study of all of its costs. Data from the ABC system follow:
| Activity Cost Pool | Activity Measure | Total Activity | |||||||||||||||||||||||||||||||||||||||||||||
| Removing asbestos | Thousands of square metres | 500,000 | m2 | ||||||||||||||||||||||||||||||||||||||||||||
| Estimating and job setup | Number of jobs | 210 | jobs* | ||||||||||||||||||||||||||||||||||||||||||||
| Working on
non-routine jobs
* The total number of jobs includes non-routine jobs as well as routine jobs. Non-routine jobs as well as routine jobs require estimating and setup work.
|
Number of non-routine jobs | 26 | non-routine jobs | ||||||||||||||||||||||||||||||||||||||||||||
| Other (costs of idle capacity and organization-sustaining costs) | Not applicable; these costs are not allocated to jobs. | ||||||||||||||||||||||||||||||||||||||||||||||
|
Distribution of Resource Consumption across Activity Cost Pools |
|||||||||||||||
|
Removing Asbestos |
Estimating and Job Setup |
Working on Non-routine Jobs | Other | Total | |||||||||||
| Wages and salaries | 40 | % | 10 | % | 35 | % | 15 | % | 100 | % | |||||
| Disposal fees | 75 | % | 0 | % | 25 | % | 0 | % | 100 | % | |||||
| Equipment depreciation | 45 | % | 0 | % | 40 | % | 15 | % | 100 | % | |||||
| On-site supplies | 50 | % | 15 | % | 25 | % | 10 | % | 100 | % | |||||
| Office expenses | 10 | % | 40 | % | 30 | % | 20 | % | 100 | % | |||||
| Licensing and insurance | 50 | % | 0 | % | 45 | % | 5 | % | 100 | % | |||||
|
1. Perform the first-stage allocation of costs to the activity cost pools. (Do not leave any empty spaces; input a 0 wherever it is required.) 2. Compute the activity rates for the activity cost pools. (Round your answers to 2 decimal places.) 3. Using the activity rates you have computed, determine the total cost and the average cost per thousand square metres of each of the following jobs according to the ABC system: a. A routine 2,000-square-metre asbestos removal job. (Round your answers to 2 decimal places.) b. A routine 4,000-square-metre asbestos removal job. (Round your answers to 2 decimal places.) c. A non-routine 2,000-square-metre asbestos removal job. (Round your answers to 2 decimal places.) |
|||||||||||||||
In: Accounting