Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

A company manufactures three products: Engines, Pumps and Fans. They give a discount

of 10% on order for engines if the order is for Rs.5,000 or more. The same discount of

10% is given on pump orders of values of Rs.2,000 or more and on fan orders for

Rs.1,000 or more. On all other orders they do not give any discount.


Create a class 'student'with three data member which are name, age and address. The constructor of the class assign default value to name as'unknow', age'0' and address as 'notavailable'. It has two functions with the same name 'setinfo'. First function has two parameter for name age and assigns the same where as the second function takes has three parameter which are assigned to name, age and address respectively. Print the same name age and address of 10 students. Hint- use array of object


5. twos ComplementBinaryToDecimal function This function takes a static array and bit pattern length as its arguments. The function must return the decimal (integer) value computed from the two's complement binary representation given in the array argument in the given bit pattern length. Assume the array is populated with binary bits in the given pattern length and that it is a two's complement representation .


3. computeTwos ComplementBinary function :This function takes a static array , bit pattern length, and an integer number as its arguments . The function must populate the array with the two's complement binary representation of the integer number argument in the given bit pattern length. Assume the all the arguments are valid      4. binaryAddition function This function takes two static arrays, bit pattern length, and a third static array as its arguments . The function must populate the third array with the binary sum of the first two arrays in the given bit pattern lengthAssume the first two arrays are populated with binary bits in the given bit pattern length Moreover assume that all the arguments are valid.


write a programe that reads number from a file named "data.txt" and tell wheather all number in that file are unique or not ? i


How do you call an instance variable in the main program?


Single digit number : Ram is given a positive integer N. He wishes to convert this integer into a single numeral. He does so by repeatedly adding the numericals of the number until there is only a single numeral. Help ram by providing the single-numeral number finally obtained




Input:




The input is single line containing a positive integer N




Output :




The output should be a single-line containing a single - numeral number





Sample input :




545




Sample output :




5

2. Flag Ceremony

by CodeChum Admin

It's quite nostalgic to remember of our elementary days where we used to line up in one straight line first thing in the morning for the daily flag ceremony, right?


Well, since I’m getting so sentimental, let’s make five randomly inputted characters fall in line using code, shall we?


Input

Five lines containing a character on each.

a
b
c
d
e




write a program to input number of days from the user and convert to it years weeks and days and display the result on the screen



// days.cpp


// Author: Mr jake R. pomperada, BSCS, MAED- IT


// Date: august 15, 2018 Wednesday


// Location: Bacolod City, Negros occidental


// Website: http://www.jakerpompereda.com



write a program to input number of days from the user and convert to it years weeks and days and display the result on the screen



// days.cpp


// Author: Mr jake R. pomperada, BSCS, MAED- IT


// Date: august 15, 2018 Wednesday


// Location: Bacolod City, Negros occidental


// Website: http://www.jakerpompereda.com



LATEST TUTORIALS
APPROVED BY CLIENTS