Use Google to search for articles discussing the built-in security features of at least two web browsers. Submit your findings in a brief 250 word essay.
In: Computer Science
Java homework problem. This is my hotel reservation system. I'm trying to add a few things to it.
You will be changing your Hotel Reservation system to allow a user to serve more rooms and the rooms will be created as objects.
For this project you will be modifying the Hotel Reservation system to allow a user to serve more rooms and the rooms will be created as objects.
You will be create a Room object that will allow the user to set the type of room, if they want pets, and if they want Oceanview.
OV is $50 more
Pets $25 more
King, Suite and Queen style rooms and you can set the prices
You will have an array for username and password that hold 3 userNames and 3 passwords. These will be parallel arrays. I am allowed to enter username and password 3 times and then I get kicked out.
Main
The main method will keep track of information for 5 room reservations objects all for 1 night
Be sure to use looping, somewhere in the main java file.
Create a method that will catch the object and create it. Remember you can pass by reference or return the object back to the main.
Create a method to handle printing out each of the objects to the screen and the total for each room. (You can set this total in the Room Class if you wish.)
Finally Create a method that will show out the grand total.
Here is my original code to be modified:
import java.util.Scanner;
import javax.swing.JOptionPane;
import java.text.DecimalFormat;
public class hotelreservation {
public static double
roomSelection(Scanner scan)
{
String roomSelection;
System.out.print("Please enter
the type of room desired for your stay (King/Queen/Suite/Two
doubles): ");
roomSelection =
scan.nextLine();
if(roomSelection.equalsIgnoreCase("Suite"))
return
275;
else
if(roomSelection.equalsIgnoreCase("Queen"))
return
150;
else
if(roomSelection.equalsIgnoreCase("King"))
return
150;
else
return
125;
}
public static double roomOceanView(Scanner
scan)
{
String response;
System.out.print("Would you
like an oceanview room (Yes/No) ? ");
response =
scan.nextLine();
if(response.equalsIgnoreCase("Yes"))
return
45;
else
return
0;
}
public static double roomPets(Scanner scan)
{
String response;
System.out.print("Do you have
any pets (Yes/No) ? ");
response =
scan.nextLine();
if(response.equalsIgnoreCase("Yes"))
return
50;
else
return
0;
}
public static void main(String[] args) {
DecimalFormat decFormat = new
DecimalFormat("0.00");
Scanner scan = new
Scanner(System.in);
double roomReservation[] = new
double[3];
double subTotal = 0;
for(int x=0;x
{
System.out.println("Welcome to our Hotel Room Reservation Pricing
System.");
System.out.println("Please answer the following questions regarding
your reservation of room #"+(x+1)+" : ");
roomReservation[x] = roomPets(scan);
roomReservation[x] += roomSelection(scan);
roomReservation[x] += roomOceanView(scan);
}
for(int x=0;x
{
System.out.println("Total cost for room #"+(x+1)+" :
$"+decFormat.format(roomReservation[x]));
subTotal += roomReservation[x];
}
System.out.println("Subtotal:
$"+decFormat.format(subTotal));
double tax =
subTotal*0.05;
System.out.println("Total Tax
(5%): $"+decFormat.format(tax));
System.out.println("Grand
Total: $"+(decFormat.format(subTotal+tax)));
scan.close();
}
}
In: Computer Science
Britton Carter is interested in building a new hotel in Queenstown, New Zealand. His company estimates that the hotel would require an initial investment of $20 million, would produce a positive cash flow of $6.5 million a year and at the end of each of the next 15 years can be salvaged (after tax) $10 million at t=15. The company recognizes that the cash flow could in fact be much higher or lower depending on whether that area becomes a popular tourist area. It is believed that at the end of two years, a 15% chance exists in the tourism will not be spreading in that direction and yearly cash flow will be only $2.5 million for 15 years within after-tax salvage value of $7 million and 85% chance exists that tourism will be heading that way in the yearly cash flow will be $8.5 million for 15 years with an after-tax salvage value of $18 million. If the firm waits two years, the initial investment will be $25 million. The project's cost of capital is 12%. Should the firm proceed with the project today or should it wait two years before deciding? (Round NPVS to the nearest dollar) choose the closest answer
A. wait two years, the NPV of building today is $2,745,595 worst in the NPV for waiting two years.
B. Build it now since the NPV of building today is $2,38,340 better than the NPV for waiting two years
C. Wait two years the NPV of building today is $3,652,072 worst in the NPV for waiting two years
D. Build it now since the NPV of building today is $4122163 better than the NPV of waiting two years
E. Build it now since the NPV a building today is $1,580,882 better than the MPV for waiting two years
In: Finance
The typical supermarket has 30,000 different products on sale at any given time. The manager of that supermarket must determine not only what mix of products to have on hand but where to locate those products and what price to set on each one at any specific time. Usually, the price is based on a markup on the cost of the item, and the only reason the price is altered is that costs change. When you reserve a hotel room, you find that there are several different prices offered for that same room, depending on whether you work for the government, are a member of AARP or some other organization, are staying more than one night, and so on. Why doesn’t the hotel just offer a single price? These examples illustrate just a few of the many problems confronting businesses in their relations with customers. Companies do not seem to know much about their customers. For instance, companies often base prices on the anecdotal evidence of a few vocal salespeople or product managers. Even Mercedes-Benz, when it was about to launch one of its A-class models in the German market, initially proposed a price tag of DM29,500, based on little more than the belief that DM30,000 was a psychologically important barrier. Consultants point out that price has a disproportionate effect on the bottom line, far more than greater volume or cuts in fixed and variable costs. Assuming that volumes stay constant, a 1 percent price increase produces between an 8 percent and 11 percent improvement in operating profits.
So does this mean that most businesses should raise their prices? Explain your answer.
Are these businesses leaving money on the table—that is, not generating the greatest revenue they could by knowing the customer better?” Explain your answer.
In: Economics
El Durazno is the only resort hotel on a small desert island off the coast of South America. It faces two market segments: bargain travelers and high-end travelers. The demand curve for bargain travelers is given by ??? = 400 ? 2???. The demand curve for high-end travelers is given by ??? = 500 ? ???. In each equation, Q denotes the number of travelers of each type who stay at the hotel each day, and P denotes the price of one room per day. The marginal cost of serving an additional traveler of either type is $20 per traveler per day.
a. Under the assumption that there is a positive demand from each type of traveler, what is the equation of the overall market demand curve facing the resort?
b. What is the profit-maximizing price under the assumption that the resort must set a uniform price for all travelers? For the purpose of this problem, you may assume that at the profit-maximizing price, both types of travelers are served. Under the uniform price, what fraction of customers are bargain travelers, and what fraction are high end?
c. Suppose that the resort can engage in third-degree price discrimination based on whether a traveler is a high-end traveler or a bargain traveler. What is the profitmaximizing price in each segment? Under price discrimination, what fraction of customers are bargain travelers and what fraction are high end?
d. The management of La Durazno is probably unable to determine, just from looking at a customer, whether he or she is a high-end or bargain traveler. How might La Durazno screen its customers (i.e., cause them to self-identify type through their choices) so that it can charge the profit-maximizing discriminatory prices you derived in part (c)?
In: Economics
For a given AD curve, a reduction in the availability of labor or raw materials would cause the short run aggregate supply to shift to the left which would cause prices to fall and output to increase in the short run.
Select one:
True
False
According to the AD/AS model, an economic contraction caused by a leftward shift of aggregate demand remedies itself over time as the expected price level falls, shifting the short run aggregate supply rightward.
Select one:
True
False
According to the AD/AS model, if the long-run aggregate supply curve is vertical then the economy will always return to the level of output that occurs when the rate of unemployment is at its natural level.
Select one:
True
False
The sticky price theory of short-run aggregate supply says that when the price level falls unexpectedly, some firms will have higher than desired prices which increases their sales.
Select one:
True
False
As the United States entered World War II in the early 1940s, the U.S government increased military expenditures that caused the aggregate demand curve in the U.S. to shift to the left and that caused the rate of unemployment to rise to historic levels.
Select one:
True
False
In: Economics
use muller's method to find the roots of the equation f(x) = sin x - x/2 =0 near x=2
In: Advanced Math
Explain and discuss what stall is and what causes an airfoil to stall. Why are commercial aircraft not allowed to fly at conditions near stall?
In: Mechanical Engineering
Explain and discuss what stall is and what causes an airfoil to stall. Why are commercial aircraft not allowed to fly at conditions near stall?
In: Mechanical Engineering
What pressure allows fine beach sand to have good bearing capacity at low tide on the flat area near the water?
In: Civil Engineering