WiredWX Christian Hobby Weather Tools
Would you like to react to this message? Create an account in a few clicks or log in to continue.

WiredWX Christian Hobby Weather ToolsLog in

 


descriptionHi Guys EmptyHi Guys

more_horiz
Hi Guys,

Good day to all,

I am new to programming here. I would like to learn all about Visual C++. I am using the latest Microsoft Visual C++ Express now. Due to I need to complete my assignment here, I'm rushing to learn all that I need to know to complete my assignment which is going to due on 22-Feb-2009. Any good website that I can visit to learn more?

My assignment question is consider quite simple though but I do not want to be spoonfed as well. I really hope that I can build the whole program myself. Hehehehe.
---------------------------------------------------------------------------------------
My topic of assignment is create a simple book rental system. My question would be like the below :-

Object Oriented Programming in C++:

Question 1

Object-oriented programming is based upon objects, classes, abstract data types, messages, inheritance and polymorphism. Discuss these concepts with appropriate code examples and the advantage of each concept to show why object-oriented programming is better than structured programming.
[10 marks]

Question 2

For this assignment the students are asked to write a simple book rental system that maintains customer book rentals, book returns, payments and fines (which is applicable to late book returns).

You own a rental bookshop in Orchard, and there is an increase in borrowers, which give many problems in managing the bookshop. The rental bookshop offers academic texts, which are used by students from secondary school to University. The problems are as followings:

•Problem in stock take every month, for examples, the books in the shop are not tallying against the book log that contains the number of books that are on loan and in the shop. (I have no idea how to solve this)
•Problem to track the books on loan are overdue or not (Maybe i can take the actual borrow date and minus with the return date and if its more than certain amount of days, fine will be applied).
•Who are the borrowers(Create a string variable to get user's name during first time borrow books)
•Customers are unhappy with the shop assistance as they provide inaccurate information about the book status(Create a function that can set an amount of books and will update automatically each time someone borrow some books).
(The bold words are my idea of how to solve the issue).

You are hired by the owner to design an object-oriented system to manage the shop using C++.
Students’ implementations must explicitly demonstrate object-oriented skill and concept. Failure to achieve for this assignment even though the program works as per specification requirement, the examiner will not hesitate to fail the student.

The program must contain a Menu screen that allow the user to choose the selection to go to different process such as Add new Customer, Delete old Customer, Book Rental, Book Return, Payment and Exit and must address the problems stated above.

The code documentation and the approach in defining the implementation are as important as the program must work. The examiner will examine all aspects of the assignment, not only the functionalities of the program.
[30 marks]

Hints:

1.The interface should be in DOS and no graphic display is required.
2.The user interface should be user-friendly and easy to understand. The candidates must make use of output statements to provide instructions for each operation.
3.The customer payments and fine amount should be displayed with 2 (two) decimal places.
4.Candidates must ensure that there should be no negative payment (outstanding fines) and should prompt the user with a suitable message should such an illegal operation occur.

Instruction to Students:

1.Complete the cover sheet and attach it to your assignment as the first page.
2.Submit a hard copy of the program codes and the screen capture along with the softcopy of the programs to your instructor.
3.Students are to carry out proper validation and need to provide at least 10 test cases.
4.Failure to submit the softcopy of the program will result in automatic failure.

Any advice on how i should start off with?

Thanks in advance.

I sort of like figured out how to even used the program already which actually took me quite sometime, I have the coding as per below now :-

--------------------------------------------------------------------
// RisingStore.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include
using namespace std;

void main(){
cout <<"Welcome to RisingStore System"< cout <<"Please select an option from below"< cout <<"1. Rent a book"< cout <<"2. Return a book"< cout <<"3. Book Payment"< cout <<"4. Fines"<}
--------------------------------------------------------------------
Questions
1. How to i align (a) to center of the screen?

descriptionHi Guys EmptyRe: Hi Guys

more_horiz
For question one, I think these could help you:

http://en.wikibooks.org/wiki/The_Computer_Revolution/Programming/Object_Oriented_vs._Structured_programming
http://askville.amazon.com/Compare-Contrast-Structured-programming-Object-Oriented/AnswerViewer.do?requestId=2470573
http://searchoracle.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid41_gci1073521,00.html

For extra resources, these should be useful:

http://www.stanford.edu/class/cs193d/handouts/04-A-Crash-Course.pdf
http://www.codeguru.com/forum/
http://www.daniweb.com/forums/index.php

Good luck with your exam

............................................................................................

Hi Guys Segmen10

FunSubstance is the place to go for daily entertainment.
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum