Questions
project about automotive cruise control system

project about automotive cruise control system

In: Mechanical Engineering

Question #6. Independent cases: A. On January 1, Nets Company paid $48,000 for a new delivery...

Question #6. Independent cases:

A. On January 1, Nets Company paid $48,000 for a new delivery truck. It was estimated that the truck would be driven 100,000 miles during the next 5 years, at which time it would have a salvage value of $3,000. During the first and second years, the odometer registered 22,000 and 40,000 miles, respectively. Calculate the depreciation expense Nets Company needs to record at the end of year I & end of year 2. Nets Company uses the Units of Production method to account for depreciation. What is the book value of the truck at the end of 2nd year.

B. On Jan. 1, 2004, Cav Co., which uses straight-line depreciation, purchased equipment for $60,000 with a useful life of 7 years and $4,000 salvage value. On April 1, 2008, the equipment was sold for $30,000 cash. What gain or loss should Cav recognize as a result of this disposition? Indicate the impact of the disposition on the income statement & balance sheet.

C. On Nov. 1, 2005, GoodTaste Magazine received $36,000 of annual magazine subscriptions. On Dec. 31, 2005, the end of fiscal year, Management of GoodTaste decided to recognize the $36,000 as revenues for the year 2005. Do you agree with GoodTaste Management? Explain. How should GoodTaste Magazine report this in its financial statements as of Dec. 31, 2005?

In: Accounting

The Statistical Bulletin published by Metropolitan Life Insurance Co. reported that 2% of all American births...

The Statistical Bulletin published by Metropolitan Life Insurance Co. reported that 2% of all American births result in twins. If a random sample of 8000 births is taken, find the mean, variance, and standard deviation of the number of births that would result in twins

In: Statistics and Probability

Unix command lines. A) Assume that your current working directory is NOT the same as your...

Unix command lines.

A) Assume that your current working directory is NOT the same as your home directory. Print all file and subdirectory names of your home directory into a file named file2.

B) Copy the text from line 11 to line 20 of a given file input.txt and append the copied text at the end of the file output.txt. (Assume that the file input.txt contains more than 20 lines of text contents)

C) Count and display the total number of words in ALL files in the current working directory whose name end with “.txt”

D) Count the number of lines where the word “foo” appears in a given file bar.txt

In: Computer Science

South America Let Them Eat Rabbit Is Venezuelan President's Response to Food Shortages Philip Reeves, National...

South America

Let Them Eat Rabbit Is Venezuelan President's Response to Food Shortages

Philip Reeves, National Public Radio, 14 September 2017

Venezuelan President Nicolas Maduro has unveiled an unusual strategy to help ease the chronic food shortage faced by many of his nation's 30 million people — something he calls Plan Conejo, or "Plan Rabbit."

Maduro and his ministers are embarking on a somewhat surprising — and to many, alarming — campaign to convince Venezuelans to eat rabbits. They say rabbits will make an excellent source of protein for the large number of people who don't have regular access to red meat or chicken as the result of the country's economic collapse.

Maduro hopes the small mammal will counter the impact of what he calls a huge "economic war" waged against him by "imperialists" — notably the United States and his arch-enemy, President Donald Trump.

During a strikingly light-hearted televised discussion, a cheerful-looking Maduro told his cabinet on Tuesday that rabbits have the added advantage of, well, "breeding like rabbits."

The rabbit plan, however, has already run into a hole. While rabbit dishes are not uncommon elsewhere in the world, it's rarely found simmering away in Venezuelan kitchens. Rabbits in Venezuela are much more likely to feature as mascots for soccer teams or characters on birthday cards than as dinner.

Freddy Bernal, the Venezuelan government minister in charge of the plan, acknowledged during the meeting that there is a "cultural problem." His task is to change the widely held Venezuelan view that the bunny rabbit is a loveable friend — much like a kitten or a puppy — and has no place in the human digestive system.

