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

  The program will read integers values

Write a C++ program to do the following. The program will read integers values one at a time from standard input (cin) until you read the value 150. assume that the number of values read in is at least 1 and less than or equal to 100

  Program to add numbers and display sum

For each of problems write C++ code to do the required task. Receive the number and find out whether it is odd or even.

  Prompt the user for and read 6 numbers

Write a program using an array that will store input data. Prompt the user for and read 6 numbers between 70 and 90. Verify the numbers should be greater than 70 and less than 90. If the number is less than or equal to 70 or greater than 90, repro..

  Need c++ solution to cover the final stage of euro 2012

From Group Fase to elimination fases, it´s not the user who defines teams, because that must be made automatically according to classification in group fase - considering regulations.

  Calculate the gross pay of a set of employees

Write a C program that will calculate the gross pay of a set of employees - For each employee the program should prompt the user to enter the clock number, wage rate, and number of hours

  Write a program that will read in 5 numbers

Write a program that will read in 5 numbers and add 10 to the first number, 20 to the second number, and 30 to the third number, 40 to the fourth and 50 to the 50th.

  Compute for the monthly billing of their customers

An electric company wants to compute for the monthly billing of their customers. the company charges P2.50 per kwh and utility tax of 3% of the current bill shall be added.

  Up through 2 to the 10th power

program should compute and output all of the "powers of two" from 2 to the 0th power, up through 2 to the 10th power.

  Setup a class to store a book

Setup a class to store a book. The data is to include title, author, year of publication, dewey number and age.

  Write a program to read a data file and extract parameters

Write a C/C++ program to read a data file and extract parameters. The program must obtain the filename via a command-line argument.

  Define a class for file that is derived from document

Similarly, define a class for File that is derived from Document and includes a instance variable for the pathname. The textual contents of the file should be stored in the inherited variable text. Redefine the toString method to concatenate all t..

  Implement the appropriate methods for big numbers

You must implement each big number as a List of single digits and you must also set up the template class List based on a linked list (use the sample codes). You will need to define and implement the appropriate methods for big numbers.

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