Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

An automobile manufacturer has a factory in each of 5 cities. Each factory produces the same 8 models of cars and trucks. The manufacturer also

An automobile manufacturer has a factory in each of 5 cities. Each factory produces the same 8 models of cars and trucks. The manufacturer also has annual production goals for each model (the same goal would apply for that model at each factory, e.g., if 100 units is the goal for Model #1, then this means each factory should aim to produce that many units of Model #1), and for each factory for all of its models combined. Design the logic, in pseudocode, for a program that:

a. Allows a user to enter

i. The production numbers for each model at each factory

ii. The production goals for each model b. Calculates the total production goal for each factory for all models combined (Decide which of the above belong in a 2-dimensional array, and which in a 1dimensional array)

c. Outputs a complete list of the production numbers along with the details of factory number and model number, and production goal e.g., Factory #1, Model #1: Goal units: 85 Production units: 79 If the number of units for a model falls 10% or more below the production goal, outputs a string of three asterisks after the production number, e.g., Factory #3, Model #5: Goal units: 100 Production units: 72 *** d. Outputs the total production at each factory in a similar manner, and if the number of units falls 10% below the total production goal for that factory, outputs a string of three pound signs (###) after the production total

e. Allows the user to look up the production number for any model at any factory, by entering a factory number and a model number, e.g., following the second example above, if I enter 3 when prompted for the factory number, and 5 when prompted for the model number, the program should output that the production units for that is 72.

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

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

Define Administration?

Answered: 1 week ago

Question

Define Decision making

Answered: 1 week ago