Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. The following table shows the data of five programmers that work in a company: Weight(kg) 70 Name Saka Ronaldo Salah Cavani Kane Age 25
2. The following table shows the data of five programmers that work in a company: Weight(kg) 70 Name Saka Ronaldo Salah Cavani Kane Age 25 35 28 32 30 Height(m) 1.78 1.51 1.85 1.53 1.59 68 53 72 83 Language Java C++ Python Java Kotlin Write a program that can process the programmers' data above. First, the program prompts the user to input the attributes (name, age, height, weight and language) of each of the five programmers above. You must use an array to store each attribute. Next, the program will display all data of the five programmers that have been added in the arrays. Then, the program will ask the user to enter a language and the program will search the array and display the names of programmers that are fluent with the language entered by the user. If there is no such language, display the message: There is no programmer fluent with such language!. Next, the program will find and display the name, height and weight of all programmers whose BMI is 30 or above. Finally, it will find and display the name of the oldest programmer. Below is a sample running of the program (underlined texts are inputs entered by the user): Enter programmer name> Saka Enter programmer age 25 Enter programmer height(s) > 1.78 Enter programmer weight (kg) > 70 Enter programmer language> Java Enter programmer name> Ronaldo Enter programmer age> 35 Enter programmer height(s) > 1.51 Enter programmer weight (kg) > 68 Enter programmer language> C++ Enter programmer name> Salah Enter programmer age 28 Enter programmer height(s) > 1.85 Enter programmer weight (kg) > 53 Enter programmer language> Python Enter programmer name> Cavani Enter programmer age> 32 Enter programmer height(s) > 1.53 Enter programmer weight (kg) > 72 Enter programmer language> Java Enter programmer name> Kane Enter programmer age 30 Enter programmer height (m)> 1.59 Enter programmer weight (kg) > 83 Enter programmer language> Kotlin Displaying all programmers: ------Programmer 1- Name = Saka Age - 25 Height - 1.7m Weight = 70.0kg Language - Java ---Programmer 2- Name = Ronaldo Age - 35 Height = 1.5lm Weight = 68.0kg Language - C++ ------Programmer 3- Name = Salah Age - 28 Height - 1.85m Weight = 53.0kg Language - Python ------Programmer 4 Name = Cavani Age - 32 Height - 1.53m Weight = 72.0kg Language = Java ------Programmer 5 Name - Kane Age = 30 Height - 1.59m Weight - 83.0kg Language - Kotlin * Enter a language> Java Saka Cavani Programmers with BMI > 30: Cavani, 1.53, 72.0 Kane, 1.59, 83.0 ******** Oldest programmer - Ronaldo BUILD SUCCESSFUL (total time: 2 minutes 42 seconds) Note: The BMI is a person's weight in kilograms (kg) divided by height in meters (m) squared as given below: kg BM m Name of program file to be submitted: Asg32.java
Step 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