Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CNIT 105 Assignment-08 Due: Wed. 03/21/18, by 11:50 pm 20 Points Objectives: o Parallel Arrays o Finding max o Sequential Search Problem Description: Write a

image text in transcribed
image text in transcribed
CNIT 105 Assignment-08 Due: Wed. 03/21/18, by 11:50 pm 20 Points Objectives: o Parallel Arrays o Finding max o Sequential Search Problem Description: Write a C program to store price of 20 objects in US dollars and in Euro in two parallel arrays Named Constants .Define a named constant for the size of the arrays 20 .Define the exchange rate of 1.3662 as a named constant. 1 Euro- 1.3662 US dollars main0 function: a) Declare an array of typeto store up to 20 prices (dollar amount). Name this b) Declare another array of the same size and typeto store prices in Euro. c) Write a loop to partially fill array price dollar by prompting the user in a loop. Usea array price. dellar Name this array price euro, sentinel value- -1 to stop the data entry > Store the price entered in array price dollax Convert the price to Euro using the exchange rate-store the Euro amount in the parallel array in the corresponding index. d) Display the number of values read into the array e) Write a loop to display both arrays in 2 columns with column headers ) Find the max price stored in array price dollar After the loop, display the max in US dollar and in Euro, g) Use the sequential search algorithm to display all the prices> $40 Inform the user if search fails. Grading Chart: Named Constant Declare parallel arrays Partially fill arrays in a loop Display # of entries Display both arrays with column headers MacBook Air

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions