- 2.6 - Using the statements written in Exercise 2.5, write a complete program that calculates and prints the product of three integers
- 2.14 - Write an application that displays the numbers 1 to 4 on the same line, with each pair of adjacent numbers separated by one space.
- 2.15 - Write an application that asks the user to enter two integers, obtains them from the user and prints their sum, product, difference and quotient (division). Use the techniques shown in Fig. 2.7
- 2.16 - Write an application that asks the user to enter two integers, obtains them from the user and displays the larger number followed by the words "is larger". If the numbers are equal, print the message "These numbers are equal". Use the techniques shown in Fig 2.15
- 2.17 - Write an application that inputs three integers from the user and displays the sum, average, product, smallest and largest of the numbers. Use the techniques shown in Fig 2.15
- 2.18 - Write an application that displays a box, an oval, an arrow and a diamond using asterisks(*)
- 2.19 - 2.23 - Copy the following code from the textbook and see results
- 2.24 - Write an application that reads five integers and determines and prints the largest and smallest integers in the group. Use only the programming techniques you learned in this chapter.
- 2.25 - Write an application that reads an integer and determines and prints whether it's odd or even.
- 2.26 - Write an application that reads two integers, determines whether the first is a multiple of the second and prints the result.
- 2.27 - Write an application that displays a checkerboard pattern.
- 2.28 - Write an application that inputs from the user the radius of a circle as an integer and prints the circle's diameter, circumference and area using the floating-point value 3.14159 for PI.
- 2.29 - Write an application that displays of some uppercase letters, lowercase letters, digits and special symbols. Display the integer equivalents of the following: A B C a b c 0 1 2 $ * + / and the blank character
- 2.30 - Write an application that inputs one number consisting of five digits from the user, separates the number into its individual digits and prints the digits separated from one another by three spaces each.
- 2.31 - Using only the programming techniques you learned in this chapter, write an application that calculates the squares and cubes of the numbers from 0 to 10 and prints the resulting values in table format.
- 2.32 - Write a program that inputs five numbers and determines and prints the number of negative numbers input, the number of positive numbers input and the number of zeros input.
- 2.33 - Create a BMI calculator that reads the user's weight in pounds and height in inches, then calculates and displays the user's body mass index.
- 2.34 - Use the web to determine the current world population and the annual world population growth rate. Write an application that inputs these values, then displays the estimated world population after one, two, three, fouor and five years.
- 2.35 - Research several car-pooling websites. Create an application that calculates your daily driving cost, so that you can estimate how much money could be saved by car pooling, which also has other advantages such as reducing carbon emissions and reducing traffic congestion.
{{ message }}
