Create Application That Calculates The Occupancy Rate For The Hotel?

Jul 6, 2011

The program is a hotel occupancy form The Hotel has eight floors and 30 rooms oneach floor. I'm supposed to create aapplication that calculates the occupancy rate for the hotel. Theoccupancy rate is the percentage of rooms occupied, and may becalculated by dividing the number of rooms occupied by the number ofrooms. For example, if 18 rooms on the first floor are occupied, the occupancyrate is: 18/30 = .6 or 60%. The form has two out labels called totalrooms occupied and overall occupancy rate that holds two output text boxes todisplay the numbers
its only three buttons Calculate report,close, and exit Its obvious what the exit buttons issupposed to do the clear button should clear all the controls on the floor

Now the complete report button is supposedto loop and iterate eight times. Each time the loop iterates, it should displaya input box for one of the hotel floor. The input box should ask the user asksthe user the user to enter the number of rooms occupied on each floor. As theuser enters a value for each floor, the loop should calculate the occupancyrate for that floor and display the information for that floor in a list box.When the number of occupied rooms has been entered for all floors theapplication should display total number of rooms occupied an overall occupancyrate for the hotel. (the hotel has a total of 240 rooms total)

[code]...

View 6 Replies


ADVERTISEMENT

Create An Application That Calculates The Occupancy Rate For Each Floor?

Oct 29, 2009

The hotel has 8 floors and 30 rooms on each floor. Create an application that calculates the occupancy rate for each floor, and the overall occupancy rate for the hotel. The occupancy rate is the percentage of rooms occupied, and may be calculated by dividing the number of rooms occupied by the number of rooms.When the user clicks the "Complete Report" button, a loop should execute and iterate 8 times. Each time the loop iterates, it should display an input box for one of the hotel's floors. The input box should ask the user to enter the number of rooms occupied on that floor. As the user enters a value for each floor, the loop should calculate the occupancy rate for that floor, and display the information for that floor in the list box. When the number of occupied rooms has been entered for all the floors, the application should display the total number of rooms occupied and the overall occupnacy rate of the hotel.I have some of the code but I'm not sure which way to go now!

[Code]...

View 14 Replies

Application Function To Calculates The Total Cost Of A Stay In A Hotel

Nov 29, 2010

Create an application that calculates the total cost of a stay in a hotel If the check in occurs in November-March the rate is $89/night. April-August is $99/night and September-October is $109/night. $10/night should be added if more than 2 people are in the room. More than 4 people are not allowed in the room, and a traveler can only request 1 room. A 15% tax should be added to the room rate and 10% tax added to all room service and other charges. No tax will be added for phone charges.

The program should use a function to calculate the total charges for the visitor's stay and output it to a label. There should be buttons or menus to calculate the total, clear the form, and exit the application. At least one of the button should call a sub procedure which performs its function. [Code]

View 1 Replies

Hotel Occupancy FormHelp?

Jun 22, 2010

it's not perfect but, I am terrible when it comes to calculations... what am I doing wrong? ;-;

' This procedure calculates and displays each floors occupancy rate.

Dim intCount As Integer ' Loop counter
Dim decoccupancy As Decimal ' occupancy rate

Calculate the occupancy rate for each floor, the total of all occupancy rates , and the total rooms occupied.

[code]...

it's telling me to divie the number of rooms by the occupied rooms... 18/30 = .6 or 60% and the hotel has 240 rooms

View 8 Replies

VB Coding - Program That Calculates Minutes Worked Times Pay Rate Equals Amount Of Weekly Pay

Mar 16, 2011

I am trying to build a program that calculates the minutes worked times pay rate equals amount of weekly pay this is what I got but it doesn't calculate

CODE:

View 3 Replies

Create An Application That Calculates The Total Cost?

Apr 26, 2011

Create an application that calculates the total cost of a stay in a hotel in the North Carolina mountains. The application should accept the following in terms of input:Month of Check in Length of Stay (in Nights) Number of Persons Room Service Charges Phone Charges Other Charges If the check in occurs in November-March the rate is $89/night. April-August is $99/night and September-October is $109/night. $10/night should be added if more than 2 people are in the room. More than 4 people are not allowed in the room, and a traveler can only request 1 room. A 15% tax should be added to the room rate and 10% tax added to all room service and other charges. No tax will be added for phone charges.

