Answer:
Question 1 :Write a program to enter a number and test if it is greater than 45.6 Example:
Answer:
#include <iostream>
using namespace std;
int main()
{
int user_number=0;
cout<<"Enter a number ";
cin >> user_number;
if(user_number >45.6){
cout <<"Greater than 45.6";
}
return 0;
}
Question 2: Test if a number grade is an A (greater than or equal to 90). If so print "Great!"
Answer:
#include <iostream>
using namespace std;
int main()
{
int user_number=0;
cout<<"Enter a number ";
cin >> user_number;
if(user_number >= 90){
cout <<"Great";
}
return 0;
}
Question 3:
Test if a password entered is correct. The secret phrase is Ada Lovelace.
Answer:
#include <iostream>
#include <string>
using namespace std;
int main()
{string pass_phrase ="Ada Lovelace";
string user_password="";
cout<<"Enter password ";
getline (cin, user_password);
if(user_password == pass_phrase){
cout <<"Correct";
}
else{
cout <<"Incorrect";
}
return 0;
}
Explanation:
Answer:
I would like to stay anonymous while criticizing the current government. As there have been many cases when people who wrote against the government's decisions were caught by the police.
So I would prefer to stay anonymous while commenting on various government policies. My friends would know about it because I share my posts only with them.
The government can know about my identity by ordering the social networking site to reveal it.
/Remove-Package - Remove a package
/Mount -Wim - Mount a WIM image
/Add-Driver - Add a driver
/Commit -Wim - Commit the changes to the image.
/Unmount -Wim - Unmounts a WIM image
Answer:
A Master Page & a Style Sheet
Explanation:
The hypervisor which works on older PC's without hardware virtualization support is called VirtualBox. It is a software allows you to run operating systems in special environment which is called virtual machine. It means that you can run another OS without re-installing existing one.