Bash Script
Write a script using while-do-done loop to convert the kilometers to miles.
- Ask the user to input the number of kilometers they need to travel.
- Display the number of equivalent miles for the number. Use formula, Kilometers = miles/0.62137
- Every time the loop runs, it should ask the user if they want to continue, if user enters “Y” or “y”, then the loop runs again, if user enters “N” or “n”, then stop the loop and print “Thank you for using this application”.
- If the user enters any other character, then display/print “Invalid entry” and break the loop.
In: Computer Science
Jason takes off across level water on his jet ski. The combined mass of Jason and the ski is 80.0Kg. The ski has a thrust of 250.0N and a coefficient of kinetic friction with the water of 0.100. If Jason forgot to check his gas tank and runs out of fuel in 90.0s : a) what is his acceleration during the first 90 sec? b) what is his maximum speed? c) how far did he travel before he ran out of fuel? d) What is his acceleration after he runs out of fuel?
In: Physics
a) A loan of $5,000 is to be repaid in equal monthly payments
over the next 2 years.
Determine the payment amount if interest is charged at a nominal
annual rate of
15% compounded semiannually.
b) Net receipts from a continuously producing oil well add up to
$120,000 over 1 year.
What is the present amount of the well if it maintains steady
output until it runs dry in
8 years if r = 10% compounded continuously?
In: Finance
BUSINESS LAW
EMPLOYMENT LAW
8. Now, name 4 things that the IRS requires that employers do.
9. What is the purpose for unemployment laws, and who pays unemployment tax? What happens when the state unemployment insurance fund runs out of money?
10. What is the purpose for workers compensation laws? What happens to an employer who does not have workers comp insurance when an employee is hurt at work?
In: Operations Management
| Month | ||||||
| 1 | 37 | |||||
| 2 | 44 | |||||
| 3 | 35 | |||||
| 4 | 50 | |||||
| 5 | 34 | |||||
| 6 | 30 | |||||
| 7 | 50 | |||||
| 8 | 29 | |||||
| 9 | 36 | |||||
| 10 | 35 | |||||
| 11 | 41 | |||||
| 12 | 45 |
a. Show the naive forecast, an exponential smoothing forecasts using α = 0.2, and a 3-month moving average forecast.
b. Compare the MFE, MSE, and MAPE on the models
c. Make a conclusion on which model to use.
d. Find the alpha (smoothing constant) that minimizes the MSE.
In: Statistics and Probability
*****************PLEASE GIVE THE CODE IN RACKET PROGRAMMING ONLY AND MAKE SURE THE CODE RUNS ON WESCHEME IDE***************
Write a recursive Racket function "sum-diff" that takes two lists of integers that are the same length and evaluates to an integer. The resulting integer should be the sum of the absolute value of the differences between each pair of integers with the same index in the two lists. For example (sum-diff '(-1 -2 -3) '(1 2 3)) should evaluate to 12 because the absolute value of the differences between (-1 and 1), (-2 and 2) and (-3 and 3) are 2, 4, and 6, and 2+4+6=12. Note: (abs n) evaluates to the absolute value of n. Also, if the lists are empty the sum should be 0
In: Computer Science
In: Economics
There is a population of people: one-sixth of the people have seen 1 movie in the last year. One-sixth of the people have seen 6 movies in the last year. One-sixth of the people have seen 7 movies in the last year. Two-sixths (one-third) of the people have seen 9 movies in the last year. And one-sixth of the people have seen 10 movies in the last year. If a sample of 225 people is picked, what is the probability that the sample mean will be smaller than 7.5?
In: Statistics and Probability
IN JAVA pls
Standard telephone keypads contain the digits zero through nine.
The numbers two through
nine each have 3~4 letters (case insensitive) associated with them.
Many people find it
difficult to memorize phone numbers, so they use the correspondence
between digits and
letters to develop seven-letter words that correspond to their
phone numbers. For example, a
person whose telephone number is 686-2377 might remember it as
"NUMBERS."
Digit Letters
2 A B C
3 D E F
4 G H I
5 J K L
6 M N O
7 P Q R S
8 T U V
9 W X Y Z
2. Each seven-letter word corresponds to exactly one seven-digit
telephone number, but a
seven-digit number corresponds to many seven-letter strings, most
of which are not words.
3. In this project you will develop a program which will find all
the corresponding English
words given any specific telephone number. Here are the detailed
requirements:
a. create a static void test() method.
b. The test method will first ask the user to type in through
keyboard a 7-digit telephone
number.
c. If the number typed in by the user is not 7 digits or the number
contains some number
of the digit ‘0’ or ‘1’, then your program reports an error and
asks to type in another
number.
d. If the number typed in by the user is a 7-digit telephone number
made up of the digits
‘2’ through ‘9’, then your program will print out all the English
words corresponding
to the telephone number (and the total number of them), using the
given English
word library in the EnglishWordList.txt”.
EnglishWordList.txt contains the following words
abalone
abandon
abasers
abashes
ablates
caffein
In: Computer Science
1) The set of instructions that tells a computer what to do is called a ______________? 2) A program design tool used to list the attributes and methods of objects within an object-oriented program is called _______________. 3) Of the programming languages discussed in the textbook, which language is used to create web applications (called applets) that can be inserted into web pages? 4) If a programmer makes a spelling mistake or violates the rules of the programming language the program will not run. This is called a __________ error. 5) When a program runs but provides the wrong output, the programmer has committed a __________ error. 6) The software program that converts programming language code into binary code that can be read by the CPU is called a ________________. 7) With regards to computer programming, what is a variable? 8) Software companies often provide its finished programs to other companies for free with the understanding that the other companies will use the program and report back to the software company any errors found in the program. This is called ___________ testing. 9) The five steps performed by programmers to analyze, design, code, debug, and maintain a program is called the _________________________________________. 10) There are primarily two categories of programming languages: structured languages that were popular from the 1950’s through the 1980s, and ________________ languages that are most commonly used today.
In: Computer Science