give an example of an algorithm in c++ that can be used to avoid car collision using four infra red sensors

Answers

Answer 1

Answer:

Since entering the 21st century, the number of vehicles has increased exponentially, and the number of vehicles and drivers has further increased [1]. How to reduce the number of traffic accident deaths and economic losses has become an important issue in the context of such a large number of vehicles [2].

In recent years, some research studies have been made on the collision warning algorithm. The existing collision warning algorithms are mainly divided into two categories, namely, the Safety Time Algorithm and the Safety Distance Algorithm [3]. The safety time logic algorithm compares the collision time between the two workshops with the safety time threshold to determine the safety status. The safety time algorithm mainly uses Time to Collision (TTC) as the research object [4]. The safety distance model refers to the minimum distance between the vehicle and the obstacle, which is also the distance the vehicle needs to maintain to avoid the collision with the obstacle under the current conditions of the vehicle [5].

Explanation:


Related Questions

Gigantic Life Insurance has 4,000 users spread over five locations in North America. They have hired you as a consultant to provide a
solution for standardizing Windows 10 configuration. There is a mix of desktop computers and tablets running Windows 10. The computer
and tablets come from a variety of vendors because Gigantic Life Insurance allows agents to purchase their own computers. How do you
recommend they standardize their Windows 10 installations?

Answers

First of all, when buying a set of Windows 10 operating system, It needs to buy Windows Server 2016 version as well in order to centrally connected to the Windows server machine. So coming to the edition of the Windows 10 version, we need to buy Windows 10 Enterprise edition for your infrastructure. So, the configuration can be like for each computer machine you must use 8 GB of memory and 500 GB of storage. For tablet, it can choose 4 GB memory and 32 GB ROM. Windows tablet comes with already installed OS. But for installation of Windows enterprise client OS, it needs to choose network mode of installation.

What is windows?

A window is a separate viewing area on a computer display screen in a system that allows multiple viewing areas as part of a graphical user interface (GUI). Windows are managed by a windows' manager as part of a windowing system. A window can usually be resized by the user.

Learn more about window's here,

https://brainly.com/question/26388929

#SPJ1

ANSWER QUICKLY!!!

Ed has taken up a freelancing project to build a website. The website should be easy to navigate and lighter to load. He has brilliant HTML and
CSS coding skills. However, he doesn't have enough time to build the website from scratch. What can he do to create a relatively light website in
a short span of time?

Answers

In the above scenario, he create a relatively light website in a short span of time by using option A.

What is a website?

A website is known to be a composition of web pages and similar or linked content that is known by a common domain name and it is one that is often published on web server.

Note that In the above scenario, he create a relatively light website in a short span of time by using option A as it is the right choice to make.

Learn more about website from

https://brainly.com/question/13171394

#SPJ1

Maria set a SMART goal for her chocolate business: “Increase online sales by 50% by the end of 6 months”. What would be a good KPI for her to use to evaluate if she is reaching this goal?

0 / 1 point

Answers

Key  Performance Indicators helps the maria to set the goals as it qualify and measure the performance of her chocolate business. Revenue growth, Profit margin and Customer satisfaction are the factors from which Maria can evaluate the growth of her business.

How is KPI measured?

KPIs are performance indicators which are used to analyze a company's effectiveness. KPIs might be either quantitative or qualitative.

Indicators like sales revenue per employee, number of customers handled by each call center representative, and revenue are examples of quantitative KPIs.

Thus,  Revenue growth, Profit margin and Customer satisfaction are the factors

For more information about Key  Performance Indicator, click here:

https://brainly.com/question/13278475

#SPJ1

What will be the output of the following code snippet?

Answers

Answer:

D

Explanation:

Its gonna be of the class integer.

Consumers affect which goods and services are produced because they _____.

name the goods and services produced
choose which goods and services to buy
select the capital goods used for production

Answers

Answer:

Choice B, "choose which goods and services to buy"

Explanation:

Consumers choose which goods and services to buy. Companies only want to provide goods and services they know will be bought. Therefore, consumers affect which goods and services are produced because they choose which goods and services to buy.