The program should use a function to calculate the total charges for the visitor's stay and output it to a label. There should be buttons or menus to calculate the total, clear the form, and exit the application.At least one of the button should call a sub procedure which performs its function. I don't understand how to set this program up and I'm not sure what it means.

View 4 Replies

Create An Application That Calculates And Displays A Customers Bill?

Apr 21, 2010

Using VB2008 I need to create an application that calculates and displays a customers bill.Business customers must have one connection.

Heres the data

Residential customers:
Processing fee: $4.50
Basic service fee: $30
Premium channels: $5 per channel

[code]....

View 8 Replies

Create An Application That Calculates Body Mass Index?

Nov 10, 2009

I am working in Visual Basic 2008 and am trying to create an application that calculates body mass index. I have the entire form complete as well as much of the source code, but I am having trouble creating the code for input validation. On the form I have a text box for entering weight and a text box for entering height, which are both used to calculate the body mass index. Therefore, both text boxes input information cannot be negative or an illegal character ( $, @, !...) The input validation is supposed to present a Message Box that displays something along the lines of "Please enter numeric values" when input values are illegal characters "Please enter a positive number" when input values are negative "Invalid Entry" when input values equal 0

Here is my code:

Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
' Declare local variables

[Code].....

View 3 Replies

Create An Application That Calculates Registration Fees For A Conference

Apr 24, 2009

create an application that calculates the registration fees for a conference. The general conference registration fee is $895 per person. The is also an optional opening night dinner with a keynote address for $30 per person. additionally, the optional preconference workshops listed in table 7-16 are available. [code] When the user clicks the select conference options button, it should display the conference option form the conference options allows the user to select the regular conference registration, the optional opening night dinner, and an optional preconference workshop.(the user cannot register for the optional events, however, without selecting the conference registration of $895.) when the close button is clicked the conference form should be removed form the screen and the total should apper on the main form. [code]

View 1 Replies

DB/Reporting :: Calculate Rate For 3 Days In Different Rate Like Public Holiday,weekend And Normal For 1 Room?

Aug 19, 2009

how to calculate rate for 3 days in different rate like public holiday,weekend and normal for 1 room

View 2 Replies

How To Create Form That Calculates QB Ratings

Sep 19, 2009

I am creating a form that calculates QB Ratings but its not coming out right. The formula is found here

My code:
Dim a, b, c, d As Integer
a = (Comp.Text / Att.Text * 100 - 30) / 20
b = (Yards.Text / Att.Text - 3) * 0.25
c = Tds.Text / Att.Text * 20
d = 2.375 - (Int.Text / Att.Text * 25)
Rating.Text = "QB Rating:" & ((a + b + c + d) / 6) * 100

Number set 1:
22 complete
36 Attempt
2 touchdowns
0 Interceptions
229 yards
It should come out 98.0 but comes out 100

Number set 2:
16 complete
37 Attempt
0 touchdowns
3 Interceptions
205 yards
It should come out 27.4 but comes out 33.3

View 6 Replies

Call It Frame Rate Or Refresh Rate Of A Process?

Mar 25, 2012

How can I speed up a process? I see I should use timegettime, gettickcount, and queryperformance counter, but I have no clue where to start.

I guess you can call it Frame Rate or Refresh Rate of a process?

View 1 Replies

Payroll Calculator : Indicate If The Tax Is At Single Rate (18%) Or The Family Rate Of (15%)?

May 7, 2009

i am trying to indicate if the tax is at single rate (18%) or the family rate of (15%)This is what i got so far i could do the rest but just cant do the Mstatus part.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Name As String 'Name of employee
Dim hrWage As Double 'Hourly wage
Dim hrsWorked As Double'Hours worked this week

[code]....

View 1 Replies

Create A Program That Calculates The Amount Of Quarters?

Oct 28, 2010

