a) Draw a flowchart to display the product of first 12 natural numbers.
b) A library charges fine for books returned late as given below:
First five days --> 40 paise per day.
Six to 10 days --> 65 paise per day.
Above ten days -->80 paise per day.
Draw a flowchart to calculate the fine assuming that a book is returned n days late.
this question is for class 8 and I need it urgently
Answers
Answered by
1
Answer:
please see the file attached.
Explanation:
Draw a flowchart to calculate the fine assuming that a book is returned n days late.
Attachments:
Answered by
2
using FOR loop
start
Input: n
product = 1
for i=1 to n
product = product*i
i = i + 1
end for loop
print product
end
using WHILE loop
start
Input: n
product = 1
i=1
while(i<=n)
product = product*i
i = i + 1
end while loop
print product
end
Attachments:
Similar questions
India Languages,
6 days ago
English,
6 days ago
Computer Science,
12 days ago
English,
8 months ago
English,
8 months ago