Programming :: Small Java Program To Manage 2 Apartments?

Feb 17, 2011

this is my first post and I would like to get some help from you , so what should be the answer for this question ?:::::::::::::the question::::::::::::::::THE UNIVERSITY APARTMENTSThe University Apartments provides apartment rental to university students at affordable rates, with optional facilities:Apartment Type A, 2 bedrooms and equiped with kitchen and laundry facilities. The monthly rental for the rooms in this apartment type is RM300.Apartment Type B, 3 bedrooms includes one master bedroom with attached bathroom but does not have kitchen and laundry facilities. The monthly rental for the rooms in this apartment type is RM200 and students staying in the master bedroom will be paying an additional 40%.

Each apartment may house a maximum of 3 students. Students are required to check out from the apartment unit when the current semester ends.Create an application to manage the university apartments rental:1. Register new student and assign apartment moduleRegister and assigns an apartment to the student for 140 days from the date of registration. The module should retrieve the date automatically from the system clock and calculates the expiry date for the apartment rental. Before an apartment is assigned, the system should allow the selection of the type of apartment (i.e. Type A or B), then check for the number of occupants in the apartment. If the apartment already housed 3 students, it should recommend another apartment unit that is still available. Upon registration, student should pay a RM100 for the utility charges, rental deposit for one month and the rental for the current month.

2. Update apartment status moduleWhen a student moves out from an apartment, the apartment status is updated.3. Reporting moduleGenerates a report of apartments with full occupancy and another report for apartments where rooms are still available. 4. Search module Enable the administrator to search for a student's apartment unit using the student id as the search key. The search result should produce the student�s information and the details of the apartment that the student is staying in.The application should be developed using object-oriented concepts using Student class and Apartment class, implementing the appropriate data fields and methods for the classes. Data may be stored in collections i.e

View 10 Replies


ADVERTISEMENT

Programming :: Manage Memory To Speed Up Program?

Nov 18, 2008