And it's likely to be a difficult task. Bernal told his fellow ministers that during a pilot project for the rabbit plan, a batch of baby bunnies — to be used for breeding and, eventually, tossing into the cooking pot — were distributed to families in poor neighborhoods.

He said some people responded by tying bows around the rabbits' necks, giving them cute names, and even cuddling up with them in bed at night.

Reversing this pattern of behavior is part of the Venezuelan government's "battle to win the economic war," Bernal informed his colleagues. He's proposing a nationwide publicity campaign to convince Venezuelans that rabbits are actually "two and a half kilos of meat that is high in protein and without cholesterol," and not mascots or pets after all.

The amusement on display among Maduro and his ministers as they discussed the rabbit plan doesn't appear to be shared by many Venezuelans, who've faced serious struggles in recent months to afford — or even find — basic food items.

Contemptuous messages from Maduro's critics — some coupled with cartoons of a gloomy-looking Bugs Bunny — have flooded social media sites.

"Are you serious?" asked Henrique Capriles, one of the most prominent Venezuelan opposition leaders, in a video response to Maduro's plan, posted on social media. "You want people in this country to start raising rabbits to solve hunger in our country?"

The answer, it seems, is yes.

What economic decision always causes a shortage – any time, any place?

In: Economics

Create shell in C which meets requirements below: 1. The shell must support the following internal commands:

Create shell in C which meets the requirements below:
1. The shell must support the following internal commands:
i.
cd - Change the current default directory to
If the argument is not present, report the current directory. If the directory does not exist an appropriate error
should be reported. This command should also change the
PWD environment variable.
ii. clr - Clear the screen.
iii. dir - List the contents of directory.

iv.
environ - List all the environment strings.
v. echo - Display on the display followed by a newline (multiple spaces/tabs may be reduced to a single space).
vi. help - Display the user manual using the more filter.
vii. pause - Pause operation of the shell until 'Enter' is pressed.

viii.
quit - Quit the shell.
ix.
The shell environment should contain shell=/myshell where
/myshell is the full path for the shell executable (not a
the hardwired path back to your directory, but the one from which it was executed).

 

In: Computer Science

Ubuntu Linux HW5: text processing; scripting 1. Write a Linux command to rewrite the /var/passwd file...

Ubuntu Linux

HW5: text processing; scripting

1. Write a Linux command to rewrite the /var/passwd file to have a tab for each delimiter ':'. Hint: use tr

2. Write a Linux command to extract the user names and sort them. Hint: use cut

3. Write a for loop to to display a time table, e.g., 17 x 1 = 17; 17 x 2 = 34; etc., as follows:

17 x 1 = 17 17 x 2 = 34

17 x 3 = 51 17 x 4 = 68

17 x 5 = 85 17 x 6 = 102

17 x 7 = 119 17 x 8 = 136

17 x 9 = 153 17 x 10 = 170

17 x 11 = 187 17 x 12 = 204

17 x 13 = 221 17 x 14 = 238

17 x 15 = 255 17 x 16 = 272

17 x 17 = 289 4.

Write a Linux command to download the following webpage to the fail called "viral-diseases" Hint: use wget

5. Using a regular expression, write a Linux command to extract URL addresses from the viral-diseases. The URL starts with "www" and ending with "com" or "gov". Hint: use grep -E 6. Write a bash shell to

1) using a for loop to create the directory called "jyoon_0" to "jyoon_9";

2) change directory to each of the directories created,

3) write the sentence "Yoon visited in directory jyoon_0t" in the file jyoon_0.txt",

4) attach the timestamp to the file;

5) writhe the same sentence to the standard output device,

6) the timestamp too;

7) do this to all those 10 directories, and

8) at the end, write "All done" to the standard output device. So, the example standard output:

jyoon@MT-UBUN01:~$ ./hw5create.sh

Yoon visited jyoon_0 directory

Thu 09 Jul 2020 11:48:42 AM EDT

Yoon visited jyoon_1 directory

Thu 09 Jul 2020 11:48:42 AM EDT

