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

  C write a function which adds the two numbers

1. In C write a function which adds the two numbers. Test this function by calling from the main. In main, the user should be asked to provide the two numbers.

  Program that read in from the key board a string

Write a complete C++ program that read in from the key board a string and convert all letters in the string to upper cases. You are not allowed to use toupper function.

  Implement a cardiac machine simulator in c++

keep track of the bug location; which could be an index into the memory array. Watch out for cells 0 and 99; they are special.

  Write a program that asks the user to enter an integer

Write a program that asks the user to enter an integer between 1 and 15. If the number entered is outside that range, your program should print out an error message and re-prompt for another number.

  Advantages and disadvantages of using iso standards

Discussion Questions from the book "A Guide to Computer Forensics and Investigations" 3rd Edition

  Arithmetic instructions and a branch instruction

A computer system is using pentium-5 processor with 5 stages in pipeline processing with cycle time of 5ns, whereas another computer system is using pentium-7 processor with 7 stages in pipeline processing with cycle time of 3.75 ns.

  Write a menu driven program for an online beef

Write a menu driven program for an online beef distribution company. There are 8 different

  Create a structure array

Create a structure array of at least 10 imaginary students in the class - choose names, numbers and marks randomly - they do not have to relate to real students in your class. Each student structure must contain the following fields:

  Write a program to determine how long ball moves

Using the v2 form of drag, write a program to determine how long (sec.) and how far (m) a 150 gram ball whose radius is 3.5cm would fall before it reached 75% of its terminal velocity.

  Prompts the user to enter the mass of a person

Write a program that prompts the user to enter the mass of a person in kilograms and outputs the equivalent weight in pounds. Output both the mass and the weight rounded to two decimal places

  Develop the implementation file student.cpp

The data fields have self explanatory identifiers, and their meaning should be clear from the Introduction.

  Implementing calculator functionality

Implementing Calculator Functionality. If when you load your project you have an error panel appear that tells you the Designer view could not be loaded, close this panel and right click on CalculatorForm.h in the Solution Explorer and select View ..

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