I need help including my other one I posted

Answers

Answer:

2. I like the form of it, I like the porportion of it.

3. I dont know what a purpose of this maybe it a person wearing a tuexdo stepping out of his house or something.

4. Another thing that would work well is texture.

Company ABC would like to select the topology that has the most reliability for data reaching its destination. Which topology should they choose?
bus
full mesh
partial mesh
ring

Answers

Full mesh because it is the answer and I been reading up in it

This program will output a right triangle based on user specified height triangle_height and symbol triangle_char.
(1) The given program outputs a fixed-height triangle using a * character. Modify the given program to output a right triangle that instead
uses the user-specified triangle_char character. (1 pt)(2) Modify the program to use a loop to output a right triangle of height triangle_ height. The first line will have one user-specified character.
such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches
triangle_height. Output a space after each user-specified character, including a line's last user-specified character. (2 pts)

Answers

The program illustrates the use of loops;

Loops are program statements that are used to perform repetitions

The program in Python

The python program where comments are used to explain each line of the program is as follows:

#This gets input for the triangle height

triangle_height = int(input())

#This gets input for the triangle character

triangle_char = input()

#This iterates through the triangle height

for i in range(triangle_height+1):

   #This iterates through each row

   for i in range(0,i):

       #This prints each character

       print(triangle_char,end='')

   #This prints a new line

   print()

Read more about python programs at:

https://brainly.com/question/26497128

#SPJ1

Characteristics of VR headsets​

Answers

Answer Believable Virtual Word. The believable virtual world is a key characteristic of Virtual Reality. ...
Immersive. ...
Feedback. ...
Interactive. ...
Virtual Reality Headset. ...
Computing Device (Commuter / Smart Phone) ...
Virtual Reality Input and Output Devices. ...
Fully Immersive Virtual Reality.

Question 2 of 25
How could a video's file size be reduced so that it will take up less space on a
computer's hard drive?
A. By shooting it at a lower resolution
B. By shooting it at a higher resolution
C. By shooting it at a higher frame rate
D. By sampling the sound at the maximum rate

Answers

A, as a lower resolution will store less data per frame, reducing file size.

Allan is a candidate for the position of Mayor in his town. He is worried about using email for the fear that it may be intercepted by the government and used by his opponent. What law protects his email from being intercepted by the government?
The
and its proposed update strengthen the online privacy of users by increasing requirements for governmental access to the stored data.

Answer: Electronic Communications Privacy Act

Answers

Answer:

This is correct.

Explanation:

I took the test and got it right.

Help me pleaseeeeeeeee

Answers

Answer:

2. I see that they uses space, and form.

3. Maybe it a death note that you could cut stuff with scissors and knife and you'll grasp if you got stab and it sharp.

4. To show that scissors could cut,stab and do many more other things.

The groups within a tab are collectively
known as?

Answers

Answer:

the ribbon

Explanation:

Commands are organized in logical groups, which are collected together under tabs. Each tab relates to a type of activity, such as formatting or laying out a page. To reduce clutter, some tabs are shown only when needed.

ANSWER QUICKLY!!!

Which aspect of planning is a preventive action?

Answers

A preventive action aims to correct a potential problem. Unlike a corrective action, which fixes the root cause of a current issue, preventive actions try to address problems before they happen

Write a question that the database will understand. Which records do not contain "sold"?
a. <>sold
b. /=sold
c. is sold i
d. >=sold

Answers

Answer:

b

Explanation:

b

_______Is the process of organizing data to reduce redundancy
O A. Specifying relationships
O B. Duplication
O C. Primary keying
O D. Normalization

Answers

Answer:

the answer is D

Explanation:

Normalization is the process of reorganizing data in a database so that it meets two basic requirements:

There is no redundancy of data, all data is stored in only one place.

Data dependencies are logical,all related data items are stored

List 5 tasks that can be performed by a computer

Answers

Answer:

