i keep getting the error saying that the system cannot find the specified file, what does that mean.
the assignment is to write a program that converts yards and feet to inches and sum them up so the final output should be total number of inches. This is what i have so far someone tell me what i am doing wrong and or missing please.
#include <iostream>
usingnamespace std;
main()
{
int inches;
int feet;
int yards;
inches = 12
feet = inches/12
yard = inches/36
cout << "Enter number of inches\n";
cin >> inches
cout << "enter number of yards\n";
cin >> yards
cout << "enter number of feet\n;
main must return int
Lines end with semi-colons (10, 11, 12, 15, 17);
Also lines 10-12 you are doing integer division. Make the left, right, or both sides a floating point (float or double). You can do this by casting or adding a '.' or '.0' to the end of the values or changing the type from int to float/double.
#include <iostream>
usingnamespace std;
int main() // main usually returns int
{
int inches;
int feet;
int yards;
inches = 12 /// missing ; you don't need to set this to a value since you are having a user input the value
feet = inches/12 // missing ; you are changing this value later in with cin>>
yard = inches/36 // missing ; you are changing this value later in with cin>>
cout << "Enter number of inches\n";
cin >> inches
cout << "enter number of yards\n";
cin >> yards
cout << "enter number of feet\n"; ///missing end quote
//convert your yards, feet,stuff down here so you don't over write the values..
return 0; // always return 0 to specify that there were no errors
} // close your main function