Write a program to convert ASCII representation of Decimal number
(loaded from the keyboard using a loop calling the function getchar() )
and print its representation in Binary number system
(example: 13 » 00001101 )
Write a program to enter any number from user and find the reverse of given number using for loop (example: 1234 » 4321)
Write a program to enter a natural number from keyboard
and then print first and last digit of entered number.
Write a program using iterative loop to calculate (numerically) the series:
1/x + 1/x 2 + 1/x3 + 1/x4 + . . . + 1/xn
Write a program that loads several numbers from the keyboard,
asking in the meantime, the question "Do you want to finish: Y / N?"
At the end of the loop, program should display calculated values of:
the arithmetic average, maximum, minimum of given numbers.
Write a program to find the sum of all natural numbers in a given range [m,n]
which are divisible by number k. The values of all three parameters m, n, k,
should be read from the keyboard at the beginning of the program.
Create a program for circular linked list which perform some functions which are as follows:-
1:- Append Node
2:- Prepend Node
3:- Insert Node After a Specific Position
4:- Delete Node
5:- Update Node
6:- Display
1. You are required to create another class cuboid that inherits from rectangle. Create a header file called “cuboid.h” and implementation file called “cuboid.cpp”.
a. This class has width and length but it also has height.
b. Create accessor and mutator of this class
c. Create the following functions
i. Compute surface area.
ii. Overload the function from c-I to compute surface area of parallel sides
iii. Overload the function from c-I to compute total surface area.
iv. Compute volume.
v. Compute the length and height from center of diagonals.
Make a program that will accept an integer and loop from 1 to that integer. Then, print all numbers from that range that are greater than 3.
We've already tried comparing 3 numbers to see the largest among all, so let's try a more complicated mission where we locate where among the 5-digit integer is the largest one. There are only 4 possible cases for this mission:
if the largest digit is the first digit, print "Leftmost"
if the largest digit is the third digit, print "Middle"
if the largest digit is the last digit, print "Rightmost"
if none of the above is correct, print "Unknown"
Now, show me how far you've understood your lessons!