Input or inserting data and instructions.Processing.Output or retrieving data or information.Storing data or information/file management.Controlling of devices and functions.

A license agreement specifies the number of
devices on which you can install the product, any
dates of expiration, and other restrictions. True or false?

Answers

The statement that a license agreement specifies the number of devices on which you can install the product, any dates of expiration, and other restrictions is true.

What is a license agreement?

A license agreement is a formal agreement that is given to a person to do or use something.

It is a legal contract between people or government and a person to authorize over any product.

Thus, the given statement is true.

Learn more about license agreement

https://brainly.com/question/14681311

#SPJ1

Which function allows you to display the name of the month?
>>>import time

>>>aTime = time.locatime()

>>>time.__________("%B",aTime)

Sample Output:
'March'

Answers

Answer:

strftime

Explanation:

>>> import time

>>> aTime = time.localtime()

>>> time.strftime("%B",aTime)

'May'

Question # 9
Fill in the Blank
Complete the statement using the correct term.
The aerospace industry uses______________ simulators to train astronauts and design spacecraft.

Answers

Answer:

flight stimulators are used to train astronaut and design simple air craft

Which is an example of a foley effect?

Answers

Answer:

Foley artists reproduce everyday sounds like footsteps, doors opening and closing, wind blowing, glass breaking, and other ambient noise.

Write a menu driven program in python to convert the given temperature from fahrenheit to celsius and vice versa depending upon user's choice.​

Answers

Answer:

See below

Explanation:

while(True):

   print("""\nProgram to convert temperatures

       

       Choose from:

       1. Fahrenheit to Celsius

       2. Celsius to Fahrenheit

       3. Exit program""")

   choice = int(input("\nEnter your choice: "))

   #print()

   if (choice == 1):

       print("Converting degrees Fahrenheight to degrees Celsius\n")

       F = float(input("Enter temperature in degrees Fahrenheit: "))

       C = (F - 32) * 5/9

       print()

       print(F,"degrees Fahrenheit = ", C, "degrees Celsius\n")

   elif (choice == 2):

       print("Converting degrees Celsius to degrees Fahrenheit\n")

       C = float(input("Enter temperature in degrees Celsius:"))

       F = (C* 9/5) + 32

       print()

       print(C,"degrees Celsius = ", F, "degrees Fahrenheit\n")

   elif (choice == 3):

       print("Exiting program")

       break

   else:

       print("Invalid Entry!. Please re-enter")

A computer has 32-bit virtual addresses and 4-KB pages. The program and data together fit in the lowest page (0–4095) The stack fits in the highest page.
1.How many entries are needed in the page table if traditional (one-level) paging is used?
2.How many page table entries are needed for two-level paging, with 10 bits in each part?

Answers

The numbers of entries needed is that:

For a one-level page table, one needs  232/212 or 1M pages needed.  Note that the page table must have 1M entries.

Can I run a 32-bit virtual machine using a 64-bit OS?

Others are:

For two-level paging, the main page table must have 1K entries, each have to points to a second page table. Note that only two of these are to be used.

Therefore, in full, only three page table entries are said to be needed, where one in the top-level table and another in each of the lower-level tables.

Note that one can install a 32-bit virtual machine in 64-bit Windows 10 system as it is very possible as long as the processor aids Virtualization Technology (VT).

Learn more about computer from

https://brainly.com/question/24540334

#SPJ1

does C supports STRINGS as a data type?

Answers

Answer:

C language does not support strings as a data type. A string is actually one-dimensional array of characters in C language. These are often used to create meaningful and readable programs.

Explanation:

The name for the instructions you write to a computer in a program

Answers

Answer:

Code

Explanation:

The code is instructions that you can write yourself or download from online

Answer:

Code

Explanation:

Code

The name for the instructions you write to a computer in a program

You are approached by the representative of a company which sells equipment that
your company makes use of. During your conversation, the company representative
offers to provide one unit of the equipment for your individual home usage for free (i.e.,
as a gift) should you purchase 1000 units for company usage. What should you do?

Answers

Answer: Don't purchase.

Explanation:

