Write a program which compresses a given string of 1s and 0s and uncompress the string that was compressed. Use the run-length compression technique which replaces runs of 0s with a count of how many 0s.
The interactive input/output should allow users to select and run required processes.
The assignment submission on Blackboard should be as CIS_232_Project_LastName.zip file and include:
project report file: ProjectReportLastName.doc
program’s source file: ProjectLastName.java
program’s bytecode file: ProjectLastName.class
and any other relevant files.
The project report should be prepared by using word processing software. To write a program you should complete and include in your assignment report the following steps:
Title:
Student’s name:
CIS 232 Introduction to Programming
Programming Project
Due Date: November 30, 2020
Instructor Dr. Lomako:
In: Computer Science
College Supply Company (CSC) makes three types of drinking glasses: short, medium, and tall. It presently applies overhead using a predetermined rate based on direct labor-hours. A group of company employees recommended that CSC switch to activity-based costing and identified the following activities, cost drivers, estimated costs, and estimated cost driver units for Year 5 for each activity center.
| Activity | Recommended Cost Driver |
Estimated Cost |
Estimated Cost Driver Units |
||||
| Setting up production | Number of production runs | $ | 22,400 | 80 | runs | ||
| Processing orders | Number of orders | 48,000 | 200 | orders | |||
| Handling materials | Pounds of materials | 14,000 | 7,000 | pounds | |||
| Using machines | Machine-hours | 60,000 | 10,000 | hours | |||
| Providing quality management | Number of inspections | 48,000 | 40 | inspections | |||
| Packing and shipping | Units shipped | 38,000 | 19,000 | units | |||
| $ | 230,400 | ||||||
In addition, management estimated 2,000 direct labor-hours for year 5.
Assume that the following cost driver volumes occurred in February, year 5.
| Short | Medium | Tall | |||||||
| Number of units produced | 1,100 | 500 | 400 | ||||||
| Direct materials costs | $ | 3,000 | $ | 2,500 | $ | 2,000 | |||
| Direct labor-hours | 90 | 110 | 110 | ||||||
| Number of orders | 8 | 7 | 5 | ||||||
| Number of production runs | 1 | 4 | 8 | ||||||
| Pounds of material | 400 | 900 | 200 | ||||||
| Machine-hours | 500 | 200 | 300 | ||||||
| Number of inspections | 3 | 1 | 2 | ||||||
| Units shipped | 1,100 | 500 | 300 | ||||||
Direct labor costs were $20 per hour.
Required:
a. Compute a predetermined overhead rate for
year 5 for each cost driver recommended by the employees. Also
compute a predetermined rate using direct labor-hours as the
allocation base.
b. Compute the production costs for each product
for February using direct labor-hours as the allocation base and
the predetermined rate computed in requirement
c. Compute the production costs for each product
for February using the cost drivers recommended by the employees
and the predetermined rates computed in requirement (Note:
Do not assume that total overhead applied to products in February
will be the same for activity-based costing as it was for the
labor-hour-based allocation.)
In: Accounting
We have seen in lectures that if 50 people are chosen at random then there is a 97% chance that at least two of them share the same birthday. Use similar calculations to answer the questions below. Assume that an ANU student is equally likely to have any one of 000 ... 999 as the last three digits of their ID number.
(a) What is the percentage chance that in a working group of five students at least two have the same last digit of their ID?
(b) What is the percentage chance that from a course with an
enrolment of 100 students at least two have the same last three
digits of their ID?
NB: If your calculator cannot handle the large numbers involved,
you could use WolframAlpha (www.wolframalpha.com) or some other
on-line tool.
(c) By experimenting using WolframAlpha, or otherwise, find the minimum number N for which there is a better than even chance that from N randomly chosen students at least two have the same last three digits of their ID. As a start, try N = 40.
In: Statistics and Probability
7.
[The following information applies to the questions
displayed below.]
Hans runs a sole proprietorship. Hans reported the following net
§1231 gains and losses since he began business: (Leave no
answer blank. Enter zero if applicable.)
|
Net §1231 |
|
|
Year |
Gains/(Losses) |
|
Year 1 |
$(73,500) |
|
Year 2 |
19,250 |
|
Year 3 |
0 |
|
Year 4 |
0 |
|
Year 5 |
13,400 |
|
Year 6 |
0 |
|
Year 7 (current year) |
54,250 |
a. What amount, if any, of the year 7 (current year) $54,250 net §1231 gain is treated as ordinary income?
|
Ordinary income |
? |
b. Assume that the $54,250 net §1231 gain occurs in year 6 instead of year 7. What amount of the gain would be treated as ordinary income in year 6?
|
Ordinary income |
? |
In: Accounting
7. Indri runs a soil testing business. He decides to form a company to take over the business. He is the sole shareholder and sole director. Indri sells his business to the company at an inflated price and lends the company $90,000 to help meet the cost of purchase. As security for the loan, Indri arranges a mortgage over a vacant block of land, which he transferred to the company as part of the business sale. In the first year of operation, the business makes a small profit (after paying both Indri and his daughter’s wages), but by the end of 2012 it is clear that the building industry is going through a major slump. Indri becomes desperate and works even harder. While working late into the night, Indri badly injures his hand and needs surgery. He is away from the business for 2 weeks. His efforts to keep the business afloat are in vain and the company is forced into liquidation. On realization of the assets, it is found that the company has approximately $95,000 to go towards meeting creditors’ claims of $210,000:
(i) If Indri is the only secured creditor, will he get his $90,000 back?
(ii)Can Indri claim workers’ compensation for the injuries to his hand and his time off work?
In: Finance
Imagine you have $2000 to invest. There are two companies' stocks that are available. Stock A is currently selling for $50 and will either go up to $75 or down to $40. Stock B is currently selling for $100 and will either go up to $130 or down to $80. Consider the following strategies
f. Short sell $1000 of corporation A and put all $3000 in corporation B.
What are your possible payoffs? What are your possible returns?
In: Finance
Write a C/C++ program that simulate a menu based binary number calculator. This calculate shall have the following three functionalities:
Covert a binary string to corresponding positive integers
Convert a positive integer to its binary representation
Add two binary numbers, both numbers are represented as a string of 0s and 1s
To reduce student work load, a start file CSCIProjOneHandout.cpp is given. In this file, the structure of the program has been established. The students only need to implement the following three functions:
int binary_to_decimal(string b);
// precondition: b is a string that consists of only 0s and 1s
// postcondition: the positive decimal integer that is represented by b
string decimal_to_binary(int n);
// precondition: n is a positive integer
// postcondition: n’s binary representation is returned as a string of 0s and 1s
string add_binaries(string b1, string b2);
// precondition: b1 and b2 are strings that consists of 0s and 1s, i.e. b1 and b2 are binary
// representations of two positive integers
// postcondition: the sum of b1 and b2 is returned. For instance, if b1 = “11”, b2 = “01”, // then the return value is “100”
In: Computer Science
The figure shows three rotating, uniform disks that are coupled by belts. One belt runs around the rims of disks A and C. Another belt runs around a central hub on disk A and the rim of disk B. The belts move smoothly without slippage on the rims and hub. Disk A has radius R; its hub has radius 0.439R; disk B has radius 0.240R; and disk C has radius 1.69R. Disks B and C have the same density (mass per unit volume) and thickness. What is the ratio of the magnitude of the angular momentum of disk C to that of disk B?
In: Physics
Titration without the PH meter: Calculate the molarity of your unknown, assuming it is monoprotic acid or monobasic base. Show all calculations for one titration with good precision including units and correct number of significant figures. Summarize only the results for the runs that you are using for the runs that you are using for your analyze concentration determination. Remember to account for any dilutions. Run 1 Run 2
Final burette reading (ml) 15.60 30.70
Initial (ml) 0.50 15.60
Volume added (ml) 15.10 15.10
Colour and intensity both light pink of end point
In: Chemistry
In: Statistics and Probability