I'm definitely sure that the answer is: When choosing a font for your electronic communications, you should never select c. comic sans. In my view comic sans is the worst font I've ever seen, because there's one big problem with this font. The problem is that nobody will take you seriously. It doesn't fits to the style for every website.
Answer:
//C++ code for the cash register..
#include <iostream>
#include<vector> //including vector library
using namespace std;
int main() {
vector<float> cash; //declaring a vector of type float.
float item=2,cash_sum=0;
int counter=1;
while(item!=0)//inserting prices in the vector until user enters 0...
{
cout<<"Enter the price of item "<<counter<<" :"<<endl;
cin>>item;
counter++;
cash.push_back(item);//inserting element in the vector...
}
for(int i=0;i<cash.size();i++)//looping over the vector...
{
cash_sum+=cash[i];//summing each element..
}
cash_sum*=1.08;//adding 8% sales tax.
cout<<cash_sum;//printing the result....
return 0;
}
Explanation:
I have taken a vector of type float.
Inserting the price of each item in the vector until user enters 0.
Iterating over the vector for performing the sum operation.
Then after that adding 8% sales tax to the sum.
Printing the output at last.
Answer:
int main()
{
int x,y;
bool b1, b2;
cout<<"enter values of x : ";
cin>>x;
cout<<"enter values of y : ";
cin>>y;
b1 = y > x; // false
b2 = x > y; // true
cout << "b1 is = " << b1 << "\n";
cout << "b2 is = " << b2 << "\n";
if (b2)
cout<<endl << "Larger Number" << "\n";
else
cout << "Smaller Number" << "\n";
return 0;
}
Answer:
Using a spreadsheet would be the best program for creating a personal budget.
Explanation:
With a spreadsheet, you can enter formulas to add or subtract from your budget, plus you can create charts and graphs as well.