in java
Design and implement a class called Dog that contains instance data that represents the dog’s name and age. Define the Dog constructor to accept and initialize instance data. Include getter and setter methods for the name and age. Include a method to compute and return the age of the dog in “person years” (seven times the dog’s age). Include a toString method that returns a one-line description of the dog. Create a Tester class called Kennel, whose main method instantiates and updates several Dog objects.
In: Computer Science
Delamont Transport Company (DTC) is evaluating the merits of leasing versus purchasing a truck with a 4-year life that costs $40,000 and falls into the MACRS 3-year class. If the firm borrows and buys the truck, the loan rate would be 10%, and the loan would be amortized over the truck's 4-year life, so the interest expense for taxes would decline over time. The loan payments would be made at the end of each year. The truck will be used for 4 years, at the end of which time it will be sold at an estimated residual value of $10,000. If DTC buys the truck, it would purchase a maintenance contract that costs $1,000 per year, payable at the end of each year. The lease terms, which include maintenance, call for a $10,000 lease payment (4 payments total) at the beginning of each year. DTC's tax rate is 40%. What is the net advantage to leasing? (Note: Assume MACRS rates for Years 1 to 4 are 0.3333, 0.4445, 0.1481, and 0.0741.)
In: Finance
The following information concerns production in the Baking Department for March. All direct materials are placed in process at the beginning of production.
| ACCOUNT Work in Process—Baking Department | ACCOUNT NO. | ||||||||
| Date | Item | Debit | Credit | Balance | |||||
| Debit | Credit | ||||||||
| Mar. | 1 | Bal., 5,100 units, 3/5 completed | 11,985 | ||||||
| 31 | Direct materials, 91,800 units | 174,420 | 186,405 | ||||||
| 31 | Direct labor | 47,650 | 234,055 | ||||||
| 31 | Factory overhead | 26,798 | 260,853 | ||||||
| 31 | Goods finished, 93,000 units | 250,947 | 9,906 | ||||||
| 31 | Bal. ? units, 4/5 completed | 9,906 | |||||||
a. Based on the above data, determine each cost listed below. Round "cost per equivalent unit" answers to the nearest cent.
| 1. Direct materials cost per equivalent unit. | $ |
| 2. Conversion cost per equivalent unit. | $ |
| 3. Cost of the beginning work in process completed during March. | $ |
| 4. Cost of units started and completed during March. | $ |
| 5. Cost of the ending work in process. | $ |
b. Assuming that the direct materials cost is
the same for February and March, did the conversion cost per
equivalent unit increase, decrease, or remain the same in
March?
Increase
In: Accounting
in java
Write a program that will print the following output
1 1 2 1 1 2 4 2 1 1 2 4 8 4 2 1 1 2 4 8 16 8 4 2 1 1 2 4 8 16 32 18 8 4 2 1
In: Computer Science
Describe the nature of the interactions in a solution with positive DSexcess , DS excess negative , DG positive excess DG , DG negative excess, excess DH greater than zero and excess DH less than zero excess.
In: Chemistry
Girl?
Jojo is looking for his love by sending messages to strangers on a dating application. Because he knows that many people are using fake profile photos, he found a way to find out the gender of the user by their user names. If the number of distinct characters in one’s user name is even, then she is a female, otherwise he is a male. Help him to find out their gender! '
Format Input:
The first line is an integer T representing the number of test cases. The next T lines each consist of a string S representing the user name in the dating application.
Format Output:
For each test case output “Case #X: ”, where X is the case number, followed by “Yay” if the user is a female, or “Ewwww” if the user is a male.
Constraints
• 1 ≤ T ≤ 100
• 1 ≤ |S| ≤ 105
• S only consist of lowercase letter.
Sample Input 1 (standard input):
1
abb
Sample Output 1 (standard output):
Case #1: Yay
Sample Input 2 (standard input):
2
abbc
za
Sample Output 2 (standard output):
Case #1: Ewwww
Case #2: Yay
Note:
On the first sample input, first test case, the user is female because there are 2 different letters namely “a” and “b”, so the output is “Yay”.
note : USE C language, integer must be the same as the constraint, DONT USE VOID, RECURSIVE(RETURN FUNCTION), RESULT, code it under int main (must be blank){
In: Computer Science
in java
Create a class called Customer in three steps: • (Step-1): • Add a constructor of the class Customer that takes the name and purchase amount of the customer as inputs. • Write getter methods getName and getPrice to return the name and price of the customer. You can write a toString() method which returns printed string of Customer name and its purchase. • (Step-2): Create a class called Restaurant. • Write a method addsale that takes customer name and purchase amount of the customer in the class restaurant and stores it into an array list. • Write a method nameBestCustomer that returns customer name who bought highest sale in the restaurant. • (Step-3): Write a tester class that prompts the user to enter name and purchase of the customers and display the name of the customer who bought highest sales in the restaurant.
In: Computer Science
In a detailed paragraph please write about behaviors that contribute to the prevalence of covid 19.
Please be as detailed as possible
IMPORTANT: If you are going to write please make sure your writing is neat, legible, and easy to read. Please write in print (not cursive). Thank you
In: Nursing
Identify power/influence tactics and their managerial applications, and explain the three types of conflict (task, process, relationship), the three loci of conflict (dyadic, intragroup and intergroup) and managerial implications for organizational behavior and performance.
In: Operations Management
Discuss the evidence regarding the role of self-esteem in academic achievement
In: Psychology
Prepare a short report that evaluates their “ETHICAL BUSINESS PRACTISE” of Hilton in terms of Sustainability.
400 words
Must include:
-description of the activities
- the assessment of these activities (using theory, concepts and approaches )
In: Operations Management
Discuss the importance of an organization’s mission, vision, values, and strategies.
In: Operations Management
In: Operations Management
A first-order decomposition reaction is observed to have the
following rate constants at the
indicated temperatures. Estimate the activation energy and the
frequency factor. Include
any important plots.
| T (K) | k (sec( − 1)) |
| 273 | 2.46x10^-3 |
| 293 | 4.51x10^-2 |
| 313 | 5.67x10^-1 |
From your results, calculate ∆S‡,
∆H‡, and ∆G‡ at each
temperature.
In: Chemistry
Calculate the magnitude of the electric field at the center of a square with sides 20.5 cm long if the corners, taken in rotation, have charges of 1.18 μC, 2.36 μC, 3.54 μC, and 4.72 μC (all positive).
In: Physics