Yoon visited jyoon_2 directory

Thu 09 Jul 2020 11:48:42 AM EDT

Yoon visited jyoon_3 directory

Thu 09 Jul 2020 11:48:42 AM EDT

Yoon visited jyoon_4 directory

Thu 09 Jul 2020 11:48:42 AM EDT

Yoon visited jyoon_5 directory

Thu 09 Jul 2020 11:48:42 AM EDT

Yoon visited jyoon_6 directory

Thu 09 Jul 2020 11:48:42 AM EDT

Yoon visited jyoon_7 directory

Thu 09 Jul 2020 11:48:42 AM EDT

Yoon visited jyoon_8 directory

Thu 09 Jul 2020 11:48:42 AM EDT

Yoon visited jyoon_9 directory

Thu 09 Jul 2020 11:48:42 AM EDT

All Created!

One of the directories has the following:

jyoon@MT-UBUN01:~$ cd jyoon_5

jyoon@MT-UBUN01:~/jyoon_5$ ls

jyoon_5.txt jyoon@MT-UBUN01:~/jyoon_5$ cat jyoon_5.txt

Yoon visited jyoon_5 directory

Thu 09 Jul 2020 11:48:42 AM EDT

jyoon@MT-UBUN01:~/jyoon_5$

Note that the directory name, file name and your name should be formed with your login ID, but not jyoon, which is not yours!

In: Computer Science

UNIX/LINUX SCRIPT: Create a named directory and verify that the directory is there by listing all...

UNIX/LINUX SCRIPT:

Create a named directory and verify that the directory is there by listing all its contents.

Write a shell script to validate password strength. Here are a few assumptions for the password string.  

Length – a minimum of 8 characters.

• Contain alphabets , numbers , and @ # $ % & * symbols.

• Include both the small and capital case letters.

give a prompt of Y or N to try another password and displays an error if anything other than an N or Y is entered.

-If the password doesn’t comply to any of the above conditions, then the script should report it as a “Weak Password” otherwise display a “Strong Password”

If the password is Strong then the strong password will be added to a separate file named password.txt

and lastly display their contents of the password file, then delete the file and the directory and verify both are deleted.

In: Computer Science

Write a program in c++ that maintains a telephone directory. The Telephone directory keeps records of...

Write a program in c++ that maintains a telephone directory. The Telephone directory keeps records of people’s names and the corresponding phone numbers.

The program should read a transaction file and report the result into an output file. The transaction file can include commands such as “Add”, “Delete”, “Display”, and “Update”, and “Search”. Each command is written in one line with a few other information.

The “Display” Command should simply display everyone in the directory on the screen

The “Add” command comes with 3 other information that includes “First Name”, “Last Name”, and “Phone Number”. You should only add this command if the phone number is unique and it is not assigned to any other person. Otherwise an error statement should be generated to indicate that “Duplicate phone number is not allowed”. If the addition of the record is successful, you need to report that in the output file as follows:

“First Name”, “Last Name”, “Phone Number” has been successfully added to the directory

If the addition fails, you should report that

“**** ERROR IN ADD **** “Phone Number” already exist in the directory

The “Delete” command comes with the “Phone Number” indicating that this record should be deleted from the directory. You should only delete the record if you can find the phone number. If you could remove the record from the directory, you should report:

“First Name”, “Last Name”, “Phone Number” has been successfully deleted from the directory

If the delete fails, you should report that

“**** ERROR IN DELETE **** “Phone Number” does exist in the directory

The “Update” command come with two values, “Phone Number” and “New Phone Number”. You program should first search for “Phone Number” and find out if such a phone number exist in the directory. If it does not find it, it should report:

“**** ERROR IN UPDATE **** The Phone Number does not exist in the directory

However, if it finds the phone number, there are two cases. If the “New Phone Number” already exists in the directory, it should report

“**** ERROR IN UPDATE **** The New Phone Number “New Phone Number” already exist in the directory.

