How would I get this java code to work and with a main class that would demo the rat class?
class rat {
private String name;
private String specialAbility;
private int TotalHealth;
private int shieldedHealth;
private int cooldown;
public rat()
{
}
public rat(String n,String SA,int TH,int SH,int cd)
{
name=n;
specialAbility=SA;
TotalHealth=TH;
shieldedHealth=SH;
cooldown=cd;
}
public void setname(String n)
{
name=n;
}
public String getname()
{
return name;
}
public void setability(String SA)
{
specialAbility=SA;
}
public String getability()
{
return specialAbility;
}
public void sethealth(int TH)
{
TotalHealth=TH;
}
public int gethealth()
{
return TotalHealth;
}
public void setsh(int SH)
{
shieldedHealth=SH;
}
public int getsh()
{
return shieldedHealth;
}
public void setcd(int cd)
{
cooldown=cd;
}
public int getcd()
{
return cooldown;
}
public String toString()
{
return name+" "+specialAbility+" "+TotalHealth+" "+shieldedHealth+" "+cooldown;
}
}In: Computer Science
The information that follows is for Nancy’s Name Tents for the year ended December 31, 2015 and
covers questions 26-31. All per unit costs below are based on the production and sale of 3,000 name tents.
The relevant range is from 0 - 3,500 units.
Sales $50 sales price per name tent
Costs:
Variable Costs Per Tent (3,000 name tents produced and sold)
Direct materials 8
Direct labor 7
Manufacturing overhead 8
Period Costs 5
Fixed Costs
Manufacturing overhead 10
Period Costs 5
1) If 10,000 tents are produced and sold, what is the product cost per tent?
2) If 15,000 tents are produced and sold, what is the product cost per tent?
3) If 2,000 tents are produced and sold, what is the product cost per tent?
4) What is the fixed cost per tent at 1,000 tents (including period costs) produced and sold?
5) What are total period costs at 1,000 name tents (produced and sold)?
In: Accounting
Use Kali Linux Commands to show me the following:
1. Who are you?
2. Change directory to Downloads
3. Make a new directory
4. Make a new text file under your name (Ghada.txt)
5. Write a paragraph about Cyber security (4 to 5 sentences)
>>simply open the file and write
inside it
6. Change the permission to be 764
7. Open the file but with a cyber security match
Show me each and every step with figure
b. Enter into Portswagger lab (Username enumeration via subtly
different responses)
https://portswigger.net/web-security/authentication/password-based/lab-username-enumerationvia-subtly-different-responses
Show me step-by-step how to use burp to get the username and
password. Name the username list
with your name ex. Ghada_usename.txt and
Ghada_password.txt
Use Seed Machine (the same SQL injection website)to conduct SQL
Injection such that:
1. Update Boby nickname to be your name (by Alice)
2. Update Boby password to be (your name as a password) (by
Alice).
In: Computer Science
This programming assignment involves learning about some common exceptions which occur in Java programs. Consider the following exception types:
NullPointerException
ArrayIndexOutOfBounds
Exception ClassCastException
IllegalArgumentException
Research what each exception type means and the conditions under which each occurs (thrown). Then write the following programs, one for each of the above-listed exception types:
A program which throws the exception (with a throw statement) and catches it displaying unique information about the exception. Name your programs <exception>Thrown.java
<exception> is the name of the exception involved for example NullPointerExceptionThrown.java.
A program which causes the exception to be thrown (not with a throw statement) and catches it displaying unique information about the exception (ex. Name of class and method causing the exception). For example, for the NullPointerException, have your program create a situation which would cause this exception to be thrown. Name your programs <exception>Catch.java <exception> is the name of the exception involved for example NullPointerExceptionCatch.java.
At the end you should have eight programs, four <exception>Thrown.java and four <exception>Catch.java. All files should be in the same directory.
In: Computer Science
Complete the following assignment in C programming language.
In: Computer Science
topic : Introduction to TCP/IP
1) The explanation of how data flows through the network?
2) Understanding of TCP/IP architecture and layers and comparison
with the OSI layers?
3) Understanding of the role of protocol analysis in network
management?
topic : Name Resolution on IP
Network
4) Fundamentals of name resolution protocols ?
5) How name resolution works in IPv4 networks, including the DNS
database structure, the DNS namespace, DNS database records, the
delegation of DNS authority, and the different types of DNS
servers, and explain how name servers work?
6) How name resolution works on IPv6 networks, including the use of
AAAA records,the use of source &destination address selection,
how rules are organized by the source and destination address
algorithms, & end-to-end address selection process?
topic : Transport Layer Protocols
7) Understanding of the differences between connectionless and
connection-oriented transport mechanisms?
8) Explain understanding of key features and functions of the User
Datagram Protocol (UDP) and the Transmission Control Protocol (TCP)
?
In: Computer Science
(To be written in Java code)
A personal phone directory contains room for first names and phone numbers for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list, display the corresponding phone number. If the name is not found in the list, prompt the user for a phone number, and add the new name and phone number to the list.
Continue to prompt the user for names until the user enters quit. After the arrays are full (containing 30 names), do not allow the user to add new entries.
Use the following names and phone numbers:
| Name | Phone # |
|---|---|
| Gina | (847) 341-0912 |
| Marcia | (847) 341-2392 |
| Rita | (847) 354-0654 |
| Jennifer | (414) 234-0912 |
| Fred | (414) 435-6567 |
| Neil | (608) 123-0904 |
| Judy | (608) 435-0434 |
| Arlene | (608) 123-0312 |
| LaWanda | (920) 787-9813 |
| Deepak | (930) 412-0991 |
This code was provided to start with:
import java.util.*;
class PhoneNumbers
{
public static void main (String[] args)
{
// write code here
}
}
In: Computer Science
Use JAVA to Design a simple registration system that allows Student to register in a course.
Requirements
In: Computer Science
Statement of Cash Flows (Direct Method)
The Wolff Company’s income statement and comparative balance sheets at December 31 of 2016 and 2015 are shown below:
| WOLFF COMPANY Income Statement For the Year Ended December 31, 2016 |
||
|---|---|---|
| Sales Revenue | $645,000 | |
| Cost of Goods Sold | $430,000 | |
| Wages Expense | 86,000 | |
| Insurance Expense | 12,000 | |
| Depreciation Expense | 13,000 | |
| Interest Expense | 12,000 | |
| Income Tax Expense | 29,000 | 582,000 |
| Net Income | $63,000 | |
| WOLFF COMPANY Balance Sheets |
||
|---|---|---|
| Dec. 31, 2016 | Dec. 31, 2015 | |
| Assets | ||
| Cash | $52,000 | $8,000 |
| Accounts Receivable | 41,000 | 32,000 |
| Inventory | 90,000 | 60,000 |
| Prepaid Insurance | 5,000 | 7,000 |
| Plant Assets | 219,000 | 195,000 |
| Accumulated Depreciation | (68,000) | (55,000) |
| Total Assets | $339,000 | $247,000 |
| Liabilities and Stockholders’ Equity | ||
| Accounts Payable | $7,000 | $10,000 |
| Wages Payable | 9,000 | 6,000 |
| Income Tax Payable | 6,000 | 7,000 |
| Bonds Payable | 141,000 | 75,000 |
| Common Stock | 90,000 | 90,000 |
| Retained Earnings | 86,000 | 59,000 |
| Total Liabilities and Stockholders’ Equity | $339,000 | $247,000 |
Cash dividends of $36,000 were declared and paid during 2016. Plant
assets were purchased for cash and bonds payable were issued for
cash. Bond interest is paid semi‑annually on June 30 and December
31. Accounts payable relate to merchandise purchases.
Required
a. Calculate the change in cash that occurred during 2016.
b. Prepare a statement of cash flows using the direct method.
c. Compute free cash flow.
d. Compute the operating‑cash‑flow‑to‑current‑liabilities
ratio.
e. Compute the operating‑cash‑flow‑to‑capital‑expenditures
ratio.
a. Change in Cash during 2016 $Answer AnswerIncreaseDecrease
b. Use a negative sign with cash outflow answers.
| WOLFF COMPANY Statement of Cash Flows For Year Ended December 31, 2016 |
||
|---|---|---|
| Cash Flow from Operating Activities | ||
| Cash Received from Customers | Answer | |
| Cash Paid for Merchandise Purchased | Answer | |
| Cash Paid to Employees | Answer | |
| Cash Paid for Insurance | Answer | |
| Cash Paid for Interest | Answer | |
| Cash Paid for Income Taxes | Answer | Answer |
| Cash Provided by Operating Activities | Answer | |
| Cash Flow from Investing Activities | ||
| Purchase of Plant Assets | Answer | |
| Cash Flow from Financing Activities | ||
| Issuance of Bonds Payable | Answer | |
| Payment of Dividends | Answer | |
| Cash Provided by Financing Activities | Answer | |
| Net Change in Cash | Answer | |
| Cash at Beginning of Year | Answer | |
| Cash at End of Year | Answer | |
c. Compute free cash flow $Answer
d. Compute the operating‑cash‑flow‑to‑current‑liabilities
ratio.
Round answer to two decimal places.
Answer
e. Compute the operating‑cash‑flow‑to‑capital‑expenditures
ratio.
Round answer to two decimal places.
Answer
In: Accounting
Statement of Cash Flows (Indirect Method) The Wolff Company’s income statement and comparative balance sheets at December 31 of 2016 and 2015 are shown below:
| WOLFF COMPANY Income Statement For the Year Ended December 31, 2016 |
||
|---|---|---|
| Sales Revenue | $645,000 | |
| Cost of Goods Sold | $430,000 | |
| Wages Expense | 86,000 | |
| Insurance Expense | 12,000 | |
| Depreciation Expense | 13,000 | |
| Interest Expense | 12,000 | |
| Income Tax Expense | 29,000 | 582,000 |
| Net Income | $63,000 | |
| WOLFF COMPANY Balance Sheets |
||
|---|---|---|
| Dec. 31, 2016 | Dec. 31, 2015 | |
| Assets | ||
| Cash | $52,000 | $8,000 |
| Accounts Receivable | 41,000 | 32,000 |
| Inventory | 90,000 | 60,000 |
| Prepaid Insurance | 5,000 | 7,000 |
| Plant Assets | 219,000 | 195,000 |
| Accumulated Depreciation | (68,000) | (55,000) |
| Total Assets | $339,000 | $247,000 |
| Liabilities and Stockholders’ Equity | ||
| Accounts Payable | $7,000 | $10,000 |
| Wages Payable | 9,000 | 6,000 |
| Income Tax Payable | 6,000 | 7,000 |
| Bonds Payable | 141,000 | 75,000 |
| Common Stock | 90,000 | 90,000 |
| Retained Earnings | 86,000 | 59,000 |
| Total Liabilities and Stockholders’ Equity | $339,000 | $247,000 |
Cash dividends of $36,000 were declared and paid during 2016. Plant
assets were purchased for cash and bonds payable were issued for
cash. Bond interest is paid semi‑annually on June 30 and December
31. Accounts payable relate to merchandise purchases.
Required
a. Calculate the change in cash that occurred during 2016.
b. Prepare a statement of cash flows using the indirect
method.
c. Compute free cash flow.
d. Compute the operating‑cash‑flow‑to‑current‑liabilities
ratio.
e. Compute the operating‑cash‑flow‑to‑capital‑expenditures
ratio.
a. Change in Cash during 2016 $Answer AnswerIncreaseDecrease
b. Use a negative sign with cash outflow answers.
| WOLFF COMPANY Statement of Cash Flows For Year Ended December 31, 2016 |
||
|---|---|---|
| Cash Flow from Operating Activities | ||
| Net Income | Answer | |
| Add (deduct) items to convert net income to cash basis | ||
| Depreciation | Answer | |
| Accounts Receivable | AnswerIncreaseDecrease | Answer |
| Inventory | AnswerIncreaseDecrease | Answer |
| Prepaid Insurance | AnswerIncreaseDecrease | Answer |
| Accounts Payable | AnswerIncreaseDecrease | Answer |
| Wages Payable | AnswerIncreaseDecrease | Answer |
| Income Tax Payable | AnswerIncreaseDecrease | Answer |
| Cash Flow Provided by Operating Activities | Answer | |
| Cash Flow from Investing Activities | ||
| Purchase of Plant Assets | Answer | |
| Cash Flow from Financing Activities | ||
| Issuance of Bonds Payable | Answer | |
| Payment of Dividends | Answer | |
| Cash Provided by Financing Activities | Answer | |
| Net Change in Cash | Answer | |
| Cash at Beginning of Year | Answer | |
| Cash at End of Year | Answer | |
c. Free cash flow $Answer
d. Operating-cash-flow-to-current-liabilities ratio.
Round answer to two decimal places.
Answer
e. Operating-cash-flow-to-capital-expenditures ratio.
Round answer to two decimal places.
Answer
In: Accounting