I wrote a program in lcc in windows and I have to write it in gcc in unix. In lcc there was an option to use more memory than the default for the stack. The following code is working in lcc but in gcc it gives segmentation fault:

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
int main()
{

View 11 Replies View Related

Programming :: Write A Small Program That Shows Some Stockquotes And Indexes Etc On The Desktop?

Aug 29, 2010

I want to write a small program that shows some stockquotes and indexes etc on the desktop. Does anyone know how to get the quotes from google, yahoo etc? Do I rip it from the webpages or is there some other way?

View 3 Replies View Related

Programming :: Debug Remotely A Java Program With Ddd?

Jun 4, 2011

Is it possible to debug remotely a java program with ddd (data display debugger)?

View 2 Replies View Related

Programming :: Java Program Sshing To Server?

Aug 12, 2010

I am trying to write a java program and eventually a web app to do the following.1. get the server name, username, password from the user and ssh to the linux box.2. goto a folder, open a script file (the file has different function calls, I need to comment all other function calls and just un-comment the one I want to use)

#call_1
call_2
#call_3

[code]....

View 1 Replies View Related

Programming :: Java Program To Display All IP Addresses In LAN?

Feb 25, 2011

I Want to Develop Network Scanner Software. For that i need "Java Program to Display All IP Addresses in LAN".

View 3 Replies View Related

Programming :: Restart The Program Execution - Java

May 3, 2011

In gui validation if user enters string in integer requiring field, a dialog box pops out. So on clicking the button i want to stop the program execution and return to the previous jframe(either the same one or newly created object of it).

How can i handle this in java.
I tried calling main(); but it doesn't work.
Also System.exit(0); doensn't work.

View 1 Replies View Related

Programming :: Encryption And Decryption Program In Java And Using RSA Algorithm?

Feb 25, 2011

i need a program for Encryption and Decryption using RSA algorithm in JAVA ..

View 9 Replies View Related

Programming :: Where To Download To Learn / Program Java For System?

Oct 5, 2009

I went to the sun website but all I see are upgrades to JDK 6, I dont see where to download the actual JDK.

Anyone know where I can download the JDK for Linux?

View 9 Replies View Related

Debian Programming :: Memory Usage When Running Java Program

Jun 28, 2013

I have a java program that runs on Debian as a background processor. Yesterday the Java program stopped running. I looked at the memory usage, the system only had 5MB memory left, so my guess is that the java program ran out of memory to use.

However, after we restarted the java program, we could see that the free memory count started to go up. It kept going up from 5MB to over 400MB. The increase of memory happened slowly, when I measured it, I could see that with each minute passing by, there were a bit more memory added into the free memory pool, and meanwhile, the java background process was running.

I wonder why this would ever happen. It's as if our java program first brought the machine done because it consumed all the memories, then after restart, it starts to give back memories.

View 2 Replies View Related

Programming :: Java Program To Display IP Address And Host Names In Wireless?

Feb 25, 2011

"Java Program to Display IP Address and Host Names in Wireless".

View 7 Replies View Related

Programming :: Using Java Runtime - Program Which Simply Calculates The Load Average Of A Process

Feb 10, 2011

I'm new to the linux world and its been quit sometime since i've done any programming. However, I'm writing a program which simply calculates the load average of a process. In doing this I need to use the uptime command for linux in a java program. I've done a little bit of searching on the net and it mentions this is possiable by using java runtime command. Unfortunatly though I have yet to find a working example of this. I've tried just simply reading the /proc/uptime file but I have no clue how to format the 2 numbers in seconds to make it the same as if you just typed in uptime in the linux command prompt.

View 2 Replies View Related

Ubuntu :: Manage Cpu Usage Per Program?

Aug 23, 2010

Looking for a way to control how much cpu apps are allowed to use. I'm 10.04 64bit dual core.

View 8 Replies View Related

General :: Connect A Jsp Program With A Java Program?

Apr 30, 2010

I have a jsp code. After executing that code, a Java program should be executed without refreshing the page. that is, my first page is a login page which is in jsp. After logging in the next page must be displayed which is a Java code. is that possible? Can we use applet for that?

View 1 Replies View Related

Debian :: Small Program / Large HDD Footprint

May 18, 2011

I have recently dropped to a command line to run a DB server. In attempting to write a bit of Python to do this process I went to install emacs using apt-get and noticed that the foot print of the install was going to be around 130 Mb. Likewise with a couple other programs the install size was going to be a lot larger than I anticipated. I was wondering how the footprint could be so large and is there a way to install software without this blow out. While I am happy to use vi or import the code from a desktop with a GUI I think this would be interesting to know.

View 2 Replies View Related

General :: Automation - Good Console-based Program To Automatically Manage Music Collection?

May 31, 2011

I like the convenience of having a music player that manages the placement of my music files based on the tags of the files, sorting into a root music folder with Artist/Album/01 - Track Title.mp3 sort of hierarchy. Previously, I was using Banshee for this feature, as even most of the other gui music players don't have this library management feature. Now, I've been trying to use console-based applications, and I have been using mpd + ncmpcpp fairly successfully. When I download new music, it is downloaded to a specific folder, and that's not part of my music collection. My previous workflow would be to open a gui filemanager at the downloaded folder, and drag and drop those songs onto banshee, which would then make a copy of those files in my library hierarchy. Currently, I'm doing the same thing, using Banshee only as a sort of import program, then closing it and updating my mpd database, and there we go.

If at all possible, I'd like to automate this to something where I can define a watch folder, and when some magical program sees new music in said watch folder, it identifies the correct place for the files to be copied into my heirarchy, renaming folders and files to the correct format. I know I've written a lot describing, but I don't actually think this too uncommon a task, and I'm wondering if anyone has a solution for my problem.

View 3 Replies View Related

Debian Configuration :: Startup Program Screen Too Small?

Oct 10, 2015

The "System Settings/Startup Programs" window is large enough but the "Program" column is too narrow and it cannot be resized. The window can be dragged to make it larger but not the individual columns. It looks like a Java listbox with "Enabled = false" set. This occurs in Debian8 64 bit and also in Mint 17 and Mint LMDE2. I am surprised nobody else has raised the issue. I have a basic setup with 22" screen and 1680 x 1050 resolution. It occurs with Nouveau and NVidia drivers. It is not a critical bug so I have coped with it for 2 years but it would be nice to see it fixed. Unfortunately I could not upload a screen shot as "board attachment quota has been reached".

View 2 Replies View Related

Programming :: Data Structure To Manage Memory?

Oct 1, 2010

I have a mxn matric (which is my simplified way of saying it is RAM with bytes on it) Some of the locations on this metric is filled with some data and some places are empty. The mxn are very big numbers in size. I am trying to make a program so that if a system call wants to write some thing on empty locations on this mxn metric it should be able to do so without any problem. The thing which I want to understand or logic of a data structure is what data structure do you people feel should I be maintaining so that I can allocate the requested space immediately from the above mxn matric when some system call requests for some (k) number of locations from above metrics.

The logic initially I thought was to maintain a hashtable

1bytes requested----------> location 1,location 2,location 3.........location n
2bytes requested----------> location 1,location 2,location 3.........location n
3bytes requested----------> location 1,location 2,location 3.........location n

[code]....

but the problem with above logic is size of the pointers where I will be writing this problem is unsigned 64 byte.So to know location of one free byte if I am maintaining one pointer of type u64 this is not a feasible solution.

View 6 Replies View Related

Programming :: Connect To Sourceforge.net And Manage Files Trough Ftp?

Nov 30, 2010

seems that the secret way to manage sourceforge.net files without pain and blood is not revealed yet!I uploaded some files in my sourceforge project named blackwar .I want to connect to my projects folder in sourceforge.net using filezilla or gftp.I want to see my files there and manage them.

View 3 Replies View Related

Programming :: Is There Small IDE For Lconsole?

Oct 4, 2010

i'm learning C now, later C++. using DJGPP isn't so nice on MS-DOS yet, no LFNs etc. and other limitations that is only one terminal, no multitasking etc.is there a small IDE for linux console? (i'm using a celeron 333 atm). for C it would be sufficient i guess?what i would need is a wide documentation, help on .h files, includes etc.on MS-DOS i use RHIDE. later on i might use eclipse or code::blocks. read another thread about c/c++ IDE.

View 14 Replies View Related

Programming :: How To Write Small Project With C++

Dec 29, 2010

I am trying to write my first small project with C++ - implement stl list like collection class. This is what i have a the moment:

Code:

#ifndef GUARD_link_list_h
#define GUARD_link_list_h
template <class T>
struct Node {

[code]....

View 1 Replies View Related

Software :: Trying To Run Java Program ?

Mar 25, 2011

I have a problem starting a java program.

I installed and am trying to run Antelope an ant file editor. When I try to start antelope I get the trace-back listed below.

When I first tried to start Antelope it asked me where ant/lib was located. I pointed it to /usr/share/ant/lib which has 3 jar files named ant.jar ant-bootstrap.jar and ant-launcher.jar.

I am running in Fedora14. With java version "1.6.0_20"

OpenJDK Runtime Environment (IcedTea6 1.9.7) (fedora-52.1.9.7.fc14-i386)

OpenJDK Client VM (build 19.0-b09, mixed mode) and javac 1.6.0_20

When I try to start it I get

Code:

I have tried it 2 ways, one with the environment variable ANT_HOME set to /use/share/ant/lib - which has some 3 jar files - and also to /home/knox/apache-ant-1.8.2/lib which has about 25 jar files. Same error message both ways.

View 15 Replies View Related

Programming :: Create A Small Array Of 3x3 Arrays?

Jul 12, 2009

I'm trying to figure how to create an small array of 3x3 arrays such I can do

Code:

SUM1(i) = SUM1(i) + SUM2

where i goes from 1 to 8 and SUM2 is a 3x3 array.

View 2 Replies View Related

Programming :: Small Projects In C++ Using Advanced Features

Feb 4, 2010

Can any one point out links to some small projects w.r.t C++ ? Now when I say small projects. It doesn't mean building a calculator or matrix multiplication programs, nor does it mean building games, nor does it mean dealing with databases,

What I actually want is to use the advanced features of C++ like:
i.Templates
ii. Nested friends
iii.Virtual functions
iv. Operator overloading (not merely '+', '-') but '[', '<<' also

View 4 Replies View Related

Programming :: Send File With FTP From Small Version?

Feb 9, 2011

I have this problem.I need to do this:I got a small version of Linux installed in some small devices. These devices come from the provider with this small version of Linux installed.This devices should send data to some other machine in the internet. I have tested wput for this purpose with a PC which has an Ubuntu version 10 and it works fine. However, when I try wput in the small device, I get an error. It seems that the wput might need some libraries to work with the small version of Linux installed in the small device.The fact of using wput or not is optional. I just need being able to send files through ftp with this small version of Linux.The thing is that to be able to run wput in this small version of Linux, it seems that many of the needed libraries were missing. So what I did was just install all the needed libraries. But still the wput program fails in its first line.

View 14 Replies View Related

Programming :: Small Awk Script: Critiques Sought?

Mar 18, 2010

I'm not fluent in awk and would like to improve so seek critiques of this effort: stylistic, functional, whatever ...

Code:
#!/usr/bin/awk -f
BEGIN {
FS = "="
tab = " "

[Code]...

View 23 Replies View Related

Fedora :: Run A Jar (java) Written Program?

Apr 28, 2010

Trying to use the html editor 'Arachnophilia'... here are the instructions on their website. ".Open a command console (Linux: shell console), move to the Arachnophilia program directory, type "java -jar Arachnophilia.jar" For convenience, this command can be made part of a shell script, and those using X windows can easily make a desktop icon." hoping someone can explain how to run this program.. using a new install of fedora 12 (which has java)...i'm a newbie, trying to go open source on a low end laptop - LOVE Fedora .[URL]..

View 14 Replies View Related

General :: Install Java Or Any Other Program?

Apr 27, 2010

I just got linux yesterday, ubuntu 9.1, with the wubi installer. I have no previous knowledge of linux and I am having a very hard time working out how to install or run any programs, at the moment I'm trying to get java to work.

View 4 Replies View Related

General :: Run Commands Using A Java Program?

Apr 9, 2010

I want to execute Linux commands using a Java program. I came to know that we can use Runtime.getRuntime().exec("commands") to execute the commands through the program. I'm new to both Linux and Java.

View 2 Replies View Related

Programming :: Proofread Prompt / Small Error Can't Find?

Jun 1, 2011

I've set the following as my prompt:... can't post the string due to the 15 post rule. how helpful....

Everything looks fine initially.
1- It sets the username and host in back on green text.
2- It then changes to an off-white an prints the command number for the terminal.
3- Next, it prints the working directory.
4- Finally is prints a ">" character and a space. it looks like this (hostname/un edited & image enlarged slightly to make it easier to read.)

The problem occurs when I try to "up arrow" to reuse and/or edit a prior command. It prints the prior command fine, but if I arrow over to edit the command sometimes the first character can not be deleted from displaying

I'd love to post 2 screen-shots I took to show the problem but.. 15 posts?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved