Answer:
2:
decNum = float(input("Decimal number: "))
if decNum != 16.5:
print("Does not equal")
elif decNum == 16.5:
print("Equal")
else:
pass
3:
if x > 57:
x += 4
print(x)
4:
numOne = int(input("Enter number: "))
numTwo = int(input("Enter number: "))
if numOne < 100 and numTwo < 100:
yes = numOne + numTwo
print(yes // 2)
else:
pass
Explanation:
Please give me brainliest.
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.
Beasts shush shrub Nehru need Brid Nehru
Answer:
Themes, Cell Styles, Conditional Formatting, and Formulas
Explanation:
Got it right on Edg.