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:
One to One Relationship
Explanation:
Given that in a computer systems analysis about an entity-relationship model, a one-to-one relationship is a form of cardinality that involves the relationship that exists between two different entities Y and Z, such that one element Y can only be associated with one element Z, or in the other way round.
Hence, the cardinality of the friend_of relationship set between two student entities in the student entity set should be: "One to One Relationship"
Answer:
ain characteristics of wastewater are classified below.
Physical Characteristics. · Turbidity. · Color. ...
Chemical Characteristics due to Chemical Impurities. · Chemical Oxygen Demand (COD) · Total Organic Carbon (TOC) ...
Biological Characteristics due to Contaminants. · Biochemical Oxygen Demand (BOD)
Answer:
The correct sentence is 1.
Explanation:
The most common use of artificial intelligence is email filtering and trading.
The Hardware refers to the physical computer equipment, such as the monitor, keyboard, mouse etc.