What is the outcome of the line of code "cout<<abs(-
16.5);"?
1) 16
2) 17
3) 16.5
Answer Posted / naga
Ans: 16.5
The numerical value of a real number without regard to its
sign. For example, the absolute value of −4 (written |-4|)
is 4. Also called numerical value.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
can inline function declare in private part of class?
How do you use inheritance in unity?
Can bst contain duplicates?
What are the benefits of interface?
What is the difference between inheritance and polymorphism?
Which is better struts or spring?
This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.
What is polymorphism explain its types?
Why do we use oop?
Can main method override?
What are the 4 pillars of oop?
What is polymorphism and types?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
Where You Can Use Interface in your Project
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?