How it could affect me if an employer (future or current) sees it and whether or not I would want strangers to be able to view it.
I'm pretty sure the general rule of advice is that if you wouldn't want your mother to see it, you probably shouldn't post it.
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:
The objects created in the main method and their initial states are given below
Explanation:
The objects and initial state of each object( the values of each object’s variables) are thus:
We have objects awesome, amazing and fantastic.
initial state of awesome object is
aName = "Awesome"; aNumber = 5; amAwesome = true;
initial state of amazing object is
aName = "Amazing"; aNumber = -10; amAwesome = false;
initial state of fantastic object is
aName = "Fantastic"; aNumber = 11; amAwesome = true
It is used because it helps add more detail to the object
Answer:
Option e: The use of programmed decisions should be limited to noncritical situations.
Explanation:
A repetitive decision or routine that can be managed by developed business procedures or rules are known as programmed decisions. These kind of decisions are most often known for at certain points in a standard process, and are planned relying on recognized and easily identifiable terms. Programmed decisions generally do not demand much consideration or discussion, and can typically be automated to make certain consistency and save time for decision-makers.
So, the use of programmed decisions should not be limited to noncritical situations.