The measure of the linear density at a point of a rod varies directly as the third power of the measure of the distance of the point from one end. The length of the rod is 4 ft. and the linear density is 2 slugs/ft at the center. Find the center of mass of the rod.
Write a program that does the following:
a. Prompts the user to input five decimal numbers.
b. Prints the five decimal numbers.
c. Converts each decimal number to the nearest integer.
d. Adds the five integers.
e. Print the sum and the average of the five integers
3. A linked list is a sequence of data structures, which are connected via links. Write a complete C program to perform the following on a Circular Doubly Linked List (CDLL).
a. Get a number n (1-9) from user and create CDLL with n nodes, which contains the numbers (1, 2, .. n) as the data in the nodes.
b. Display the elements of CDLL.
c. Insert another node (data = 0) as the head of CDLL. Display the elements of CDLL.
d. Convert the CDLL into a DLL.
e. Remove the second node (head->next) from the DLL.
f. Display the elements of DLL in reverse order.
write a program to overload the postfix decrement operator
what difference would the chemist observe at the negative electrode if aqueous zinc chloride was used rather than molten zinc chloride? answer
Write a program to overload operators in the same program by writing suitable operator member functions for following expression:
O7= ((O1 % O2)>(O3 || O4) - (O5>O6)) [Here O1,O2,O3,O4,O5,O6 and O7 are objects of a class “overloading”, and this class is having one integer data member]
Write a program to overload operators in the same program by writing suitable operator member functions for following expression:
O7= ((O1 % O2)>(O3 || O4) - (O5>O6)) [Here O1,O2,O3,O4,O5,O6 and O7 are objects of a class “overloading”, and this class is having one integer data member]
Differentiate the following without solving for y in terms of x.
Write a program to overload operators in the same program by writing suitable operator member functions for following expression:
O7= ((O1 % O2)>(O3 || O4) - (O5>O6)) [Here O1,O2,O3,O4,O5,O6 and O7 are objects of a class “overloading”, and this class is having one integer data member]
Write a C++ program that converts a decimal number to a binary, octal, and
hexadecimal equivalents. First, the program will ask to fix a range for the lower and
upper limit in which the conversion is required. The lower limit should not be less than
0 and greater than the upper limit. For example, if you enter a negative number or
greater than the upper limit, then the program should print a message for the invalid
input and will ask you again to enter a decimal number within the range. If you
correctly specify the upper and lower limits, then the program will print a table of the
binary, octal and hexadecimal equivalents of the decimal numbers in the range of
lower limit through upper limit.
Specific grading criteria: In this program you should use all the loops (e.g., while,
do-while and for loop) each of them only one time. The output mentioned below is just
an example; more clear and well- presented output will improve your points.