Compute sums for each of the two inventories

Assignment Help C/C++ Programming
Reference no: EM13937565

Im having trouble writing a program that does the following. the program should sum up inventory counts and report the total. the inventory is represented by a three digit inventory and a count of the items. in the data is a problem, their are two different inventories that have been mixed up in the list (on purpose). the inventory number and count still match up.

I need to seperate the two inventories (inventory ONE and TWO) and get a count for each one. im writing this for a "r & d" department and the idea is that they discovered the two inventories can be distinguished by digits in the inventory number. if the digits in the inventory number sum up to be liss than or equal to 13, then those items belong to inventory ONE. the others belong to TWO.

The object is to compute sums for each of the two inventories and generate a total inventory count for each one. i need to print out the total number of items found in each inventory, total counts and the average for each inventory. i have the data needed in a data file and it must be entered in two numbers at a time. i also have to use redirection to save on typing input..... the data file is (inventorymix)

Attachment:- InventoryMix Pgm.zip

Reference no: EM13937565

Questions Cloud

How involved should the government be in protecting : How involved should the government be in protecting us from media effects? Where do you draw the line between free speech and indecency? Is censorship ever warranted
Depreciation will equal capital expenditures in each year : Following is a four-year forecast for Torino Marine. Year 2015 2016 2017 2018 Free CFs in million -76 92 112 150 a. Estimate the fair market value of Torino Marine at the end of 2014. Assume that after 2018, earnings before interest and tax will rema..
Provide a brief overview of corporate history : Organisation overview: Identify the selected organisation and provide a brief overview of its corporate history
Percentage of company capital structure consists of debt : Hook Industries' capital structure consists solely of debt and common equity. It can issue debt at rd = 8%, and its common stock currently pays a $3.50 dividend per share (D0 = $3.50). The stock's price is currently $29.50, its dividend is expected t..
Compute sums for each of the two inventories : The object is to compute sums for each of the two inventories and generate a total inventory count for each one. i need to print out the total number of items found in each inventory, total counts and the average for each inventory.
How many shares of common stock are outstanding : How many shares of common stock are outstanding? How many shares of preferred  stock are outstanding? What was the average selling price of a share of common stock?
What is meant it by the term csr : Explain what is meant it by the term CSR. Explain what is meant by an organization's stakeholder analysis. Give examples to back up your explanation.
Two projects are equally risky-risky firms existing assets : Midwest Electric Company (MEC) uses only debt and common equity. It can borrow unlimited amounts at an interest rate of rd = 9% as long as it finances at its target capital structure, which calls for 35% debt and 65% common equity. These two projects..
What are the nash equilibrium prices : Write down the expressions for how much a consumer at location d would value the products sold by firms A and B, if they set prices Pa and Pb? Based on your expressions in (a), how much will be demanded from each firm if prices Pa and Pb are set?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create the roman.h and implement roman class in roman.cpp

Create the roman.h and implement the Roman class in roman.cpp. Make sure that you put in measures to prevent multiple inclusion of the header file. Test your implementation using task2a.cpp.

  Write a program that reads a sequence of names one per line

Write a program that reads a sequence of names, one per line, and then sorts and prints them. Write and test a function to reverse a C-string in place, without any duplication of characters.

  Create a base employee class and a derived studentemployee

create a base employee class and a derived studentemployee class. below is the basic uml structure of both

  Recursive method void printrevers

Write a c language program and I also need executable file for this program - Write a recursive method

  Write a c++ program which performs hexadecimal operands

Write a c++ program which performs +, -, *, / and $ on hexadecimal operands. The maximum length of any operand or a solution is 40 digits. The input will be in the following format

  The two-dimensional array

1. Given the two-dimensional array declared by the following statement int myArray[4][3] = {{2,4,6},{1,8,10},{3,5,7},[9,11,13}}; what is the value of myArray[1][2]

  To overload a member function of the base class

To overload a member function of the base class A: the name of the function and the formal parameter list of the corresponding function in the derived class must be the same. B: the name of the function must be different

  Design a grade average program

Grade Average Program - Design a grade average program that will produce the numerical grade average of test scores input by a user

  Discuss the differences concerning how a program would acces

Discuss the differences concerning how a program would access the members of objects that have been declared as an array of objects

  Write a program using the class as defined

Write a program using` the class as defined below. Put the class definition in a separate header file, and put all the functions' code in a separate Resource file.

  Create a base employee class

Create a base Employee class and a derived StudentEmployee class

  Implement a program for special atm machine

Association supplies the needy person with a pin number to be able to use the ATM machine - Implement a program for this machine. Your program must start by displaying a main menu.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd