Design the necessary classes and member functions to achieve

Assignment Help Electrical Engineering
Reference no: EM13293128

A mini-mart has just installed a bar codereader to improve efficiency at their checkouts. Assume that the bar code is to access a filethat store the product descriptions, unit price and quantity of each product sold in the shop. Assume that there are only 10 products in this mini-mart.
The format of the product stored in the file is shown below :
Barcode : a text string of 4 numeric character
Product description : a text string of 20 characters
Unit price : a floating pointvalue
Quantity : an integer
Design the necessary classes and member functions to achieve the following tasks :
a. Read the list of products available inthe mini-mart from a text file.
b. Allow user to enter the bar code of aproduct via keyboard and the quantity purchase during check out.
c. Display the product description, unitprice, quantity and the total cost of all the products bought by acustomer.
d. Update the quantity of each product instock after a purchase is done.
e. Write the bar code and productdescription to a text file if the level of stock is less than 10.
f. Continue the program until user press a‘Q' to exit.

Reference no: EM13293128

Questions Cloud

The growth rate of output per capita will be greater in b : Suppose there are two countries that are identical with the following exception. The saving rate in country A is less than the saving rate in country b. Given this information, we know that in the long run
How the pressures of helium compare : You are holding two helium balloons (each is identical) a large and a small balloon. How do the pressures of helium compare
Design an armstrong indirect fm modulator to generate fm : design an Armstrong indirect FM modulator to generate an FM carrier with a carrier frequency of 96 MHz and Df= 20 kHz. A narrow-band FM generatorwith fc = 200 kHz and adjustable Df in the rangeof 9 to 10 Hz is available.
Explain chloride ions and carbonate ions were present : If you had a mixture of NaCl and Na2CO3, would the action of concentrated H2SO4 enable you to decide whether both Chloride ions and carbonate ions were present
Design the necessary classes and member functions to achieve : A mini-mart has just installed a bar codereader to improve efficiency at their checkouts. Assume that the bar code is to access a filethat store the product descriptions, unit price and quantity of each product sold in the shop.
Solve one side of the problem correctly : Point for solve one side of the problem correctly and points for solve both sides of the problem correctly
Explain the enthalpy of fusion at the temperature : given that the normal melting point of cyclohexane is 6.47 degree C and the enthalpy of fusion at this temperature is 2.68 kJ/mol. State any assumptions or approximations made.
What is the force exerted onto your feet during the landing : You are jumping down from a small ledge 0.7 m high onto a concrete floor. what is the force exerted onto your feet during the landing
How far will she coast : An ice skater slides at a speed of 25 km/h on a level ice track. At this point she allows herself to coast to a complete stop

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

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