Given two polynomials A and B, write a program that adds the given two polynomials A and B.\
input:
4
0 5
1 0
2 10
3 6
3
0 1
1 2
2 4
output:
6x^3 + 14x^2 + 2x + 6a) Draw a flowchart for the following problem.
Suppose that you work for a beverage company. The company wants to know the optimal cost for a cylindrical container that holds a specified volume. Your program should ask user before iterating loop. Let say there are 10 users that will going to use the system. During each iteration of the loop, your program will ask the user to enter the volume and the radius of the cylinder. Compute and display the height and the cost of the container. Use the following formulas, where V is the volume, r is the radius, h is the height, and C is the cost.
h = V
r2
Please provide the code below. And also give the procedure in a table form.
Using the discussed methods, Convert the following Infix Expression to its equivalent Postfix and Prefix Expression
1. a^b/c+d-(e/f-g+(h+i-j)^k+l-m/n)
2. a/b^c^d+(e+f)/g^h-i*j/(k*l*'m^n)
Stacks and Queues
Please provide the code. Thank you! And also provide the given steps in a table form
A. Create a program that will separate the operators from the operand entered by the user. Use stacks and operators will be limited with +,-, /, and *.
Sample Input: 1+2/3 * 4+5
Write a C Program that does the following:
1. Declares a C-String called ‘m1’ and initializes it with the text “Programming is great fun!”.
2. Uses C-function puts() to print this string.
3. Asks the user to enter a string named ‘m2’ (Hint: Use gets() function for this.)
4. Concatenates the two strings and stores the result in ‘m3’.
For example, if the user enters m2 as “Not Really!”, m3 should be “Programming is great fun! Not really!”
5. Inserts the user entered array (m2) into m1 after “Programming is ...”
For the above example, the resultant String would become “Programming is Not really! great fun!”
quiz about string
Question : implement the fundamental task of obtaining data from the person at the keyboard in order to compute a score to evaluate them for employment.
1: Prepare one separate numeric variable to hold an additional, constant piece of useful information about the user. Ensure the variable’s value, after its declaration, cannot be changed by your program’s statements.
2: Prompt the user with a printout to explain what to do, then read in one textual value from the keyboard for the name Prompt the user with a printout to explain what to do, then read in one integer numeric value from the keyboard, a value useful to evaluate the user for a job position of your choice of the person typing
3: compute a numeric value that can be used to determine whether the job application will be considered, and print out the value, including the name of the applicant, in an informative message. Use at least two different types of arithmetic