Describe a situation in which an IF statement could be used.
What will be an ideal response?
An IF statement could be used to calculate overtime in a payroll worksheet. IF the employee works over 40 hours, he is eligible for overtime. If not, he receives standard pay.
You might also like to view...
Which of the following statements about friend functions and friend classes is false?
a. A class can either grant friendship to or take friendship from another class using the friend keyword. b. A friend declaration can appear anywhere in a class definition. c. A friend of a class can access all of its private data member and member functions. d. The friendship relationship is neither symmetric nor transitive.
The up arrow can be used to display the previous commands entered on the command line in Linux. True or false?
a. True b. False
Most computer tapes today are in the form of ____ tapes.
A. floppy B. flash C. optical D. cartridge
Cropping hides areas of an image, but can result in loss of resolution quality.
Answer the following statement true (T) or false (F)