Question

In: Computer Science

Take into account robotic space exploration. Please describe why an engineer would decide to use C...

Take into account robotic space exploration. Please describe why an engineer would decide to use C or C++ over a higher level language such as Python? What are some benefit an object-oriented language have in comparison to a purely procedural language?

Solutions

Expert Solution

The most popular language in robotics is probably C/C++ (C++ is an object-oriented successor to the C language). ... You can also write your own programs for ROS e.g. in C/C++ or Python. Matlab which is used for data analysis and interfaces with ROS (also, Octave is a free, open-source equivalent to Matlab available here.)

a)python is interpreted whilec++is compiled.

b)python has no primitive everything including the built-in types are object.

c)a python list can hold objects of different types,so each entry has to store additional data about its typethese are several hinder both runtime and memory consumption..

Procedural programming does not have any proper way for hiding data so it is less secure. Object oriented programming provides data hiding so it is more secure. ... In procedural programming, function is more important than data. In object oriented programming, data is more important than function.

The major benefits of object oriented language over purely procedural language are as follows:-

In procedural programming, program is divided into small parts called functions. In object oriented programming, program is divided into small parts called objects.
Procedural programming follows top down approach. Object oriented programming follows bottom up approach.
There is no access specifier in procedural programming. Object oriented programming have access specifiers like private, public, protected etc.
Adding new data and function is not easy. Adding new data and function is easy.
Procedural programming does not have any proper way for hiding data so it is less secure. Object oriented programming provides data hiding so it is more secure.
In procedural programming, overloading is not possible. Overloading is possible in object oriented programming.
In procedural programming, function is more important than data. In object oriented programming, data is more important than function.
Procedural programming is based on unreal world. Object oriented programming is based on real world.
Examples: C, FORTRAN, Pascal, Basic etc. Examples: C++, Java, Python, C# etc.

Related Solutions

is space exploration worth it? Why or why not? Also give a counter argument to your...
is space exploration worth it? Why or why not? Also give a counter argument to your argument
Why Civil Engineer take into account two different cases which are transfer and service during design...
Why Civil Engineer take into account two different cases which are transfer and service during design and analysis of prestressed concrete structural memeber. Please, explain briefly.
how do companies account for bad debt? Why would they use an allowance account instead of...
how do companies account for bad debt? Why would they use an allowance account instead of directly crediting A/R? What are the various methods of accounting for bad debt? Describe the differences in how the expense is calculated.
For the following below you should decide a) What test would you use? b) Why would...
For the following below you should decide a) What test would you use? b) Why would you use this test? 1. You want to test and see if there is a relationship between favorite type of dog and political affiliation. You ask 25 conservative, 25 liberal, 25 reform and 25 NDP supporters if they have a large medium or small dog. 2. The average number of books owned by a professor is 543 with a st dev of 124. The...
For the following below you should decide a) What test would you use? b) Why would...
For the following below you should decide a) What test would you use? b) Why would you use this test? 1. You want to know if major in university and tolerance of ambiguity are related. You choose 60 people (20 science majors, 20 humanities majors and 20 phys ed majors) and give them a test which measures their tolerance for ambiguity. You them separate them into low, moderate and high tolerance groups. 2. You wonder if the amount of time...
Please explain why companies may decide to use M&A and the potential benefits of such actions....
Please explain why companies may decide to use M&A and the potential benefits of such actions. Then explain the alternative types of reorganizations and how these transactions work to accomplish the stated acquisition or divestiture goals.
. TRUE/FALSE: (Please use one sentence to explain why it is FALSE if you decide that...
. TRUE/FALSE: (Please use one sentence to explain why it is FALSE if you decide that one statement is FALSE) (a) The regression through origin model is designed to fit count responses only (b) The Bonferroni method is always the best way of computing joint CI's of the mean responses, i.e., provides the group of CIs with the narrowest ranges which achieves the claimed family confidence coefficient. (c) When you want to obtain the smallest variance of the "regression coefficient...
Why would we want to use a state-space approach for control systems?  What are the advantages...
Why would we want to use a state-space approach for control systems?  What are the advantages or disadvantages?  Would it allow more or less flexibility?  Would it cost more?  
Please Use C language to Make a calculator. Make sure calculator is able to take up...
Please Use C language to Make a calculator. Make sure calculator is able to take up to 5 values. Try to make calculator using simple coding As you can. Please create a simple calculator with only +, -,* and divide. It has to be able to enter any numbers (including decimals) and be able to do the following functions: +, -, divide and multiply. Please have the answers, always rounded to two decimal figures. The calculator will also have to...
a) why would a design engineer at PI compensator to a system? what would the compensator...
a) why would a design engineer at PI compensator to a system? what would the compensator system look like? b) why would a design engineer pick a LAG compensator over a IP compensator?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT