Solution: Real estate

Keyboard Shortcuts

This video covers the solution to the challenge of formatting output in C++. The instructor walks through a solution to reading and printing output for a real estate company using escape sequences and the iomanip library.

- [Instructor] So, how did you make out with the…real estate challenge?…I want to show you how I approached this problem.…I'm going to create a new project in my IDE.…I'm going to do file, new, project…and I'll create a console application,…and let's call it real estate solution.…I'm going to put it in my C++ essential training.…We said that we want to be able to use the iomanip library…as well as the iostream so let's start by adding that.…

I'm going to do pound sign include iomanip…and below that I'm going to add the using name space std.…In the main part of my program, or in the main function,…I need to declare some variables.…I'm going to start by declaring a string that's going to hold…the last name of the homeowner.…Next, I'm going to create two variables; one for the commission…and one for the listing agent's commission,…but since I don't want those to change or accidentally…be overwritten in my program,…I'm going to make them constant variables.…

I'm going to do const double and I'll start with commission…

Resume Transcript Auto-Scroll

Author

Released

4/24/2017

Are you interested in adding programming skills to your professional toolkit? If so, whether you're a student kicking off your career, a mid-level manager who's always wanted to learn programming, or even a seasoned developer interested in tackling a new language, then this course is for you. Follow Peggy Fisher as she explains how to get started with C++, a core programming language. Using C++ 11, Peggy covers the basics such as how to compile and run C++ programs, and how to create variables. She also dives into working with data, as well as decision statements, creating functions, and using arrays. To help you grasp the material, she challenges you to write programs that include the aforementioned features.