VISUAL BASIC 2008. Program Description: Create a program that calculates the amount of quarters, dimes, nickels, and pennies are needed from an amount of change (entered in pennies). The program should use the largest coins possible (for example, fifty cents should use two quarters, not five dimes, fifty pennies, etc.)

I don't want the code already written out, I need somebody to walk me through making a code. Also, this is my first class dealing with computer programming so all we've learned so far is declaring variables and how to label objects, the simple stuff. I'm at a loss at how to start because a quarter is worth 25 but the program is supposed to show how many quarters once a user enters the amount in cents.

View 5 Replies

Created An Application That Calculates And Displays The Quarterly Payment?

Sep 27, 2009

I have created an application that calculates and displays the quarterly payment on a loan but when i run the application the paymnet amount is showing with () around the amount I can't figure it out.

[Code]...

View 3 Replies

Creating An Application That Calculates Render Times For Maya?

Sep 21, 2010

I'm creating an application that calculates render times for Maya. I kinda got bored of coding all the technical stuff so I started to mess around with the interface. I'm trying to create a combobox color picker.

View 5 Replies

Create A Loop On Timer1 To Control The Rate Of Timer 2?

Jun 24, 2009

Are u able to take a look at this code and see how can I create a loop on timer1 to control the rate of timer 2... Coz this is the code that my lecturer had amended..

[code]...

View 18 Replies

Application To Test Network Speed (Transfer Rate)

Feb 11, 2009

Lately our network is having some speed issues at certain times of day, so what I'd like to do is make a little app that will test the network speed at certain intervals, like once an hour between certain servers etc and then write the results to a text file. Is VB 2008 cable of doing something like this? I thought of maybe copying a 500mb file from 1 place to another and somehow record the average transfer rate of that file, but I am not exactly sure about how to record the transfer speed.

View 4 Replies

Create Pay Calculator Where Would Enter Total Minutes Worked And Hourly Pay Rate

Mar 27, 2009

I have this homework assignment where we have to create a pay calculator where you would enter the total minutes worked and the hourly pay rate. and then i have to create the code to show what the total weekly pay would be. I have to display the Hours Worked: and the Leftover minutes: I also know that the formula to calculate the weekly pay is totalMinutesWorked / 60 = hoursWorked and i have to use the Mod operator. [code]

View 2 Replies

VB 2008 Code The Calculations For A Pocket PC Application That Calculates The Cost Of A Cell Phone Bill?

Feb 19, 2010

I'm having trouble figuring how to code the calculations for a Pocket PC application that calculates the cost of a cell phone bill. From a Pocket PC the user should enter the number of minutes used during the past month, in order to calculate the cost of the cell phone bill. The plan allows 300 minutes for $29.95 per month. For each minute over 300 the cost is $0.17 cents per minute. Tax and Fees are $4.85 a month.

1. User enters the number of minutes used during the past month.

2. Based on plan rate of 300 minutes for $29.95 and 17 cents for each minute over 300 calculate the cost of the bill including the fixed cost of $4.85.

3. The user must be able to initiate the calculation and display the individual charges and the total cost of the cell phone bill.

4. The user should be able to clear the number of cell phone minutes, the individual charges and the bill total

If negative number is enterd for the cell phone minutes, the user should be advised and asked for a valid entry If non numeric value entered for the cell phone minutes, or if left blank the user should be advised and asked for a valid entry.Application is deployed on the Pocket PC emulator built in VS 2008

Enter # of Minutes ________ (user enters)
Regular Minutes Charge ___ (29.95)

[code]....

View 1 Replies

Percentage / Discount For Hotel Quote Form

May 1, 2011

I made a hotel quote form where I want to add a discount box where the user can enter a percentage discount off the total price. What is the code to do that? [code]

View 11 Replies

Hotel Reservation - Show That The Rooms Is Occupied Or Not By Using A Label For The Rooms?

Mar 18, 2009

how tell availabilty of rooms .I am having a hotel reservation system just wanna ask if how can I show that the rooms is occupied or not by using a label for the rooms

View 2 Replies

Make A Small Program For Ticketing On A Parking For A Small Hotel?

Aug 27, 2010

