Decision making is the name of the process that weighs the alternatives, gathers all necessary information, and can ultimately lead you to the best choice in any given situation.
Decision making is the process in which best satisfying choices are made by identifying a decision, gathering important information, and examining alternative choices. The step by step approach of the decision making process is an efficient method that increases the chance that an individual will choose the best choice in any situation. The step by step approach are; (i) identify the decision, (ii) gather information, (iii) identify the alternatives, (iv) analyze the evidence, (v) choose the best alternatives (vi) implement the decision and (vii) review your decision and its effect
Answer:
a. If the read is successful, the number of bytes read is returned.
b. If the end of file is encountered, 0 is returned.
Explanation:
A read function is one of the functions used in computer programming. A read function is used to read an information or data that was written before into a file.
If any portion of a regular file before to the end of file has not been written and the end of file is encountered the read function will return the bytes with value 0.
If read function has read some data successfully, it returns the number of bytes it read.
Answer:
class Vehicle
{
private: //should be declared once
string type; //should be small as C++ is case sensitive
int numAxles;
public: //should be declared once
Vehicle ( string vehicleTypes, int VehicleAxles); \\s should be small as C++ is case sensitive and it is a parametarised constructor
Vehicle (string vehicleType, int b); //s should be small as C++ is case sensitive and now this is also a parametarised constructor
}; //a class ends with }: not with }
Explanation:
There are two constructors in this piece of code. The first constructor was parametrised while the second only had one argument. The second constructor should have 2 arguments like the first construtor or it should be empty. I've passed another argument to the second constructor. Moreover, the class ends with }; not with } and as we know C++ is case sensitive language so, declare the reserved keywords with small letters.