An easy to understand example of arithmetic in C++
Not what you're looking for?
Write a c++ program.
1. As a part time student and a part time worker, you earn $4.50 an hour. Your parents will buy you a used car, but you must pay for the gas. gas costs $1.10/gallon and you use 20 gallons/week. How many hours will you work each week to pay for the gas to fuel your car?
Purchase this Solution
Solution Summary
This solution shows a simple C++ program that performs a basic arithmetic expression. The explanation of the program is very detailed and clearly shows what each statement in the program is doing. This is very illustrative for C++ beginners who are trying to get enough information to "get started".
Solution Preview
This problem requires declaring some variables and setting their values based on a couple of arithmetic expressions. To make things easier to read we start by declaring variables for the known data:
double ...
Purchase this Solution
Free BrainMass Quizzes
Basic Networking Questions
This quiz consists of some basic networking questions.
C# variables and classes
This quiz contains questions about C# classes and variables.
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Excel Introductory Quiz
This quiz tests your knowledge of basics of MS-Excel.
Word 2010: Table of Contents
Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.