Complete the program below in order to make run properly by competing validName methods and add trycatch block in the main method.
public class ExceptionWithThrow {
public static String validName(String name) throws InputMismatchException{
// check here if the name is a valid name
// through InputMismatchException if invalid //throw
// return the name if it is valid
}
public static void main(String[] args) {
// Ask the user to enter a name and their validity through validName method
// Add try and catch block around appropriate statements
}
}
In Java Please!
In Java Please!
In Java Please!
In Java Please!
In Java Please!
In: Computer Science
In: Operations Management
There are two lights that blink at regular intervals. When each one blinks, it turns on and then immediately back off; they don’t toggle. They are both off at time t=0t=0. The first one blinks at t=p,2p,3p,…t=p,2p,3p,… seconds; the second one blinks at t=q,2q,3q,…t=q,2q,3q,… seconds. Once they start, they both keep blinking forever. It is very exciting to see them blink at the same time (on the same second). But your patience is going to run out eventually, in ss seconds. Will they blink at same time between t=1t=1 and t=st=s (inclusive)? Write a program that can answer this question, quick, before they start blinking again!
In: Computer Science
Thornton Medical Clinic has budgeted the following cash flows:
| January | February | March | |||||||
| Cash receipts | $ | 116,000 | $ | 122,000 | $ | 142,000 | |||
| Cash payments | |||||||||
| For inventory purchases | 98,000 | 80,000 | 93,000 | ||||||
| For S&A expenses | 39,000 | 40,000 | 35,000 | ||||||
Thornton Medical had a cash balance of $16,000 on January 1. The company desires to maintain a cash cushion of $9,000. Funds are assumed to be borrowed, in increments of $1,000, and repaid on the last day of each month; the interest rate is 2 percent per month. Repayments may be made in any amount available. Thornton pays its vendors on the last day of the month also. The company had a monthly $40,000 beginning balance in its line of credit liability account from this year’s quarterly results.
Required
Prepare a cash budget. (Round intermediate and final answers to the nearest whole dollar amounts. Any repayments/shortage should be indicated with a minus sign. )
In: Accounting
Explain what would be some of the monetary and non-monetary motivation for an Indonesian employee?
In: Operations Management
Organization Structure and Design.
Let's tie this into our current COVID-19 crisis and situation. What do you think of the many actions (or inactions) being taken by our government (national, state, and local). What have you seen pertaining to actions and comments by managers across the country (businesses, organizations, etc.), both national and more local?
In: Operations Management
Question 4
For a family day function at Wawasan Open University, the computer department is going to conduct quiz session to give prizes to the participants. They need the sample software to conduct this quiz session. The prototype software contains two sample questions.
First, display question 1. Give 30 seconds to answer the question, showing the countdown.
If answered correctly, move to question 2 else if time out or wrong answer, prompt other participants to try to answer with another 10 second before moving to next question. End the session.
language C
In: Computer Science
Question 2
Julia Tang has been a financial planner for ten years. She specializes in insurance planning. Sam Jones, Julia’s client, has learned some knowledge about insurance from his friends, and he considers that he understands this industry reasonably well. During their meeting, Sam made the following statements. Help Julia to correct her client’s misunderstanding.
|
(a) |
‘An insurance company is just a middleman. It collects premium and pays claims to insurance policyholders. No more and no less.’ |
|
|
(b) |
‘By law, I know that I need to buy auto insurance in Hong Kong. I suppose that I can lie about the conditions of my car and hence, I can pay a smaller premium.’ |
|
|
(c) |
‘I don’t understand why people buy whole life insurance. Why not simply buy the same dollar amount of term life insurance and invest the difference in a premium myself? Whole life insurance is not useful.’ |
|
|
(d) |
‘My health insurance has a two-month waiting period. It is just unfair. I don’t understand why the insurance company has a waiting period.’ |
In: Accounting
On January 1, 2016, Horton Inc. sells a machine for $23,200. The machine was originally purchased on January 1, 2014 for $40,200. The machine was estimated to have a useful life of 5 years and a residual value of $0. Horton uses straight-line depreciation. In recording this transaction:
a loss of $920 would be recorded.
a loss of $17,000 would be recorded.
a gain of $23,200 would be recorded.
a gain of $920 would be recorded.
Bobby Darling is the only employee of Atlantic Records, Inc. During the first week of January, Darling earned $3,000.00 and had federal and state income tax withholdings of $150.00 and $56.25, respectively. FICA taxes are 7.65 % on earnings up to $117,000. State and federal unemployment taxes for the period are $187.50 and $30.00, respectively.
|
What would be the amount of Darling’s payroll check for the first week of January? |
$2,770.50
$3,000.00
$2,564.25
$2,346.75
On October 1, 2015, Attra Inc. borrows $200,000 on a three-year note that requires the company to pay 6% interest on March 31 and September 30. On December 31, 2015, the adjusting entry to accrue interest on the note should debit:
Interest Expense and credit Interest Payable for $3,000.
Interest Expense and credit Interest Payable for $6,000.
Interest Expense and credit Cash for $6,000.
Interest Payable and credit Interest Expense for $3,000.
Zorn Inc. makes a sale for $480. The company is required to collect sales taxes amounting to 5%. What is the amount that will be credited to the Sales Tax Payable account?
$24
$23
$240
$25
Your company sells $42,000 of one-year, 15% bonds for an issue price of $40,000. The journal entry to record this transaction will include a credit to Bonds Payable in the amount of:
rev: 06_25_2016_QC_CS-54689
$40,000.
$42,000.
$46,300.
$48,300.
In: Finance
Communications and Stakeholder Management
1. Develop a communications management plan with a suitable communications matrix for the project.
2.Document the strategies that will be used to manage the identified stakeholders’ groups according to their power and interest in the project (see Power/Interest Grid /Matrix for Stakeholder Prioritization).
In: Operations Management
what constitutes ethical or unethical experiment in sociology? what safeguards should be in place to ensure experiments are ethical?
In: Psychology
Strategy Memo In this simulation, you are assigned the role of Senior Vice President for Marketing at Enhanced Analytics, Inc., a provider of marketing and consulting services, with headquarters in Austin, Texas. In this role, you report directly to the CEO of the company and are responsible for decision-making and marketing strategy. You oversee a department with 25 employees at the company. The CEO of the company has informed you at the weekly executive meeting that Premier Drinks of Sofia, Bulgaria - a key client of Enhanced Analytics, Inc. - has reported a drop-in sales, despite an expensive and carefully managed marketing campaign produced by your department. The management of Premier Drinks reports increased competition in the soft drink market in Bulgaria. Two companies - one from Poland and one from Germany - have recently established operations in the country. You were already aware of the trends in the local competitive environment from the periodic reports received from your campaign manager in Bulgaria. You have also studied the marketing efforts of some of your client's competitors and continue to believe that your campaign, particularly the promotional and pricing strategy adopted, is superior. The managers of Premier Drinks suspect that their local competitors have made payments to some of the local officials in exchange for an opportunity to sell their products in local government buildings and at sporting events, many of which have been off-limits to Premier Drinks. This lack of access has put a dent in the sales figures of Premier Drinks, and the company is now seeking guidance from Enhanced Analytics as to how to proceed. The executive team of Enhanced Analytics, led by the CEO, will be meeting to review options, next week. In your own words, prepare a report for the company's executives, containing the following sections (do not worry about being right or wrong; simply offer your perspective on the company’s situation and your recommendation):
1. Situation analysis - an overview of the client's business and the competitive landscape in the soft drink industry in Bulgaria (if you are unable to locate country-specific data, you may research the Eastern European market or the European Union, as a whole)
2. Problem Identification - in one or two paragraphs, clearly identify the problem faced by your client
3. Decision Options - an outline of 4 specific courses of action / decisions that your client can make to solve the problem. The purpose of this section is to get a clear overview of the options available to management. Because the company has limited resources, management will have to pick the best option
4. Decision - a clear recommendation, outlining which one of the 4 options is the best
5. Justification - a clear, concise justification of your decision from #4 Include outside research to support your ideas and recommendation. There is no page limit to this assignment. The assignment will be considered well-done if it contains all the required sections, if it is clearly written and your thoughts and ideas are supported by specific data and research.
In: Operations Management
Specifications
Sample Output (Your output should be similar to the text in the following box)
|
Welcome to my app EMPLOYEE DATA ENTRY Manager or Representative? (m/r): d Invalid selection. Continue? (y/n): y Manager or Representative? (m/r): m First Name: Frank Continue? (y/n): y Manager or Representative? (m/r): r First Name: John Continue? (y/n): n EMPLOYEE INFORMATION Thank you for using my app |
In: Computer Science
In thinking about modern movies, many of the main characters are on a quest for self-actualization and risk his or her life to achieve a higher-order goal. Please choose a recent movie that you believe fits this criterion and explain the process the main character goes through to reach self-actualization.
In: Psychology