answersLogoWhite

0


Best Answer

because max wasnt smart enough for L.D class

User Avatar

Nadia Heidenreich

Lvl 10
2y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why was max taken out of LD class and placed in the gifted class?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Write an if statement that sets the variable fees to 50 if the boolean variable max is true?

class d { private int fees=0; static void main(boolean max) { if(max) fees=50; } }


What is class Y insulation?

Class Y insulation can withstand a max temperature of 90 degrees centigrade. Examples are Cotton, Silk, Paper, Wood, Cellulose, etc.


How much load could a M6 screw can carry?

Min 80.4 Kg (4.6 Property class screw) max : 194 Kg (Higher Property Class Screw)


What is the source code for a method called max?

That depends on the programming language and the exact implementation of max. Normally, a max function returns the largest of two variables of the same type but can also be applied to a sequence container with 2 or more elements. Both versions may also include a user-defined predicate to perform the comparison(s). In the C++ standard library, it is implemented as a generic algorithm (a function template) with 4 overloads. These functions become accessible when you include the <algorithm> header from the standard library. They each have the following definitions: // TEMPLATE FUNCTION max template<class _Ty> inline _Post_equal_to_(_Left < _Right ? _Right : _Left) const _Ty& (max)(const _Ty& _Left, const _Ty& _Right) { // return larger of _Left and _Right return (_DEBUG_LT(_Left, _Right) ? _Right : _Left); } template<class _Ty> inline _Ty (max)(_XSTD initializer_list<_Ty> _Ilist) { // return leftmost/largest const _Ty *_Res = _STD max_element(_Ilist.begin(), _Ilist.end()); return (*_Res); } // TEMPLATE FUNCTION max WITH PRED template<class _Ty, class _Pr> inline const _Ty& (max)(const _Ty& _Left, const _Ty& _Right, _Pr _Pred) { // return larger of _Left and _Right using _Pred return (_DEBUG_LT_PRED(_Pred, _Left, _Right) ? _Right : _Left); } template<class _Ty, class _Pr> inline _Ty (max)(_XSTD initializer_list<_Ty> _Ilist, _Pr _Pred) { // return leftmost/largest const _Ty *_Res = _STD max_element(_Ilist.begin(), _Ilist.end(), _Pred); return (*_Res); }


How do you determine class width?

Not sure what you mean by class width, but if you mean how do you determine the size of a class, the simplest way is to use the sizeof() operator. The value returned may be equal to or greater than the sum of all its member variables, depending on any adjustments made for memory alignment. If the class contains pointers to memory allocated on the heap, this memory will not be included in the total -- only the size of the pointers to those allocations will be considered. EDIT: Previous answer does not address the question. #include<stdio.h> main() { int n,m,i,max; printf("How many numbers(n) you going to enter:"); scanf("%d",&n); printf("Enter the numbers:"); scanf("%d",&m); max=m; for(i=2;i<=n;i++) { scanf("%d",&m); if(m>max) max=m; } printf("The Largest Number is %d",max); } Output: How many numbers(n) you going to enter:5 Enter the numbers: 25 410 362 5 56 The Largest Number is 410