|
Learning objectives for chapter 5 |
1 | Learn how to get console input into a program, for all 4 data types. |
2 | Learn how to prompt the user to enter input. |
3 | Learn the proper use of the cin.ignore statement. |
4 | Learn the difference between cin >> and getline. |
5 | Learn how to interrupt a running console program and cause it to terminate. |
|
|
Learning objective(s) addressed |
|
1 | 2 | 3 | 4 | 5 |
Exercises |
Right-click (or control-click on a Mac) the title to save its PDF to your system. |
|
5.1 |
A Simple Mortgage Calculator, v.2.0 PDF |
X | X | | | |
5.2 |
About Lighthouses, v.2.0 PDF |
X | X | | | |
5.3 |
Making Change, v.2.0 PDF |
X | X | | | |
5.4 |
Temperature Conversion, v.1.0 PDF |
X | X | | | |
5.5 |
My Savings Plan, v.2.0 PDF |
X | X | | | |
5.6 |
Programs With Multiple Data Entries PDF |
X | X | X | X | X |
| |
Samples |
Right-click (or control-click on a Mac) the title to save its CPP file to your system. |
|
5.1 |
Using Console Input Code Blocks For Each Of The Four Data Types CPP
|
X | | | | |
| |
Videos |
|
5.1 |
Click HERE for a YouTube-like video that shows how to develop code using console keyboard input.
It's running time is 11 minutes, and it uses C++ on a Windows system, with JNotePad and Visual Studio in command line mode.
It introduces the templates in JNotePad for creating new CPP files and for inserting code blocks for console data entry.
|
X | X | | | |
|
Code from the chapter in order of their appearance in the text |
|