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.
We have that an air purifier manufacturer can apply edge computing technologies is inventory management.
<h3> A
ir purifier manufacturer and edge computing</h3>
Question Parameters:
Generally,Edge computing is computing and storing resources at the data production area.
Hence, An air purifier manufacturer can apply edge computing technologies is inventory management as it will aid incoming and outgoing inventory assessment on production grounds.
For more information on Technology
brainly.com/question/25274620
I think the correct answer from the choices listed above is option A. A can of diet soda will float in water while a can of regular sugar soda will sink. This is due to the reason that the regular soda is more dense than the diet soda. Hope this answers the question.
Answer:
See explaination.
Explanation:
question is the root element which have two children one is M-C and other is Coding.
Again M-C have two sub children Points and parts
Note: The tree will be as shown in the attachment. kindly refer to attachment.
Here if we see the child of quiz(questions) at 0 position is number of type M-C and another child at location 1 is number of type Coding.
Now quiz.child(0) is number of type M-C which has two child and child at 0 is Points and child at 1 is Parts
quiz.child(0).child(1) is Points and now further points doesn't have any children hence going further to quiz.child(0).child(1).child(0) is nothing hence it will not return anything.
Next quiz.child(1) is number of type coding and value is 5.
Size of the tree is (2^depth)-1
and here depth of tree is 3 hence size is (2^3)-1 i.e. 7
A(an) _______ is a set of instructions that a computer follows to perform a task.Answer is Program .
I hope the answer of the question.