If the “New Phone Number” does not exist in the directory, your program should replace the “Old Phone Number” with the “New Phone Number” and report

The Phone Number “Old Phone Number” is successfully updated to “New Phone Number”

There are two types of “Search” commands. One is done based on the last name and another is done based on the phone number. If it is done based on the last name, the search command can be as follows:

Search   BasedOnLastName “LastName”

In this case the search is done based on the last name. Your program should search for all records with that last name and report them on the screen. If the search fails your report should have the following format

“**** ERROR IN SEARCH **** No Record with the last name “Last Name” could be found”

If the search is done based on the phone number, the command should be

Search   BasedOnPhoneNumber “PhoneNumber”

In this case the search is done based on the Phone Number. Your program should search for the specific record with that phone number and if it finds it, it should report it

FirstName LastName PhoneNumber    is found

on the screen; otherwise, it should display

“**** ERROR IN SEARCH ****: No Record with the phone number “Phone Number” Exist

You are required to create a vector with class called PhoneRecords.

class PhoneRecords

{

Public:

string Fname;

string Lname;

string PhoneNumber;

};

Every time a record is added it should be added to vector. You can simply use the “push_back” operation to add it to the end of the vector. Use the following Transaction file to do run your work.

Add                 Joe                 Garcia            858-343-2009

Add                 Amelia           Perez             617-255-0987

Add                 Bob                 Haynes          858-765-1122

Add                 Tim                 Ducrest         760-877-1654        

Add                 Kevin              Garcia            760-543-5622

Add                 Suzy               Walter           858-190-2307

Add                 Fang               Yi                     619-677-1212

Add                 Robert           James            619-909-3476        

Add                 Mary               Palmer           760-435-2086

Delete            760-888-1237

Delete            760-877-1654

Add                 Kevin              Garcia            760-543-5622

Add                 Robert           James            619-909-3476

Search           BasedOnLastName                        Garcia

Search           BasedOnLastName                        Wong

Search           BasedOnPhoneNumber    760-977-2654

Search           BasedOnPhoneNumber    858-190-2307

Update          858-343-2119                     760-877-1654

Update          617-255-0987                     760-435-2086

Update          858-765-1122                     800-134-2765

Display

Your output file should look like as follows:

(Joe Garcia 858-343-2009) has been successfully added to the directory

(Amelia Perez 617-255-0987) has been successfully added to the directory

(Bob Haynes 858-765-1122) has been successfully added to the directory

(Tim Ducrest 760-877-1654) has been successfully added to the directory

(Kevin Garcia 760-543-5622) has been successfully added to the directory

(Suzy Walter 858-190-2307) has been successfully added to the directory

(Fang Yi 619-677-1212) has been successfully added to the directory

(Robert James 619-909-3476) has been successfully added to the directory

(Mary Palmer 760-435-2086) has been successfully added to the directory

**** ERROR IN DELETE **** “760-888-1237” does not exist in the directory

(Tim Ducrest 760-877-1654) has been successfully deleted from the directory

**** ERROR IN ADD **** “760-543-5622” already exist in the directory

Joe                   Garcia 858-343-2009

Kevin                Garcia 760-543-5622

**** ERROR IN SEARCH **** No Record with the last name “Wong” could be found

“**** ERROR IN SEARCH ****: No Record with the phone number “760-977-2654” Exist

(Suzy               Walter 858-190-2307) is found

**** ERROR IN UPDATE **** The Phone Number 858-343-2119 does exist in the directory

“**** ERROR IN UPDATE **** The New Phone Number “760-435-2086” already exist in the directory

The Phone Number “858-765-1122” is successfully updated to “800-134-2765”

Joe Garcia              858-343-2009

Amelia Perez           617-255-0987

Bob Haynes            800-134-2765

Kevin Garcia           760-543-5622

Suzy Walter            858-190-2307

Fang Yi                  619-677-1212

Robert James          619-909-3476

Mary Palmer           760-435-2086

