Find the error (2.5*2=5)
(a) X=y=z=0.5,2.0-5.75
(b) s=15;
Answers were Sorted based on User's Feedback
Answer / preeti
If a float variable multiply by an integer, it will give
answer in float. So the answer should be in float.
| Is This Answer Correct ? | 17 Yes | 3 No |
Answer / k.k
(a) you can not do
x=y=z=0.5 in c++ it will throw error..
undefine symbol y & z...
| Is This Answer Correct ? | 6 Yes | 0 No |
How to create a program that lists countries capitals when country is entered? (Terribly sorry, I'm a complete novist to coding with C, am looking for inspiration and general tips on how to code and create this program.)
write a profram for selection sort whats the error in it?
wap for bubble sort
2. A student studying Information Technology at Polytechnic of Namibia is examined by coursework and written examination. Both components of assessment carry a maximum of 50 marks. The following rules are used by examiners in order to pass or fail students. a. A student must score a total of 40% or more in order to pass (total = coursework marks + examination marks) b. A total mark of 39% is moderated to 40% c. Each component must be passed with a minimum mark of 20/50. If a student scores a total of 40% or more but does not achieve the minimum mark in either component he/she is given a technical fail of 39% (this mark is not moderated to 40%) d. Grades are awarded on marks that fall into the following categories. Mark 100-70 69-60 59-50 49-40 39-0 Grade A B C D E Write a program to input the marks for both components (coursework marks out of 50 and examination marks out of 50), out put the final mark and grade after any moderation. [30]
what are the techniques for reducing the fragility of a memory bug?
full c programming error question based problem
What is probability to guarantee that the task a programmer is going to create will be created and be able to run on a particular system (RTOS/GPOS).
What is the code for following o/p * * * * * * * * * * * * * * * *
class test { int a; public: test(int b):a(b){} void show(){ cout<<a; } }; void main() { test t1; test t2(5); t1.show(); t2.show(); } }
How to reverse a linked list without using array & -1? Thank you.
Given an int variable n that has been initialized to a positive value and, in addition, int variables k and total that have already been declared, use a do...while loop to compute the sum of the cubes of the first n whole numbers, and store this value in total . Thus if n equals 4, your code should put 1*1*1 + 2*2*2 + 3*3*3 + 4*4*4 into total . Use no variables other than n , k , and total .
write the value of x and y after execution of the statements: int x=19,y; y=x++ + ++x; x++; y++;