Type: Critical location:
Type: Critical location:
First Type: Causes:
Second Type: Causes:
Thin pavements :
Thick pavements :
In: Civil Engineering
javaScript
html receives an entry of a character string in a text box, when a button is clicked, the count of vowels in the string stored in the textbox is displayed. The html file contains one function: vowelcount().
vowelcount(): returns the number of uppercase and lowercase English language vowel letter that occurs in the string entry in the textbox.
//html:
<!--
YOUR ID
YOUR NAME
-->
<html>
<head>
<script>
function vowelcount()
{
/* YOUR CODE HERE */
}
</script>
</head>
<body>
<input type="text" name="numbers" id="numbers">
<input type="button" name="button" value="click"
onclick="vowelcount();">
<p id="result"> </p>
</body>
</html>
In: Computer Science
Use the class definition below to answer the following questions. [Total 8 Marks]
public class TrafficLight {
String stopLight = "red";
String waitLight;
String goLight;
public void setStopLight(String colour) {
stopLight = colour; }
public String getGreenLight() {
return goLight; } }
1 :How many field attributes are there in the TrafficLight class?
2 :Name a field attribute for this class.
3 :What is the name of the method that is an accessor?
4 :What is the name of the method that is a mutator?
5 :What is the output type for the setStopLight method ?
6 :Write a Constructor for the TrafficLight class that sets stopLight value to “red”, waitLight to “yellow” and goLight to “green”?
In: Computer Science
(Q)Choose a DBMS that you’d like to use. Provide some evidences to show that you have some basic knowledge of the software. For instance, use the software to define a name and address database of your business associates, friends, classmates etc. You can use the following relation: (LAST NAME, FIRST NAME, SEX, ADDRESS, POSTCODE, CITY, PHONE). Enter at least five people in your data file. Print/screen shot a copy of the records. There should be no blank records. (20)
please mention which dbms that you used and please give detail explanation in the answer thank you.
In: Computer Science
Design a class named Person and its two subclasses named Student and Employee. Make Faculty and Staff subclasses of Employee. A person has a name, address, phone number, and e-mail address. A student has a class status (freshman, sophomore, junior, or senior). Define the status as a constant. An employee has an office, salary, and date hired. A faculty member has office hours and a rank. A staff member has a title. Override the toString method in each class to display the class name and the person’s name.
Write a test program that creates objects of Person, Student, Employee, Faculty, and Staff, and invoke their toString() methods.
In: Computer Science
Write a client program that writes a struct with a privateFIFO name (call it FIFO_XXXX, where XXXX is the pid that you got from the getpid( ) function) to the server. Have the server read the privateFIFO name and write a message back to the client. Read the message and print it on the client side. Take screenshots of the output from your client and server programs. Send the output to Blackboard. What I'm checking for on this homework is that the name got created in the client and passed correctly to the server and the server can respond to the client. Turn the background of your window white and increase the font size.
Write in C, Will be used on Putty.
Thank you.
In: Computer Science
***USING C++***
(a) Write a program that reads a text file in which each line in the file consists of a first name, a last name, following by 4 grades (double types) like Tim Hanes 78.3 98.0 80.5 72.3 The program must read every line of the text file, find the average of the 4 grades then print the names followed by the averages (one name per line) in a second file as well as on the monitor. Create the text file with at least 5 entries with the format given in part (a). Give the absolute path of the file in your computer. Test your program in part 2(a) on this file.
In: Computer Science
During 2016, Flint Corporation spent $171,360 in research and development costs. As a result, a new product called the New Age Piano was patented. The patent was obtained on October 1, 2016, and had a legal life of 20 years and a useful life of 10 years. Legal costs of $45,360 related to the patent were incurred as of October 1, 2016.
(1)Prepare all journal entries required in 2016 and 2017 as a result of the transactions above. (Credit account titles are automatically indented when amount is entered. Do not indent manually. If no entry is required, select "No Entry" for the account titles and enter 0 for the amounts.)
(2)On June 1, 2018, Flint spent $11,160 to successfully prosecute a patent infringement suit. As a result, the estimate of useful life was extended to 12 years from June 1, 2018. Prepare all journal entries required in 2018 and 2019. (Credit account titles are automatically indented when amount is entered. Do not indent manually. If no entry is required, select "No Entry" for the account titles and enter 0 for the amounts.)
(3)In 2020, Flint determined that a competitor’s product would make the New Age Piano obsolete and the patent worthless by December 31, 2021. Prepare all journal entries required in 2020 and 2021. (Credit account titles are automatically indented when amount is entered. Do not indent manually. If no entry is required, select "No Entry" for the account titles and enter 0 for the amounts.)
|
Account Titles and Explanation |
Debit |
Credit |
|---|---|---|
|
enter an account title |
enter a debit amount |
enter a credit amount |
|
enter an account title |
enter a debit amount |
enter a credit amount |
In: Accounting
The trial balance for a company that sells alarms, as of January 1, 2016 had the following balances:
Cash 74,000
Accounts receivable 13,000
Supplies 200
Prepaid rent 3,200
Merchandise inventory (24 @ $200; 1 @ $200) 5,000
Land 4000
Accounts payable 1,900
Unearned revenue 900
Salaries payable 1,000
Common stock 50,000
Retained earnings 47,000
The following transactions took place during 2016:
1. Paid the salaries payable from 2015.
2. Paid $4,800 on May 1, 2016, for one year's lease on the company van in advance.
3. Paid $7,200 on May 2,2016 for one year's office rent in advance.
4. Purchased $400 of supplies on account.
5. Purchased 100 alarm systems for $28,000 cash during the year.
6. Sold 102 alarm systems for $57,000. All sales were on account.
(Compute cost of goods sold using the FIFO cost flow method)
7. Paid $2,100 on accounts payable during the year.
8. Billed $52,000 of monitoring services for the year.
9. Paid installers and other employees a total of $25,000 cash for salaries.
10. Collected $89,000 of accounts receivable during the year.
11. Paid $3,600 of advertising expense during the year.
12. Paid $2,500 of utilities expense for the year.
13. Paid a dividend of $10,000 to the shareholders.
1. Prepare the trial balance as at Dec 31, 2016 for the company
2. Prepare the income statement and balance sheet for the company.
| Account |
Jan 1 Balance |
Dec 31 balance |
|||||
|
Cash |
|||||||
|
AR |
|||||||
|
Supplies |
|||||||
|
Prepaid Rent |
|||||||
|
Inventory |
|||||||
|
Land |
|||||||
|
AP |
|||||||
|
Unearned Revenue |
|||||||
|
Salaries Payable |
|||||||
|
Common Stock |
|||||||
|
Retained Earnings |
In: Accounting
The condensed financial statements of Sunland Company for the
years 2016 and 2017 are presented as follows. (Amounts in
thousands.)
|
SUNLAND COMPANY |
||||
|
2017 |
2016 |
|||
| Current assets | ||||
| Cash and cash equivalents |
$330 |
$360 |
||
| Accounts receivable (net) |
490 |
420 |
||
| Inventory |
660 |
590 |
||
| Prepaid expenses |
120 |
160 |
||
| Total current assets |
1,600 |
1,530 |
||
| Investments |
30 |
30 |
||
| Property, plant, and equipment (net) |
420 |
380 |
||
| Intangibles and other assets |
530 |
510 |
||
| Total assets |
$2,580 |
$2,450 |
||
| Current liabilities |
$920 |
$810 |
||
| Long-term liabilities |
610 |
580 |
||
| Stockholders’ equity—common |
1,050 |
1,060 |
||
| Total liabilities and stockholders’ equity |
$2,580 |
$2,450 |
||
|
SUNLAND COMPANY |
||||
|
2017 |
2016 |
|||
| Sales revenue |
$4,000 |
$3,660 |
||
| Costs and expenses | ||||
| Cost of goods sold |
975 |
910 |
||
| Selling & administrative expenses |
2,400 |
2,330 |
||
| Interest expense |
25 |
20 |
||
| Total costs and expenses |
3,400 |
3,260 |
||
| Income before income taxes |
600 |
400 |
||
| Income tax expense |
180 |
120 |
||
| Net income |
$ 420 |
$ 280 |
||
Compute the following ratios for 2017 and 2016. (Round
current ratio and inventory turnover to 2 decimal places, e.g. 1.83
and all other answers to 1 decimal place, e.g. 1.8 or
12.6%.)
| (a) | Current ratio. | |
| (b) | Inventory turnover. (Inventory on 12/31/15, was $420.) | |
| (c) | Profit margin. | |
| (d) | Return on assets. (Assets on 12/31/15, were $2,800.) | |
| (e) | Return on common stockholders’ equity. (Stockholders’ equity on 12/31/15, was $910.) | |
| (f) | Debt to assets ratio. | |
| (g) | Times interest earned. |
In: Accounting