STL (140)
OOPS (873)
C++ General (2409) Write a C program to calculate the salary of each employee in your company. You need to input the hours worked and the hourly rate. The company pays 1.5 times the hourly rate for all hours worked in excess of 48 hours. Use the formulas below to calculate the salary: if employee worked less than 48 hours salary = hours * rate; if employee worked more than 48 hours salary = 48.0 * rate + ( hours − 48.0 ) * rate * 1.5; You are required to use a loop to produce the sample output as given below.
1 13088There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?
3 7505where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?
2 10748Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
2199
Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D
What is an overflow error?
What does it mean to declare a destructor as static?
What is encapsulation oop?
What are the advantages of c++ over c?
What is the importance of oop?
What are the restrictions apply to constructors and destructors?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
What should main() return in c and c++?
How to implement is-a and has-a class relationships?
Why would you use pointers in c++?
Is c++ a low level language?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
How do you answer polymorphism?
What is difference between polymorphism and inheritance?