Answer and Explanation:
if all your program works fine, without any compilation error, then open command prompt and navigate to the folder "cs252/Assignments/guess" where you have all the header and c++ files stored.
type to generate "program" executable file :- g++ -o program guess.cpp
To execute the so obtained executable:- ./program
The answer would be to multiply the binary code with all results from the formula Samuel used to encode the desired number, until he gets 59 as a result.
(P.s. 111011 isn't 59, it results in a semicolon if you convert it using an binary code translator. It rather states that 00110101 00111001 is 59)
2.Sound comes out of the speakers when you play a song.
Answer:
#include<iostream>
#include<string>
int main()
{
double weight;
double weightInPounds;
cout<<"Enter Weight of person in kilograms\n";
cin>>weight;
weightInPounds = weight * 2.2;
cout<<"Your weight in Pounds is : "<<weightInPounds<<endl;
return 0;
}