#include<iostream>intmain(){usingnamespace std;
cout<<"My name is iDoit,my address is BLABLA.."<<endl;return0;}
2.2
#include<iostream>intconvert(double);intmain(){usingnamespace std;
cout <<"please input a distance";double distance_input;
cin >> distance_input;
cout <<"the result of the convert is "<<convert(distance_input)<< endl;return0;}intconvert(double distance){return distance *220;}
2.3
#include<iostream>voidmice_function();voidrun_function();intmain(){mice_function();mice_function();run_function();run_function();return0;}voidmice_function(){usingnamespace std;
cout <<"Three blind mice"<< endl;}voidrun_function(){usingnamespace std;
cout <<"See how they run";}
2.4
#include<iostream>intmain(){usingnamespace std;
cout <<"Enter your age : ";int age;
cin >> age;
cout << endl;
cout << age *12<< endl;return0;}
2.5
#include<iostream>doubleconvert(double value);intmain(){usingnamespace std;double celsius_value=0;
cout <<"Please enter a Celsius value : ";
cin >> celsius_value;
cout <<"20 degrees Celsius is "<<convert(celsius_value)<<" degree Fahrenheit"<< endl;return0;}doubleconvert(double value){return1.8* value +32.0;}
2.6
#include<iostream>doubleconvert(double light_years_1);intmain(){usingnamespace std;
cout <<"Enter the number of light years: ";double light_years;
cin >> light_years;
cout << light_years <<"light years = "<<convert(light_years)<<" astronomical units";return0;}doubleconvert(double light_years_1){return63240* light_years_1;}
2.7
#include<iostream>voidtime_fuction(int hour,double minutes);intmain(){usingnamespace std;int hour_input;double minutes_input;
cout <<"Enter the number of hours : ";
cin >> hour_input;
cout << endl;
cout <<"Enter the number of minutes: ";
cin >> minutes_input;time_fuction(hour_input, minutes_input);return0;}voidtime_fuction(int hour,double minutes){usingnamespace std;
cout <<"Time : "<< hour <<" : "<< minutes;}
2.1#include<iostream>int main(){ using namespace std; cout<<"My name is iDoit,my address is BLABLA.."<<endl; return 0;}2.2#include <iostream>int convert(double...