Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please I need code in 10 minutes I need java code 2022_FAT_STS3301_STS3002_Test 1 Submit Test Technical.. Coding 2 Single File Programming Question Marks : 10
please I need code in 10 minutes
I need java code
2022_FAT_STS3301_STS3002_Test 1 Submit Test Technical.. Coding 2 Single File Programming Question Marks : 10 Negative Marks : 0 The Pan Am 73 flight from Bombay to New York en route Karachi and Frankfurt was hijacked by a few Palestinian terrorists at the Karachi International Airport. The senior flight purser Neerja Banhot withered her fear and helped evacuating the passengers on board Neerja very well knew that she would not be able to evacuate all passengers dodging the hijackers. So she wanted to hand over the responsibility of evacuating in the senior citizens(above 60 years of age) and children(below 18 years of age) in the light to the mid-aged passengers seated in the diagonals. Given n the number of rows of seats and the number of seats in a row and the ages of passengers in each seat can you find the sum of number of kids and senior citizens and also the number of mid-aged passengers seated in the diagonals? Input format The first line of input consists of an integer n. corresponding to the number of rows of seats The nean lines of input consist of nintegers that correspond to the ages of passengers Output format The output consists of an integer corresponding to the sum of number of kids and senior citizens The output consists of an integer corresponding to the number of mid-aged passengers seated in the diagonals, Reler Sample input and output for further specifications Sample testcases Input 1 620 Output 1 SISStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started