Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
137 views
in Programming by (15 points)
Question 2 

 a) The Ghana water company wants to automate its activity. a. accept the following input: i. Customer’s name ii. Quantity of water consumed

 b. distinguish the following categories of consumers based on the number of galons of water used: 

 i. Domestic if water consumed is less than or equal to 500 galons a month 

 ii. Commercial if water consumed is more than 500 but less than or equel to1000 galons a month 

 iii. Industrial if water consumed is more than 1000 galons of water a month.


 c. Computer the following: 

 i. Domestic, amount to pay is GHC 0.25 per galon 

ii Commercial, amount to pay is GHC 0.35 per galon 

iii. Industrial, amount to pay is GHC 0.50 per galon 

d. Display i. Custmers name: ii galons of water consumed: ii Amout of water consumed GHC: iii 2% of amount consumed to be added for rural water project and fire service. iv. Total amount payable = Amount of water consumed + amount for rural water and fire service Draw the flowchart and write a C++ software for a solution to solve the problem above AP(15) 

b) In computer programming algorithms both Iteration and recursion repeatedly execute a set of instructions. Using sample code snippets or algorithms, critically explain the primary difference between Iteration and recursion algorithms A

Please log in or register to answer this question.

Related questions

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...