Kevin Garcia           760-543-5622

Robert James          619-909-3476

Place the result into a file called “Output.txt”.

//-----------------------please use the following outline to complete program, show output at the end to make sure program works-----------------------------

#include

#include

#include

#include

using namespace std;

class phoneRecords

{

private:

string firstName;

string lastName;

string phoneNumber;

public:

phoneRecords();

{

firstName = lastName = phoneNumber = " ";

}

phoneRecords(string Fn, string Ln, string Phone);

{

firstName = Fn;

lastName = Ln;

phoneNumber = Phone;

}

};

class TelephoneDirectory

{

private:

ifstream fin;

vector phones;

bool success;

bool failure;

public:

TelephoneDirectory();

{

success = true;

failure = false;

};

bool AddAphone(string firstName,string lastName,string phoneNumber);

bool Remove(string phoneNumber);

bool Update(string oldPhone,string newPhone);

bool SearchBasedOnLastName(string lastName);

bool SearchBasedOnPhoneNumber(string phoneNumber);

bool DisplayRecords();

bool InvokeTransFile();

//--------------------------------------------------------------------

bool TelephoneDirectory::AddAphone(string firstName,string lastName,string phoneNumber)

{

bool status = SearchBasedOnPhoneNumber(phoneNumber);

if(status == false)

{

cout << **ERROR** << endl;

return false;

}

phoneRecords newPerson(Fn, Ln, Phone);

phones.push_back(newPerson);

return success;

}

//--------------------------------------------------------------------

bool TelephoneDirectory::Remove(string phoneNumber)

{

return success;

}

//--------------------------------------------------------------------

bool TelephoneDirectory::Update(string oldPhone,string newPhone)

{

return success;

}

//--------------------------------------------------------------------

bool TelephoneDirectory::SearchBasedOnLastName(string lastName)

{

return success;

}

//--------------------------------------------------------------------

bool TelephoneDirectory::SearchBasedOnPhoneNumber(string phoneNumber)

{

}

//--------------------------------------------------------------------

bool TelephoneDirectory::DisplayRecords()

{

return success;

}

//--------------------------------------------------------------------

bool TelephoneDirectory::InvokeTransFile()

{

return success;

}

//--------------------------------------------------------------------

int main()

{

TelephoneDirectory SanMarcosPhone;

SanMarcosPhone.InvokeTransFile();

return 0;

}

In: Computer Science

hi can u please give a answere for this question now Chad Funk is a hair...

hi can u please give a answere for this question now

Chad Funk is a hair stylist who opened a business selling hair products. He imports products from around the world and sells to salons in Canada.

Oct. 1 Purchased $5,200 of hair spray from Orbit Pro; terms 3/10, n/30, FOB shipping point. The appropriate party paid the shipping cost of $390.
      5 Sold shampoo costing $1,750 to Barber & Co. for a price of $2,500 with terms of 2/10, n/30, FOB shipping point. The appropriate party paid the shipping cost of $175.
        7 Returned $2,400 of inventory to Orbit Pro due to an error in the Oct. 1 order.
      10 Paid Orbit Pro for the purchase on October 1.
      14 Barber & Co. returned $480 of inventory from the sale on Oct. 5. The inventory had a cost of $336.
    22 Received the payment from Barber & Co. on the October 5 sale.
      23 Purchased $5,800 of hair conditioner from Keratin Hair; terms 2/10, n/30, FOB shipping point. The appropriate party paid the shipping cost of $1,250.
      25 Sold hair gel to Styling Room for an invoice price of $2,900, terms 2/10, n/30, FOB destination. The hair gel had a cost of $2,030. The appropriate party paid the shipping cost of $625.
      26 Paid for the purchase on October 23.
      31 Received the payment from Styling Room on the October 25 sale.

Required:
Record the journal entries for the month of October. (If no entry is required for a transaction/event, select "No journal entry required" in the first account field. Journal entry descriptions are provided already in the journal entry worksheet.)

In: Accounting