The purpose of the program is to prepare an accounting

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

The "purpose" of the program is to prepare an accounting (database) for e.g. a dorm's kitchen, to keep track of the consumption of beer for each room.

First of all, the whole structure of the program needs to be changed more or less. Though, a big part of the code can be reused and therefore mostly only changed.

The program shall have the following functions. These functions are more or less the same as the existing functions in the included code, though the functions-name are a bit different.

1*"OpretBeboere" which means "CreateResident": data-input is room-number, name on resident and beer-consumption

2*"UdskrivBeboere" which means "PrintResidents": Output (print) is a list including room-number, name on resident and beer-consumption

3*"Betalingsoversigt" which means "PaymentHistory": Output (print) is a list including room-number, name on resident, beer-consumtion and beer-debt (price*beer-consumption)

4*"SoegEfterVaerelse" which means "SearchForRoom": Input is room-number and output (print) is name and beer-consumption

5*"FindMinMaks" which means "FindMinimumMaximum": Output (print) is room-number, name of resident and beer-concumption for the residents with the highest and lowest beer-consumption. If there are many residents with equal number of highest and lowest beer-consumption, then these shall also be printed.

Remarks:

*The function 1 CreateResident shall check if the room-number is already created, if so, then the function must print a text saying that the roomnumber already exist, and then ask to try again.

Then the program shall be extended to include three more functions:

6* SortByRoomnumber: The created list shall be sorted by room-number

7* SortByBeerConsumption: The created list shall be sorted by beer-consumption

8* SearchForResident: Input data shall be name on resident and output (print) shall be room-number and beer-consumption

Reference no: EM13347694

Questions Cloud

Write a java program in a netbeans project that reads a : write a java program in a netbeans project that reads a text file containing the names and addresses of several people
1 state the thesis of your essay if you do not know what a : 1. state the thesis of your essay. if you do not know what a thesis is in relation to writing an essay or if you do not
Trinco ltd trinidad amp tobago-tampt has been negotiating a : trinco ltd trinidad amp tobago-tampt has been negotiating a contract with a potential customer in jamaica. before the
Questions mylocation sdword : questions mylocation sdword 14thetestnbspnbspnbspnbspnbspnbspnbsp sdword 8nbspnbsp nbspmovnbspnbsp
The purpose of the program is to prepare an accounting : the purpose of the program is to prepare an accounting database for e.g. a dorms kitchen to keep track of the
1 analysis of the bond issuea show that the price of the : 1. analysis of the bond issuea show that the price of the bond is equal to that of a portfolio which containsi a long
Write a step-by-step plan including comments that reflect : write a step-by-step plan including comments that reflect changes to the machine state to solvequestion 1. input a b
1 design a program that reads in a text file with drawing : 1. design a program that reads in a text file with drawing commands and then outputs a bitmap with all the items drawn
Problem 1 a 25 lbf block b is moving with a velocity vo of : problem 1 a 2.5 lbf block b is moving with a velocity vo of magnitude vo 6fts as it hits the 1.5 lbf sphere a which is

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Calculate the component voltages

Calculate the component voltages for the following series resonant RLC circuit

  Write a driver program called testrationalnumber.cpp

Write a driver program called testRationalNumber.cpp to test each of the above functions and overloaded operators in the RationalNumber class.

  A company hired 10 temporary workers

A company hired 10 temporary workers who are paid hourly and you are given a data file that contains the last name of the employees, the number of hours each employee worked in a week, and the hourly pay rate of each employee.

  Calculate the total of a purchase from a farmer''s market

You will develop a program that can calculate the total of a purchase from a farmer's market that sells apples, bananas, and oranges. At this particular market, apples are $1.99/lb., bananas are $0.99/lb., and oranges are $1.50/lb. Users should be..

  Array of integers declared-initialized to number of tickets

Array of integers named parkingTickets has been declared and initialized to number of parking tickets given out by city police each day as beginning of current year.

  Write a program with a while loop to print 1 to n in square

Write a program with a while loop to print 1 to N in square brackets. N is an integer input from the user. (i) Write the same program using a for-loop

  Write in c++. read an inputfile.txt

write in C++.  read an inputFile.txt which contains integers that are virutal addresses, and I am suppossed to translate that into physical addresses using a page table and a transition lookaside buffer

  Write a c++ program to choose two three-digit primes

Write a C++ program to choose two three-digit primes and an encryption exponent (3 or 17 may do nicely).

  Design a class box that defines a box on a floor

Design a class box that defines a box on a floor. A box has a number and an (a,b) location where a and b are numbers between -5, and 5.

  Find the sixth maclaurin polynomial for sin x

Find the sixth Maclaurin polynomial for sin x and use Chebyshev economization to obtain a lesser-degree polynomial approximation.

  Composite data types (arrays & records)

Composite data types (arrays & records) can be a problem when they are passed as parameters or returned by functions. Why?

  Write a program that reads in an integer

Write a program that prompts the user for a measurement in meters, and then converts it in to miles, feet, and inches.

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