[/B]Write a program to read age and gender of 45 Students enrolled in an Art Class. Display the total number of students whose age is between 8 and 12.

Recommended Answers

All 2 Replies

Its a simple program but you have to try first we dont create assignments.
Algorithem will be like this

define array of int for age
define array of string for gender
loop 45 times to get all data
loop 45 times with if condition to check age between 8 to 12 in array and display it.

I would revise that to a single array of Student objects and only one loop.

And you're correct: The OP needs to show a bit of effort if he wants any more help with this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.