Exercise 1: of Floating-Point Numbers" in This Chapter?
Exercise 1: of Floating-Point Numbers" in This Chapter?
Exercise 1
What output is generated by the program on the page entitled “Formatted output
of floating-point numbers” in this chapter?
Exercise 2
Formulate statements to perform the following:
Exercise 3
Write a C++ program that reads an article number, a quantity, and a unit price
from the keyboard and outputs the data on screen as displayed on the opposite
page.
Exercise 4
Write a C++ program that reads any given character code (a positive integer)
from the keyboard and displays the corresponding character and the character
code as a decimal, an octal, and a hexadecimal on screen.
✓ TIP
Why do you think the character P is output when the number 336 is entered?
Exercise 5
Correct the mistakes in the program on the opposite page.