arrays

Completado Publicado Jun 15, 2002 Pagado a la entrega
Completado Pagado a la entrega

borland c++ programme needed

## Deliverables

You have been asked by MYELEC Limited to create a program that will allow the user to calculate the number of electricity units used by a customer so that the actual monetary amount owed can also be displayed. To do this you are required to adopt the following approach: Your solution must be function based. Your data should be stored in arrays. Your solution should contain a menu with these options: Initialise records Enter customer's new readings Display single customer's record Display all customer records In order to facilitate the solution, you should create the following functions and name them as shown: initialise ( ) This function should initialise the relevant arrays with the customer's id, name, address, postcode and previous reading. enterNew( Each customer's details should be displayed one by one, and the user asked to key in the new meter reading. The old and new meter readings should then be passed into the following function: validate( This function should validate that the old and new readings are in fact the right way round (the new reading being greater than the old reading) and once the inputs are correct, it should RETURN the actual number of units used. The number of units used should then be passed into the following function. used( The amount of electricity used should then be calculated for each customer and the relevant charge to the customer should be calculated (based on the charge of [url removed, login to view] per unit used). displayAll( Once all amounts have been calculated, the name, postcode and charge should then be displayed for ALL customers simultaneously on a screen. displayOne( Using a search routine, ask the user which customer they would like to view and then view ALL the relevant information on a single screen. Please construct a Data table as part of your pseudocode, using the following layout: Identifier Local/Gb bal? Function Type Constlv ar Value Description The name of the variable Whether it is local or global If local, which function it appears in. If global write "All". character , integer, array of... etc. constant or variable if a constant, what initial value is it set to. What the variable is used for. Tasks: 1. Write the code to meet the above specification. 2. Pseudocode should be written for the validate() and displayOne( ) functions, AND for one other function of your choice (or the main body of the program). 3. Create a data table to support the program. What you should submit: A minimum of a printed copy of your source code and your pseudocode and a disk containing the source code and an executable version of your source code.

## Platform

borland c++

## Deadline information

please see attached files for description of actual work to be carried out

Programación en C Ingeniería Microsoft MySQL PHP Arquitectura de software Verificación de software Windows Desktop

Nº del proyecto: #2855929

Sobre el proyecto

17 propuestas Proyecto remoto Activo Jun 18, 2002

Adjudicado a:

maximus798

See private message.

$22.1 USD en 14 días
(4 comentarios)
0.9

17 freelancers están ofertando un promedio de $38 por este trabajo

sanatanvw

See private message.

$42.5 USD en 14 días
(72 comentarios)
5.5
srazakvw

See private message.

$63.75 USD en 14 días
(35 comentarios)
5.0
vw139994vw

See private message.

$42.5 USD en 14 días
(60 comentarios)
4.5
belovlabs

See private message.

$50.15 USD en 14 días
(33 comentarios)
4.0
narphorium

See private message.

$25.5 USD en 14 días
(29 comentarios)
3.6
juanricheri

See private message.

$63.75 USD en 14 días
(10 comentarios)
3.5
rozarus

See private message.

$42.5 USD en 14 días
(53 comentarios)
3.3
dinario

See private message.

$21.25 USD en 14 días
(16 comentarios)
3.1
coderdudevw

See private message.

$42.5 USD en 14 días
(5 comentarios)
1.3
gauravbharara

See private message.

$21.25 USD en 14 días
(2 comentarios)
0.7
vijendervw

See private message.

$24.65 USD en 14 días
(4 comentarios)
0.4
ckingvw

See private message.

$42.5 USD en 14 días
(1 comentario)
0.0
rohitpuja

See private message.

$51 USD en 14 días
(0 comentarios)
0.0
rgillis

See private message.

$10.2 USD en 14 días
(0 comentarios)
0.0
ajmedia

See private message.

$42.5 USD en 14 días
(0 comentarios)
0.0
therealdrrobin

See private message.

$34 USD en 14 días
(0 comentarios)
0.0