Prepare an accounting for a dorm''s kitchen

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

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: EM131627

Questions Cloud

Write a java program in a netbeans project : Write a Java program in a NetBeans project
State the thesis of your essay : State the thesis of your essay
Trinco ltd - business statement : Advise managers whether or not this contract is profitable. All assumptions must be clearly stated.
Solve the programming problem : Solve the programming problem
Prepare an accounting for a dorm''s kitchen : 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.
Fixed income securities : Explain why the price of the putable bond approaches the price
Calculate the output value of problem : Design a program that reads in a text file with drawing commands and then outputs a bitmap with all the items drawn correctly
Intermediate programming : Design a program that reads in a text file with drawing commands and then outputs a bitmap with all the items drawn correctly
Evaluate the maximum height reached by the sphere : Evaluate the maximum height reached by the sphere, and the distance traveled by the block.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write two short c programs and solve exam-style problem

Write two short C programs and solve four exam-style problems.

  Calculate the trajectory of a soccer ball

Write a program to calculate the trajectory (flight path) of a soccer ball

  Implementation of sorting technique

Implementation of sorting technique

  Iterative programming problem solving approaches

Write a recursive function void reverse ( ) that reverse a sentence

  C++ programming uml diagrams

The goal of this lab is to better familiarize you with polymorphism and the factory design pattern, two key components in Assignment

  Model-view-controller

Explain Model-View-Controller paradigm

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Develop a basic temperature class

You have to develop a basic temperature class

  Design a nested program

How many levels of nesting are there in this design?

  Computer programming using c language lab

Computer programming using c language lab

  Structured programming using procedural languages

A a program that is called "Playing with Numbers or Letters".

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