repare a single compressed file in .zip format containing all the source files (.java files, NOT .class files) and the output file generated by running your code (i.e., testsOutput.txt) and submit it through Moodle. To be more precise, your submitted .zip file should contain the following files: PhoneCard.java, SuperNA10Card, Global10Card, Global25Card, SuperPhoneCardInc.java, CardTable.java, CallZone.java, and testsOutput.txt.
Note:
(1) Your assignment will be given a zero mark if only the compiled files (.class files) are submitted. No exceptions. Please make sure to submit the source files (.java files).
(2) Please make sure your code compiles under the command line (i.e., without an IDE). All Java classes should be put under the default package. Do not put any package statement at the beginning of your source file. If you are using an IDE, this is especially important because some IDEs put your code under a particular package for your project. Any code that does not compile under the command line can only receive 20/100. (See below for the marking scheme).
(3) Finish only the parts as indicated; do not attempt to change other parts of the code.
(4) Please pay attention to variable naming. JavaDoc comments are required for both the code you write and the code already provided.
(5) Please pay close attention to the formatting of the output. For example, when asked to print charged X.XX, make sure only two digits are printed after the decimal point. (Hint: Use DecimalFormat or System.out.printf().)
Details
SuperPhoneCard Inc. sells phone cards for making cheap long distance calls around the world. In this assignment, you will write a (much simplified) Java program to manage their business.
SuperPhoneCard Inc. sells 3 types of phone cards: SuperNA10 cards, which cost $10 and are good only for calls in Canada and the USA, Global10 cards, which cost $10 and are good for overseas calls, and Global25 cards, which cost $25 and are also good for overseas calls. The per minute rates for each type of card and call zone are as follows:
| SuperNA10 | Global10 | Global25 | |
| Canada | $0.05 | $0.07 | $0.05 |
| USA | $0.10 | $0.15 | $0.10 |
| Europe | XXXXX | $0.30 | $0.20 |
| Asia | XXXXX | $0.60 | $0.40 |
| Australia & NZ | XXXXX | $0.45 | $0.30 |
| Latin America | XXXXX | $0.45 | $0.30 |
| Africa | XXXXX | $0.60 | $0.40 |
The initial balance on the cards and the weekly maintenance fee are indicated below:
| SuperNA10 | Global10 | Global25 | |
| initial balance | $10.00 | $10.00 | $25.00 |
| weekly fee | $0.50 | $1.00 | $1.00 |
Your main job in this assignement is to implement a hierarchy of classes to represent the different types of cards. At the top of the hierarchy, there is an abstract class PhoneCard with the following API:
There are also 3 classes, SuperNA10Card, Global10Card, and Global25Card that inherit from PhoneCard, and model the properties of the associated type of card as specified above, by defining the PhoneCard class's abstract methods. These classes should use the supplied CallZone.java class to check if the strings representing the call zones are valid.
Once you have defined these classes, you should then complete the application that SuperPhoneCard Inc. will use to manage its business. This application is implemented by the SuperPhoneCardInc class, that reads and processes a number of commands from the standard input stream for processing cards and calls, outputing the results on the standard output stream. The commands are:
An incomplete definition for the SuperPhoneCardInc class is available here in SuperPhoneCardInc.java. You must fill out the missing parts of the definition, i.e. the code for handling the following commands:
The SuperPhoneCardInc uses another class CardTable to manage a table of PhoneCards. An incomplete definition for the CardTable class is available here in CardTable.java. You must also fill out the missing parts of the definition of CardTable, i.e. the public PhoneCard get(long no) method that returns the first phone card in the table whose number matches the argument, or null if there is no card with this number.
Make sure your code compiles and runs under Java SE Development Kit 8 or above. Once you have implemented and thoroughly tested all of these classes, run your application on the test data file testsInput.txt and save your output in the file testsOutput.txt. You can do this by redirecting the standard input stream and standard output stream with the command:
java -ea SuperPhoneCardInc < testsInput.txt > testsOutput.txt
Then submit a zipped archive with all your source code files (containing PhoneCard.java, SuperNA10Card, Global10Card, Global25Card, SuperPhoneCardInc.java, CardTable.java, and CallZone.java) and testsOutput.txt by the deadline as specified above. The test output file corresponding to the given testsInput.txt is here. Note that we are going to use a different input file to test your program.
In: Computer Science
After several months of negotiations, the CEO of BIG
Pty Ltd made the long-awaited announcement to board members that
BIG Pty Ltd would be buying Melbourne based company, YAY Pty Ltd
for $25m. The following persons were present at the meeting: Helen
and Liam (Company Directors) and Tammy (Receptionist taking meeting
minutes). News of the take-over would not be released to the public
until the following week.
(a) Assume Helen owns 50,000 shares in YAY Pty Ltd . Discuss
whether she would be breaching any duties if she makes a secret
profit of $500,000 from the takeover. What can Helen do to avoid
breaching any duties?
answer structure
Issue: Whether Helen would breach any duties…
Rule: According to Hospital Products Ltd v US Surgical Corp…
Furthermore: According to Aberdeen Railway Co v Blaikie Bros…
Analyze: Here, the facts tell us…
Conclusion: Clear that Helen would be breaching Duty __
… (remember to also mention what she can do to avoid the
breach)
In: Accounting
Accounting Ethics:
A health insurance company sold insurance policies that allow policyholders to obtain services from selected hospitals. The policies fully disclosed the names of these hospitals. However, the insurance company did not mention that the hospitals did not have the capability to perform certain costly procedures, such as heart bypass operations. As a result, if a policyholder one day developed a severe heart blockage, the patient would not have insurance coverage to pay for such a heart bypass procedure. If the insurance company, to save money, deliberately selected hospitals that lack the capability of performing heart bypass operations, was its disclosure of the names of the hospitals available to patients adequate? If the insurance company did not deliberately select hospitals that lack the capability of performing heart bypass operations, but it knew that these hospitals were smaller regional hospitals that were likely to lack certain advanced capabilities, was its disclosure of the names of the hospitals available to patients adequate? If the insurance company deliberated selected low-cost hospitals that lack certain capabilities and passed these reduced costs along to policyholders, did the insurance companies act unethically?
In: Accounting
Prepare journal entries for a local government to record the following transactions, first for fund financial statements and then for government-wide financial statements.
a. The government sells $1,064,000 in bonds at face value to finance construction of a warehouse.
b. A $1.22 million contract is signed for construction of the warehouse. The commitment is required if allowed.
c. A $222,000 transfer of unrestricted funds was made for the eventual payment of the debt in (a).
d. Equipment for the fire department is received with a cost of $18,905. When it was ordered, an anticipated cost of $18,200 had been recorded.
e. Supplies to be used in the schools are bought for $4,550 cash. The consumption method is used.
f. A state grant of $93,500 is awarded to supplement police salaries. The money will be paid to reimburse the government after the supplement payments have been made to the police officers.
g. Property tax assessments are mailed to citizens of the government. The total assessment is $602,000, although officials anticipate that 5 percent will never be collected. There is an enforceable legal claim for this money and the government can use it immediately.
Also, mention the type of fund activity it is in front of the journal.
In: Accounting
Prepare journal entries for a local government to record the following transactions, first for fund financial statements and then for government-wide financial statements.
a. The government sells $1,064,000 in bonds at face value to finance construction of a warehouse.
b. A $1.22 million contract is signed for construction of the warehouse. The commitment is required if allowed.
c. A $222,000 transfer of unrestricted funds was made for the eventual payment of the debt in (a).
d. Equipment for the fire department is received with a cost of $18,905. When it was ordered, an anticipated cost of $18,200 had been recorded.
e. Supplies to be used in the schools are bought for $4,550 cash. The consumption method is used.
f. A state grant of $93,500 is awarded to supplement police salaries. The money will be paid to reimburse the government after the supplement payments have been made to the police officers.
g. Property tax assessments are mailed to citizens of the government. The total assessment is $602,000, although officials anticipate that 5 percent will never be collected. There is an enforceable legal claim for this money and the government can use it immediately.
Also, mention the type of fund activity it is in front of the journal.
In: Accounting
The average life of a certain type of small motor was estimated to be 10 years with a standard deviation of 2 years. The manufacturer of the motor wants to issue a policy that will replace all motors that fail while under guarantee free of cost. If the company has budget to replace only 3% of all the motors that fail, how long a guarantee (in years) should they offer? You may assume that the lives of the motors are normally distributed.
Please show all the steps leading to the final solution for full credit. For this reason, it may be easier to work out problems by hand on paper. The choice is yours.
A sketch of the normal distribution curve with corresponding x or z score values is required for each part of each problem for full credit. You must shade the required area/ probability that needs to be computed for each problem. You must mention the Z table you are using (Full or Half). You will use Python to compute the required probabilities using the scipy package. Your programs should clearly print out the required solutions
In: Statistics and Probability
Brief Reflection of the movie "Om Shanti Om"
Describe your experience watching the film and your initial thoughts about and feelings towards the film. Did it remind you of other films or experiences watching films (produced in Bollywood or Hollywood), and did you like the film? In this reflection, share how much previous exposure you have had to Bollywood films and mention if you had previous conceptions of Bollywood or Indian cinema before watching the film. Share how or if your conceptions about Bollywood were challenged or confirmed after watching Om Shanti Om. If you have previous experience watching Bollywood or Indian cinema, share how or if your experience watching Om Shanti Om may have differed from your experience watching other Bollywood cinema. What do you think Om Shanti Om is suggesting about the nature of Bollywood cinema as a national cinema of India? How does it use what these authors call “self-reference” to make this argument about Bollywood?
In: Psychology
Mary and Tony have owned a bookshop in Ryde for many years and
their business has been very
successful. In January 2020, they were approached by a major
competitor to buy the business. Mary and
Tony carry on the bookshop business as partners and also own
adjacent premises that are used mainly
as a warehouse for their trading stock. The potential purchaser is
only willing to buy the bookshop, and
not the adjacent premises because it already has adequate storage
space.
Mary and Tony are quite excited about the offer as this will allow
them to have a bit of a break after
working long hours running the business. They are unsure whether
there will be any GST consequences
from selling the business.
(1) Explain the GST consequences arising from the sale of the
business.
(2) What steps could be taken by the parties to reduce the GST
consequences?
In sec 38-325 you need to supply everything necessary to carry on a business. mention all the condition of that section and how it has meet those criteria there are 5 conditions not just two, and HOW GST consequences can be different in question 2
In: Accounting
The timing of adjusting entries can alter the analysis of a company. As the full-charge bookkeeper, it is your job to ensure that the adjusting entries are entered on a timely basis. You have noticed that the adjusting entry to transfer the current year’s portion from mortgage payable – long term to mortgage payable – current has not been entered. You mention it to your controller and are told not to record this adjusting entry. The company is applying for a loan from the bank and the controller found out that the loan officer looks only at the current assets and current liabilities. You are further told that if anyone questions the lack of the adjusting entry to apologize for the error and record it immediately. Is this ethical for you and the company’s controller? Provide justification for your decision. Additionally, please incorporate some of the following questions by Professor Lemoine.
Professor's Discussion Points
Beyond the ethical questions, might this raise additional problems? Why or why not?
From a balance sheet perspective, what might be "off" as a result of not recording this entry?
What financial ratios (please cite) may be incorrect as a result of not recording the entry?
In: Accounting
Sally works as a manager in the gardening section of her local Bunnings Store. Recently, Sally was approached by a customer asking questions about the store’s range of built in kitchens. Although she knew nothing about the products, Sally recommended the deluxe kitchen package which came with free installation. After completing the sale, Sally handed the customer her Bunnings business card (which identified her as a manager), explained that the customer should get his new kitchen professionally installed and to forward her the 3rd party’s invoice – which Bunnings would pay. A few weeks later, the customer is shocked to learn that Bunnings is refusing to pay his carpenter’s $10,000 invoice and that Sally failed to mention that the offer was capped at $500.
Required:
(a) With reference to Pacific Carriers v Paribas, what is the test for deciding if an agent had apparent authority?
(b) Analyse whether Sally had apparent authority to bind Bunnings Pty Ltd to this $10,000 contract.
(c) How would your answer be different if the customer knew that Sally didn’t have permission to authorise this transaction
In: Accounting