Distance Conversion C++ Program
Not what you're looking for?
In C++, write a program that allows the user to convert between feet, inches, yards, and miles in either direction?
Purchase this Solution
Solution Summary
A C++ program is written that allows the user to convert between feet, inches, yards, and miles in either direction.
Solution Preview
// conv.cpp : Defines the entry point for the console application.
//
#include <conio.h>
#include <string>
#include <iostream>
using namespace std;
const static int MILE_IN_YARDS = 1760 ; // 1 mile = 1760 yard //5280 feet
const static int YARD_IN_FEET = 3 ; // 1 yard = 3 feet
const static int FOOT_IN_INCHES = 12 ; // 1 foot = 12 inches
int main()
{
int miles;
cout << "Enter miles:";
cin >> miles ;
int yards ;
int feet ;
int inches ;
yards = miles * ...
Purchase this Solution
Free BrainMass Quizzes
C# variables and classes
This quiz contains questions about C# classes and variables.
Java loops
This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Javscript Basics
Quiz on basics of javascript programming language.
Word 2010: Tables
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.