A machinist wishes to insert a brass rod with a diameter of 2 mm into a hole with a diameter of 1.995 mm. By how much would the machinist have to lower the temperature (in °C) of the rod to make it fit the hole?
Suppose that (QWERTY) is inserted into an empty bst.
Task:
Draw the diagram of bst after each insert
No need to write the code
A man pulls with a force of 300 N on a rope attached to a
building. The man is positioned 8 m away horizontally and 6
m at the base of the building (vertically) from the point of
attachment, A. What are the horizontal and vertical
components of the force exerted by the rope at point A?
Convert the Number
Given a number having ten digits, convert it to a string following the below-mentioned rules.
Rules for conversion:
1.separate the number into a set of four-three-three digits
2.Use the following prefixes for successive digits
a.Single numbers: just read them separately
b.Two consecutive numbers: double
c.Three consecutive numbers: triple
d.Four consecutive numbers: quadruple
Input
The first line of input is a string of ten digits.
Sample Input1
9887666668
Sample Output1
nine double eight seven triple six double six eight
Sample Input2
9090407368
Sample Output2
nine zero nine zero four zero seven three six eight
A 30 m steel tape was standardised at a temperature of 20o C and under a pull 5 kg. The tape was used in catenary to fix a distance of 28 m between two points at 40o C and under a pull of 5 kg. Given that the cross-sectional area of the tape = 0.02 cm2, total weight 470 g. Young’s modulus of steel = 2.1 X 106 kg/cm, and coefficient of linear expansion = 11 x10-6per oC, (a) find the correct distance between the points, and (b) find the value of pull for which the measured distance would be equal to the correct distance.
Write a program that reads an integer and determines and prints whether it is odd or even. [Hint: Use the remainder operator. An even number is a multiple of two. Any multiple of two leaves a remainder of zero when divided by 2.].
can you do this program without using classes
u can use functions instead of classes
Registration System
1. Press 1 to login
2. Press 2 to register students
3. Press 3 to see the list of fee defaulters
4. Press 4 to see the CGPA of student
5. Press 5 to see the pre requisite of a course.
6. Press 6 to exit the system
Registration Window
Enter student ID
The student should not be a fee defaulter if yes then do not register student
The pre requisite of course should be passed. if fail do not register for the course
If the students CGPA is a above 3.0 register all courses.
If the CGPA is above 2.0 register 3 courses.
If CGPA less than 2.0 then register 2 courses with a warning.
Student information Window
The data should be saved in a file.
The student record may be deleted.
The student record may be searched based on the ID provided.
The student record may be updated in case if its phone no or house address changes.
dy/dx = 5y + (e ^−2x)(y^−2)
5 Similar species with different characteristics
example:
Gartner snakes live in the same region
https://revel-ise.pearson.com/courses/6123e8c3e405345b4db8cc88/pages/a01d5f11c73c1edccab32f3f774833239daa8769e Page 11 of 15
Programming Exercises from the Book: Chapter 5 8/23/21, 3:12 PM
Note that this is a graduated rate. The rate for the first $5,000 is at 8%, the next $5,000 is at 10%, and the rest is at 12%. If the sales amount is 25,000, the commission is 5,000 * 8% + 5,000 * 10% + 15,000 * 12% = 2,700. Your goal is to earn $30,000 a year. Write a program that finds the minimum sales you have to generate in order to make $30,000.