Answer:
# include <conio.h>
# include <iostream.h>
using namespace std;
main{
int a[25], sum;
cout<<"enter the values in array a";
for (int i=0; i<= 24 ; i++)
{
cin>>a[i];
}
sum =0;
for (int j=0; j<=24 ; j++)
{
sum= sum + a[j];
}
cout<< sum;
getch ();
}
The answer is Undo I think
What's the following is there a b c d or is it just writing it out
Answer:
total = 0
for i in range(5):
product = float(input())
tax = product * 0.07
print('Product price:',product)
print('Product tax:',tax)
print('----------------------')
total += product+tax
print('Total:',total)
Explanation:
Step 1 variables definition
total = 0
Step 2 loop over quantity of products
for i in range(5):
Step 3 ask for price and calculate the tax
product = float(input())
tax = product * 0.07
Step 4 print the product total
print('Product price:',product)
print('Product tax:',tax)
print('----------------------')
Step 5 print the general total
print('Total:',total)