I think that is the right thing to do. Don't get swayed by bribes or gifts because that is what a person with integrity does. Of course, if you ask your company if they're willing to buy, then buy it.

What will be printed to the screen when the following program is run?

Answers

Answer:

The answer is 20

Explanation:

Hope this helps!

Answer:

40

Explanation:

Indexes for arrays in Python start at 0, which means the first item of an array is at index 0, the second item is at index 1, the third item is at index 2, and the fourth item is at index 3.

Therefore when my_list[3] is put inside the print function, the fourth item, 40, is printed to the screen.

Hope this helps!

The Texas Department of Education has offices throughout the state covering more than 268,000 square miles. State documents are stored on a large server in a central location, so that employees can access the data they need regardless of their physical location. The type of network used by the organization is most likely a _____.


LAN


WAN


MAN

Answers

Answer: WAN

Explanation:

DUE IN AN HOUR PLS HELP
Random answers for points will be reported


Which one of these is an example of an output device digital pen headset keyboard mouse

Answers

Answer:headset

Explanation:because sound comes out of them

Answer:

Headset

Explanation:

It would be a headset because headsets "output sounds"

Digital pens, keyboards, and mice don't output anything.

What is the purpose of Executive Order 13526?

Answers

prescribing a uniform system for classifying, safeguarding, and declassifying national security information, including information relating to defense against transnational terrorism.
Other Questions
After sitting out of a refrigerator for awhile, a turkey at room temperature (68F) is placed into an oven. The oventemperature is 305F. Newton's Law ofHeating explains that the temperature ofthe turkey will increase proportionally tothe difference between the temperature ofthe turkey and the temperature of theoven, as given by the formula below:T = Ta + (To Ta)e-ktTa=the temperature surroundingthe objectTo=the initial temperature of theobjectt=the time in hoursT=the temperature of the objectafter t hoursk = decay constantThe turkey reaches the temperature of108F after 3 hours. Using thisinformation, find the value of k, to thenearest thousandth. Use the resultingequation to determine the Fahrenheittemperature of the turkey, to the nearestdegree, after 4.5 hours. PLEASE HELP URGENT!! :(What was the result of Vasco da Gama's voyage?*Spain sent out its first voyages across the AtlanticThe Portuguese found a direct sea route to trade with AsiaThe Portuguese decided to colonize AfricaThe Italians increased their trade with Asia A gym charges membership dues of $25 per month. Part AComplete the table to show how the total cost in dollars, C, and thenumber of months, m, of gym membership are related. What is the cost of the blue section how does the structure of xylem relate to its function The table below shows the characteristics of four pathogens.PathogenGenetic material Nucleus?Outer CoveringCan replicate on its own?1DNANoCell wallYes2DNAYesCell membraneYes3DNANoProtein capsule No4DNAYesCell wallYesWhich pathogen is most likely a virus?Choose 1 answer:Pathogen 1Pathogen 2Pathogen 3Pathogen 4 what are the factors that affect mortality in nepal ? Skinner identified several ways to respond to behavior in order to increase or decrease the likelihood of that behavior being repeated. according to the article, what response types did skinner identify? 2. Are high trade deficits a worry? Which quadratic function is represented by the graph?654O FUX) = - (x + 1)(x 5)O f(x) = - (x 11x + 5)32-14O f(x) = -5(x + 1)(x - 5)2 3 4 5 x3 -5 -5 -4 -3 -2 -21-2O f(x) = -5(x - 1)(x + 5)+-346 The ability of a research study or psychological instrument to consistently produce a given result is called _______________. What is the value of y in the solution to this system of equations?3x + 2y = -122x + y = 4A.B.C.D.-36-12420 Whats the answer????#15 Sandy, a CERT member who is assisting with disaster medical operations, findperson who appears to be in shock. Which of the following is NOT a sign that tperson may be in shock?A. Slow capillary refillB. Rapid breathingC. Failure to respondD. Convulsions FIRST PERSON TO GET EVRYTHING RIGHT GETS BRAINLIEST!!!!1. A non-traditional family is one in which:A. the mother works and the father stays home.B. the parents had their children at age 40 or over.C. there is an arrangement other than two parents with one or more children.D. None of these choices are correct.2. A family in which the husband, wife, or both, bring children from previous marriages into a new family is known as a:A. single-parent family.B. binuclear family.C. nuclear family.D. blended family.3. Nothing influences your development to as great an extent as your:A. family of origin.B. IQ.C. education.D. environment.4. A parenting style that is responsive and sets limits is known as:A. authoritarian.B. authoritative.C. permissive.D. All of these choices are correct.5. Loyalty, cooperation, sharing, and interdependence are examples of:A. group values.B. individualistic values.C. competitive values.D. selfish values.6. To their younger siblings, older siblings can serve as:A. a good example.B. a bad example.C. role models.D. All of these choices are correct.7. Children raised by authoritarian parents are likely to be:A. anxious, withdrawn and unhappy.B. secure and happy.C. cooperative.D. immature.8. Which of the following types of parenting styles is more likely to create a child that is self-reliant, self-controlled, content, and self-confident?A. authoritarianB. permissiveC. authoritativeD. All of these choices are correct.9. Personality or temperament of a child first becomes evident during:A. infancy.B. early childhood.C. middle childhood.D. adolescence.10. The first stage in the life cycle is called:A. prenatal.B. early childhood.C. middle childhood.D. infancy.11. Which of the following choices is an example of an extrinsic reward?A. peace of mindB. a sense of accomplishmentC. money for good gradesD. happiness12. Who developed the Hierarchy of Needs?A. Dorothea LangeB. Abraham MaslowC. Philippe PinelD. None of these choices are correct.13. Which of the following choices could cause brain damage in an infant?A. lack of affectionB. poor nutritionC. shakingD. All of the choices are correct.15. Which of the following examples meets the definition of exploitation?A. Allowing a child to compete in a very challenging sports competition.B. Forcing a child to model inappropriate clothing against her wishes and interests.C. Failing to feed a hungry child in your care.D. Yelling at a child every time she drops something.16. Family violence prevention and intervention approaches need to address:A. only the short term effects.B. only the immediate trauma.C. only the long term impacts.D. the immediate trauma as well as the short and long-term impacts.17. If a friend is a victim of abuse, which of the following choices is helpful to say?A. What do you do that causes the abuse?B. I will only be your friend if you leave.C. If you are ready to go get help, I will go with you if you want.D. All of the choices are correct.18. Which of the following needs are at the lowest level of Maslow's Hierarchy of Needs?A. physiological needsB. safety needsC. love and belonging needsD. esteem needs19. What level on Maslow's Hierarchy of Needs did he say is met only after all other needs are met?A. love and belonging needsB. esteem needsC. self-actualizationD. physiological needs20. Elder abuse prevention laws:A. have effectively reduced the number of elder abuse cases in the United States.B. have only been passed in a handful of states.C. have been passed in all 50 states.D. target nursing home staff as the most likely perpetrators. how did the 1944 allied invasion at normandy, france, contribute to the end of world war ii? A police siren passes you with a frequency of 5000 Hz. Which correctly describes the sound wave after the police car passes you? The speed of sound is 340 m/s.A. siren wavelength of 0.0068 meters, frequency you hear = less than 5000 HzB. siren wavelength of 0.0068 meters, frequency you hear = 5000 HzC. siren wavelength of 0.0068 meters, frequency you hear = more than 5000 HzD. siren wavelength of 5000 meters, frequency you hear = 5000 Hz write the equation of the line passing through the point (2,- 1) with a slope of 3 (90 POINTS) How can you find the length of RT using similarity? Explain your reasoning. Find the volume of the cylinder. Round your answer to the nearest tenth if necessary. Use 3.14 for .A can of juice has a radius of 7 inches and a height of 8 inches. What is the volume of the can?The volume of the can is about _____. How much should you put in an investment paying a simple interest rate of 5% if you needed $4000 in eighteen mont