Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

84 Job analysis and job description methods.

Answered: 1 week ago

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago