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 13084You're given an array containing both positive and negative integers and required to find the sub-array with the largest sum (O(N) a la KBL). Write a routine in C for the above.
4 12367Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].
1 5852What is the output of the following 3D Array int arr[3][2][2]={1,2,3,4,5,6,7,8,9,10,11,12}; what is the output for arr[2][1][0]?
6 43034what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
2362Post New C++ General Questions
How to allocate memory dynamically for a reference?
What is the c++ code?
How did c++ start?
Are iterators pointers?
What is c++ best used for?
Difference between overloading vs. Overriding
What is the difference between a template and a macro?
What are the defining traits of an object-oriented language?
Explain method of creating object in C++ ?
how to connect with oracle 9i with server in socket program in c/c++
Can a program run without main in c++?
Write a program to find the reverse Fibonacci series starting from N.
How to access a variable of the structure?
What is const pointer and const reference?
Why is c++ still popular?