7. Use the oxidation number method to balance the following equations:
a) Al(s) + H2SO4 (aq) Al2(SO4)3 (aq) + H2 (g)
b) PbS(s) + O2(g) PbO (s) + SO2 (g)
26. Suppose that the tuition for a university is $10,000 this year and Write a program that computes the tuition in ten years and the total cost of four years"
increases 5% every year.
worth of tuition starting ten years from now. 27. Write a program that convert from kilograms to pounds, miles to kilometers, and from
hour to minutes based on the choice of the user. 28. Write a program that prompts the user to enter the number of students and each student's
name and score, and finally displays the student with the highest score and the student
with the second-highest score.
29. Write a program that prompts the user to enter the number of students and each student's name and score, and finally displays the name of the student with the highest score.
2. Write a float method triangle() that computes the area of a triangle using its two formal parameters h and w, where h is the height and w is the length of the bases of the triangle.
3. Write a float method rectangle() that computes and returns the area of a rectangle using its two float formal parameters h and w, where h is the height and w is the width of the rectangle.
4. The formula for a line is normally given as y= mx +b. Write a method Line() that expects three float parameters, a slop m, a y-intercept b, and an x-coordinate x. the method computes the y-coordinate associated with the line specified by m and b at x coordinate.
5. Write a method Intersect() with four float parameters m1.b1.m2,b2. The parameters come conceptually in two pairs. The first pair contains the coefficients describing one line; the second pair contains coefficients describing a second line. The method returns I
if the two lines intersect. Otherwise, it should return 0;
How many gram of potassium and iodine present in one kilogram of KI
Use the half-reaction method to balance the following equation and then identify the oxidizing and reducing agents:
Fe(OH)2 (s) + Pb(OH)3 -(aq) → Fe(OH)3 (s) + Pb(s) [basic]
Find out median for the following data
x: 10,15,18,23,27,30,31 f
20,30,40,50,60,70
If the demand function is P = 70 - Q find an expression for TR in terms of Q.
(1) Differentiate TR with respect to Q to find a general expression for MR in terms of Q. Hence write
down the exact value of MR at Q = 60.
(2) Calculate the value of TR when
(a) Q=60
(b) Q=61
and hence confirm that the 1 unit increase approach gives a reasonable approximation to the exact value of MR obtained in part (1).
Creat a class called class1 and class2 which each of having one private data members .Add member function to set value say 'set value' on each class. Add one more function max() that is friendly to both classes and max() function should compare two private member of two classes and show maximum among them
Capital and Country
The goal of this coding exam is to quickly get you off the ground with HTML select element
Reference image:(final output)
https://assets.ccbp.in/frontend/content/dynamic-webapps/capital-and-country-op.gif
Test cases:
pass the above all test cases....
. A rigid tank contains 10 𝑘𝑔 of water at 90𝑜 𝐶. If 8 𝑘𝑔 of the water is in the liquid form
and the rest is in vapour form, determine:
i. the pressure in the tank,
ii. the volume of the tank.