Question: 2. Write the C++ code to declare (use typedef where possible) a. three one-dimensional arrays called: forcel, force2 and force3 each with at most 30

 2. Write the C++ code to declare (use typedef where possible)

2. Write the C++ code to declare (use typedef where possible) a. three one-dimensional arrays called: forcel, force2 and force3 each with at most 30 components and each of base type float. b. a list of compound names where each compound name is at most 40 characters long and there are at most 90 compounds c. a one-dimensional array of base type float called: weights with at most 25 components d. a list of course titles with at most 40 components 2. Assume that a program is to be written for a computer supply store and that the following information must be maintained Description Unit Price Quantity Weight printer cpu monitor 122.50 1000.00 135.00 8 40 40 212.00 15.00 106.00 Assume that at any given time there are at most 100 different parts in inventory. Write just the lines of code to declare all of the variables that would be required for this application. Write the required const and typedef's first and then use them to declare the variables 4. Assume that information is to be maintained on income of employees for a company as follows Employee Id Base Pay Commission Total Pay Union Dues 4000 12000 251 452 32000 43000 36000 55000 320 430 Assume that at any given time there are at most 40 employees. Write just the lines of code to declare all of the variables that would be required for this application. Write the required const and typedef's first and then use them to declare the variables

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!