Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed

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 printed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions