Answer:
C++
Explanation:
C ++ is an object-oriented programming language that takes the basis of the C language.
C ++ is a programming language designed in the mid-80s by Bjarne Stroustrup. The intention of its creation was to extend to the successful programming language C with mechanisms that allowed the manipulation of objects. In that sense, from the point of view of object-oriented languages, C ++ is a hybrid language. Subsequently, generic programming facilities were added, which added to the other two paradigms that were already admitted (structured programming and object-oriented programming). This is why it is often said that C ++ is a multiparadigma programming language.
At present, C ++ is a versatile, powerful and general language. His success among professional programmers has led him to occupy the first position as an application development tool. The C ++ maintains the advantages of the C in terms of operator wealth and expressions, flexibility, conciseness and efficiency. In addition, it has eliminated some of the difficulties and limitations of the original C.
Answer:
if ((b*b - 4*a*c)<0)
cout << "no real solutions";
return;
Explanation:
To check if "b squared" – 4ac is negative, we use the expression if ((b*b - 4*a*c)<0). This expression evaluates the 'bsquared' and substracts '4ac' from it. It then compares the resulting value with zero. if it is less than zero it means it is a negative number, so it executes the statement following cout << "no real solutions"; and returns
Answer:
Memory address register
Memory buffer register
Explanation:
In c/c++, the processor consists of mainly five stages.
- FETCH
- DECODE
- EXECUTE
- MEMORY
- WRITE BACK
The memory address (MAR) register is a register where memory locations are being stored and where instructions are being fetched from the memory.
The memory buffer register (MBR) specifically enables the storage of data that are fetched or to be written in the memory.
Answer:
The method in Python is as follows;
def licenseNum(customID,licenseYear):
return (100000 * customID) + licenseYear
print(licenseNum(777,2014))
Explanation:
This line declares the method with its parameters
def licenseNum(customID,licenseYear):
This line returns the expected output
return (100000 * customID) + licenseYear
The method is tested using:
print(licenseNum(777,2014))