Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using c++ Question 19 (14 points) (SLO: be able to call a function with arrays as parameters) write the function main that does the following:
using c++
Question 19 (14 points) (SLO: be able to call a function with arrays as parameters) write the function main that does the following: 1. Define the arrays idlist to hold the IDs of 20 students (integer values) , and scorelist to hold their test scores (double precision values). Read the 20 students' IDs and their test scores from the standard input into the arrays idlist and scorelist respectively. Each input line will have an ID and a corresponding score. 2. 3. Read the ID of a student and look for his/her test score (by calling function searchld) in part c). 4. lfthe ID is found in the list (the value returned is not-1), its test score is printed; otherwise the message "ID not found" is printedStep 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