Mr. Roper owns 20 apartment buildings. Each building contains 15 units that he rents for $800 per month each. Design the application that would print 12 payment coupons for each of the 15 apartments in each of the 20 buildings. Each coupon should contain the building number (1 through 20), the apartment number (1 through 15), the month (1 through 12), and the amount of rent due.
1. #include <stdio.h>
2. #include <stdlib.h>
4. int main()
7. int buildingNumber = 0;
8. int apartmentNumber = 0;
9. int paymentCoupon = 0;
10. int RENT = 800;
12. printf("%i\n", buildingNumber);
13. while (buildingNumber <=20);
17. printf("%i\n", buildingNumber);
19. while (apartmentNumber <=15);
22. printf("%i\n", apartmentNumber);
24. while (paymentCoupon <=12);
27. printf("%i\n", paymentCoupon);
31. return 0;
Answer this Question
A 0.67 kg rock is projected from the edge of the top of a building with an initial velocity of 11.6 m/s at an angle 52 ◦ above the horizontal. Due to gravity, the rock strikes the ground at a horizontal distance of 19.5 m from the base of the building.
- asked by Noah
- 5,571 views
Stones are thrown horizontally with the same velocity from the tops of two different buildings. One stone lands twice as far from the base of the building from which it was thrown as does the other stone. Find the ratio of the height of the taller building
- asked by Tonya
- 3,915 views
2. Worldwide annual sales of all cell phones is approximately -10p + 1600 million phones when the wholesale price is $p. a) If manufacturers are prepared to supply q = 14p – 800 million phones per year at a wholesale price $p, what would be the
- asked by Marianne
- 5,586 views
MATH (Please Help)
An office building worth $1 million when completed in 2000 is being depreciated linearly over 80 years. What will be the book value of the building in 2048? (Assume the scrap value is $0.) a. The book value of the building in 2048 will be $200,000. b. The
- asked by Kal Jay
- 3,922 views
From the top of a 200 metres high building, the angle of depression to the bottom of a second building is 20°. From the same point, the angle of elevation to the top of the second building is 10°. Calculate the height of the second building.
- asked by Anonymous
- 2,454 views
Richard is standing between two buildings in a town house development.The building on the left is 9 m away and the angle of elevation to its security spotlight A is 68 degrees. The building on the right is 6m away and the angle of elevation to its security
- asked by donovan
- 2,246 views
math HELP plz
Richard is standing between two buildings in a townhouse development. The building on the left is 9m away and the angle of elevation to its security spotlight, A, is 68 degree. The building on the right is 6m away and the angle of elevation to its security
- asked by Danielle D
- 1,634 views
A ball thrown horizontally at 21m/s from the roof of a building lands 24m from the base of the building. Now high is the building?
- asked by Arman
- 1,694 views
Bill kicks a rock off the top of his apartment building. It strikes a window across the street 17 m away. The acceleration of gravity is 9.8 m/s2 . If the window is 22 m below the position where Bill contacted the rock, how long was it in the air? Answer
- asked by arielle
- 1,892 views
Jesse is drawing a scene of a bridge over a river with buildings of a city in the backround.He drew a ship between the bridge and buildings. Which part of the drawing will closely match the hue of the sky? -bridge -buildings -river -ship I think river.
- asked by ???
- 2,991 views
Physics test review
A ball is thrown horizontally from the top of a building 30.1 m high. The ball strikes the ground at a point 66.8 m from the base of the building. The acceleration of gravity is 9.8 m/s2 . Find the time the ball is in motion. Answer in units of s Find the
- asked by ann
- 7,686 views
A 0.65 kg rock is projected from the edge of the top of a building with an initial velocity of 10.5 m/s at an angle 40◦ above the horizontal. Due to gravity, the rock strikes the ground at a horizontal distance of 19.6 m from the base of the building.
- asked by Isaac
- 2,044 views
A criminal is escaping across a rooftop and runs off the roof horizontally at a speed of 5.1 m/s, hoping to land on the roof of an adjacent building. Air resistance is negligible. The horizontal distance between the two buildings is D, and the roof of the
- asked by chelsea
- 3,253 views
Bill kicks a rock off the top of his apartment building. It strikes a window across the street 18m away. The acceleration of gravity is 9.8 m/s sqaured. If the window is 12 m below the position where bill contacted the rock, how long was it in the air?
- asked by Tee
- 386 views
A ball is thrown horizontally from the top of a building 43.4 m high. The ball strikes the ground at a point 57.3 m from the base of the building. The acceleration of gravity is 9.8 m/s^2. a. Find the time the ball is in motion. Answer in units of s. b.
- asked by Kimberly
- 1,426 views
Stones are thrown horizontally, with the same initial velocity, from the tops of two different buildings, A and B. The stone from building A lands 4 times as far from the base of the building as does the stone from building B. What is the ratio of building
- asked by Teddy
- 2,140 views
You and your friend throw balloons filled with water from the roof of a several story apartment house You simply drop a balloon from rest. A second balloon is thrown downward by your friend 2.1seconds later with an initial speed of 41.6m/seconds. they hit
- asked by Kimberly
- 1,087 views
A telephone company makes up its monthly bills as follows: a fixed charge of 800 naira plus a charge proportional to the number of units of call on the telephone .If it charge 2 naira per unit of call , calculate the total charges on (a) 80 units (b) 150
- asked by david t
- 2,031 views
a man 6 ft tall is walking toward a building at the rate of 4 ft/sec. if there is a light on the ground 40 ft from the building, how fast is the man's shadow on the building growing shorter when he is 30 ft from the building?
- asked by jordan
- 4,168 views
The probability that a person owns a microwave oven is .75, that a person owns a compact disk player is .25, and that a person owns both a microwave and a CD player is .16. Find the probability that a person owns either a microwave or a CD player, but not
- asked by Lori
- 2,278 views