I need to make a small programm for ticketing on a parking for a small hotel.So i have 2 Printers pariking In (for delivery of the tickets) and 2 Readers PArking Out.Both Printers and REaders are working Serial.So i need to poll the serial ports of the printers and readers every second.The data is stored on a SQL database so i need to read and write in the database.Can i do this with 1 PC and 1 programm or 1 PC and 4 programms that are runnning at the same time ?

View 2 Replies

Hotel Booking System Programme - When Booking Button Is Clicked It Can Search A Database And Find The Best Suited Room

Jun 22, 2010

I have created a hotel booking system programme. However, I am puzzled as to how when the booking button is clicked it can search a database and find the best suited room (RoomType) and make sure that it is available (Date of Departure < system.date).

This data is held in two tables (Access):
Booking:
BookingID (Primary Key)
CustomerID (Foreign Key, Table:Customer)
Date of Arrival (Date)
Date of Departure (Date)
RoomID (Foreign Key,Table:Room) Room:
RoomID (Primary Key)
RoomType (Text)
RoomPrice (Currency)
Floor (Number)

This has all got to be done within a single button click. Any ideas as to how I can place this into my vb code?

I have a rough query for picking a room that is best suited:

Code:
SELECT roomID
FROM Room INNER JOIN Booking ON Room.RoomID = Booking.RoomID
WHERE Room.[Room Type] LIKE '" & Room_TypeTextbox.Text & "'"
AND Booking.[Date of Departure] < Now()

I have been trying for a while to get it to select a single matching record as there is a high chance that this query will return multiple records but im unsure on how to deal with that.

View 16 Replies

Bind A Data Table To Display Column "occupancy" Inside Of Combo Box "Wall1occ"

Nov 17, 2010

I am trying to bind a data table to display column "occupancy" inside of combo box "Wall1occ" I must admit I am very out of practice with my VB coding. Here is my code:

[Code]...

View 8 Replies

Make A Program That Calculates The X's?

Dec 25, 2010

I'm trying to make a program that calculates the x's for you using the abc formula. Now i have made it, it gives a value of "NaN" as output. I don't know where i went wrong, so I hoped one of you could help me with it.

Here is the code I made:

[Code]...

View 7 Replies

When Does The Computer Calculates Enumeration

Nov 30, 2009

when does the computer calculates Enum?in other words wiill this 2 be Exactly the same?

dim a = 1
dim a = myenum.value_equates_to_1

i've got a feeling its faster when we do not use enum, just wanted to make sure

View 15 Replies

Programm Which Calculates KiloGramm Price In VB6

Aug 26, 2009

I have programm what calculates KiloGramm price.It works so that if I enter the amount(in KG) and price then it calculates the Kg Price.
But it calculates wrong when I insert "," not "." . My programm code is so:

[code]...

View 8 Replies

Forms :: Calculates The Registration Fees For A Conference

Apr 24, 2009

how can i calculate the registration fees for a conference?

the general conference registration fe is $895 per person. There is also an optional open night dinner with a key note address for $30

fee
introducion to E-Commerce $295
The future of the web $295
Advance Visual Basic $395
Network Security $395

the application should have to forms...which i ready made...

when the user clicks the select conferece button the form shown which i made should apper<<<i got that part done =)

. the user cannot register for the optional events, however without selectiing a conference registration of $895 ..when the close button is clicked this form should be removed from the screen and the total registration fee should apper on the main form<<<<<<< this one is the one i need to do

[Code].....

View 2 Replies

MDI Parent Client Size Calculates Incorrectly?

May 4, 2010

[URL]...The link above is a thread showing the application I'm working on. (2008 Pro)I have since created an MDI Parent form which holds my 16 camera forms. What I am having trouble with is dividing the MDIParent's Width and Height by 4, to display 4 equal height/width camera forms within it.

I've tried all the available properties (Rectangle, ClientArea, etc) and none seem to calculate correctly.Using Me.Width and Me.Height ALMOST worked, but again, it was about an inch too skinny and short.

What do I need to do in order to retrieve the exact size of the MDIParent's Client Area?

View 6 Replies







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