Questions
In java Write multiple if statements: If carYear is before 1967, print "Probably has few safety...

In java

Write multiple if statements:
If carYear is before 1967, print "Probably has few safety features." (without quotes).
If after 1971, print "Probably has head rests.".
If after 1991, print "Probably has anti-lock brakes.".
If after 2002, print "Probably has airbags.".
End each phrase with period and newline. Ex: carYear = 1995 prints:

Probably has head rests.
Probably has anti-lock brakes.

public class SafetyFeatures {
public static void main (String [] args) {
int carYear;

carYear = 1991;

*insert code here*

}
}

In: Computer Science

In your view, what are the most significant obstacles or challenges hindering the development and implementation...

In your view, what are the most significant obstacles or challenges hindering the development and implementation of truly reliable and interoperable public safety or emergency communications systems among all jurisdictions, disciplines, agencies and level of governments? What would you recommend in terms of a single, overarching policy or approach to achieve this goal, or at least facilitate significant progress?Do you think any progress has been made in this area since events like the Oklahoma City Bombing of 1995, the terrorist attacks of 9/11/01, Hurricane Katrina, or other major disasters? Why or why not?

In: Operations Management

Write multiple if statements: If carYear is before 1967, print "Probably has few safety features." (without...

Write multiple if statements:
If carYear is before 1967, print "Probably has few safety features." (without quotes).
If after 1971, print "Probably has head rests.".
If after 1992, print "Probably has anti-lock brakes.".
If after 2000, print "Probably has tire-pressure monitor.".
End each phrase with period and newline. Ex: carYear = 1995 prints:

Probably has head rests.
Probably has anti-lock brakes.

public class SafetyFeatures {
public static void main (String [] args) {
int carYear;

carYear = 1968;

In: Computer Science

I need the output of the code like this in java First we create a new...

I need the output of the code like this in java

First we create a new building
and display the result:

This building has no apartments.

Press enter to continue.........................

Now we add some apartments to the building
and display the result:

This building has the following apartments:

Unit 1 3 Bedroom
Rent $450 per month
Currently unavailable

Unit 2 2 Bedroom
Rent $400 per month
Currently available

Unit 3 4 Bedroom
Rent $1000 per month
Currently unavailable

Unit 4 1 Bedroom
Rent $500 per month
Currently unavailable

Unit 5 5 Bedroom
Rent $10000 per month
Currently available

Press enter to continue.........................

Now we try to add another apartment to the building
Cannot add another apartment the building is full.

Now we create a new building and add some apartments
then we collect the rent from all the occupied apartments
The total rent collected was: $2500

Finally we use the getUnits method to get a copy of the 3rd unit
from the building and change its rent to $10then we display
the building again to show that the apartment has not changed.

This building has the following apartments:

Unit 1 3 Bedroom
Rent $450 per month
Currently unavailable

Unit 2 2 Bedroom
Rent $400 per month
Currently available

Unit 3 4 Bedroom
Rent $1000 per month
Currently unavailable

Unit 4 1 Bedroom
Rent $500 per month
Currently unavailable

Unit 5 5 Bedroom
Rent $10000 per month
Currently available

Unit 6 3 Bedroom
Rent $550 per month
Currently unavailable

Press enter to end the program...................

and now I have to make a new class Building.java to show output like this given above and given below is the main java file

package lab06;

import properties.Building;
import properties.Apartment;
import util1228.Utilities;

//Tests the class Building

public class Lab06Driver {
    public static void main(String[] args) {
        
        //testing constructor and toString
        System.out.println("\nFirst we create a new building");
        Building b=new Building(5);
        System.out.println("and display the result:\n");
        System.out.printf("%s\n\n", b);
        Utilities.pause("Press enter to continue.........................");

        //testing addUnit
        System.out.println("\nNow we add some apartments to the building");
        b.addUnit(new Apartment(1,3,450,true));
        b.addUnit(new Apartment(2,2,400,false));
        b.addUnit(new Apartment(3,4,1000,true));
        b.addUnit(new Apartment(4,1,500,true));
        b.addUnit(new Apartment(5,5,10000,false));     
        System.out.println("and display the result:\n");
        System.out.printf("%s\n", b);
        Utilities.pause("Press enter to continue.........................");

        System.out.println("\nNow we try to add another "
                + "apartment to the building");
        b.addUnit(new Apartment(6,3,550,true));
        
        
        
        //testing collectRent
        System.out.println("\nNow we create a new building "
                + "and add some apartments");
        b=new Building(10);
        b.addUnit(new Apartment(1,3,450,true));
        b.addUnit(new Apartment(2,2,400,false));
        b.addUnit(new Apartment(3,4,1000,true));
        b.addUnit(new Apartment(4,1,500,true));
        b.addUnit(new Apartment(5,5,10000,false)); 
        b.addUnit(new Apartment(6,3,550,true));
        System.out.println("then we collect the rent from "
                + "all the occupied apartments");
        System.out.println("The total rent collected was: $"+b.collectRent());
        
        //testing getUnits
        System.out.print("\nFinally we use the getUnits method to get a copy "
                + "of the 3rd unit \nfrom the building and change its rent to "
                + "$10");
        b.getUnits()[2].setRent(10);
        System.out.println("then we display \nthe building again to show that "
                + "the apartment has not changed.\n");
        System.out.printf("%s\n", b);
        Utilities.pause("Press enter to end the program...................");
    }
}

In: Computer Science

Better Fitness, Inc. (BFI), manufactures exercise equipment at its plant in Freeport, Long Island. It recently...

Better Fitness, Inc. (BFI), manufactures exercise equipment at its plant in Freeport, Long Island. It recently designed two universal weight machines for the home exercise market. Both machines use BFI-patented technology that provides the user with an extremely wide range of motion capability for each type of exercise performed. Until now, such capabilities have been available only on expensive weight machines used primarily by physical therapists. At a recent trade show, demonstrations of the machines resulted in significant dealer interest. In fact, the number of orders that BFI received at the trade show far exceeded its manufacturing capabilities for the current production period. As a result, management decided to begin production of the two machines. The two machines, which BFI named the BodyPlus 100 and the BodyPlus 200, require different amounts of resources to produce.

The BodyPlus 100 consists of a frame unit, a press station, and a pec-dec station. Each frame produced uses 4 hours of machining and welding time and 2 hours of painting and finishing time. Each press station requires 2 hours of machining and welding time and 1 hour of painting and finishing time, and each pec-dec station uses 2 hours of machining and welding time and 2 hours of painting and finishing time. In addition, 2 hours are spent assembling, testing, and packaging each BodyPlus 100.

The BodyPlus 200 consists of a frame unit, a press station, a pec-dec station, and a leg- press station. Each frame produced uses 5 hours of machining and welding time and 4 hours of painting and finishing time. Each press station requires 3 hours of machining and welding time and 2 hours of painting and finishing time, each pec-dec station uses 2 hours of machining and welding time and 2 hours of painting and finishing time, and each leg-press station requires 2 hours of machining and welding time and 2 hours of painting and finishing time. In addition, 2 hours are spent assembling, testing, and packaging each BodyPlus 200.

For the next production period, management estimates that 500 hours of machining and welding time; 350 hours of painting and finishing time; and 120 hours of assembly, testing, and packaging time will be available.

The net retail price of the BodyPlus 100 and the BodyPlus 200 are $350 and $445, respectively. Although some flexibility may be available to BFI because of the unique capabilities of the new machines. Authorized BFI dealers can purchase machines for 70% of the suggested retail price. BFI’s president believes that the unique capabilities of the BodyPlus 200 can help position BFI as one of the leaders in high-end exercise equipment. Consequently, she states that the number of units of the BodyPlus 200 produced must be at least 35% of the total production of BodyPlus 100.

Analyze the production problem at Better Fitness, Inc., and prepare a report for BFI’s president presenting your findings and recommendations. The report should include the following items:

The recommended number of BodyPlus 100 and BodyPlus 200 machines (In other words, find the optimal level of production for BodyPlus 100 and BodyPlus 200 using linear programming model).

Objective function: Total profit

BodyPlus 200 requirement constraint

Non-negativity constraint

Time Constraint:

Machining & Welding

Painting & Finishing

Assembly, Test, and Packaging

The effect on profits of the requirement that the number of units of the BodyPlus 200 produced must be at least 25% of the total production of BodyPlus 100. where efforts should be expended in order to increase contribution to profits

Include a copy of your linear programming model

In: Operations Management

Problem I:10-55 from the textbook (revised to include additional research). The Morris Corporation is a very...

Problem I:10-55 from the textbook (revised to include additional research).

The Morris Corporation is a very successful and profitable manufacturing corporation. The corporation just completed leasehold improvements of its corporate offices, primarily for its top executives. The president and founder of the corporation, Mr. Timothy Couch, is an avid collector of artwork and has instructed that the lobby and selected offices be decorated with rare collections of art. These expensive works of art were purchased by the corporation in accordance with Couch's directives. Couch justified the purchase of these works of art on the premise that (1) they are excellent investments and should increase in value in the future, (2) they provide an appropriate and impressive atmosphere when current and prospective customers visit the corporation's offices, and (3) the artwork is depreciable property and the corporation will be able to take sizable write-offs against income. The financial vice-president of the corporation has requested your advice as to the depreciability of the leasehold improvements and the art. Prepare a research memorandum for the financial vice-president on this issue. Include a discussion on the different depreciation methods permitted and the availability of those methods of depreciation for leaseholds and the art.

A partial list of research sources includes:

  • Sections 167 and 179
  • Rul. 68-232, 1968-1 C.B. 70
  • Shauan C. Clinger, 60 T.C.M. 598 (1990).
  • Simmon v. Comr., 103 T.C. 247 (1994), aff’d 95-2 USTC ¶ 50,552 (2d Cir. 1995) nonacq. 1996-2 C.B.I.
  • Liddle v. Corm., 103 T.C. 285 (1994), aff’d, 95-2 USTC ¶ 50,488 (3rd 1995)

In: Accounting

Simpson's Paradox, Derek -vs- David: Averaging across categories can be misleading but this can be resolved...

Simpson's Paradox, Derek -vs- David: Averaging across categories can be misleading but this can be resolved with weighted averages.

In baseball, the batting average is defined as the number of hits divided by the number of times at bat. Below is a table for the batting average for two different players for two different years.

The number in parentheses gives the number of times at bat for each player for each year.

Batting Average (# of times at bat)
1995 1996
Derek 0.249 (45 times at bat) 0.313 (575 times at bat)
David 0.252 (415 times at bat) 0.322 (145 times at bat)

(a) What are the averages of the two batting averages for Derek(xDerek) and David(xDavid)?
Do NOT use a weighted average, just take the mean of 1995 and 1996 batting averages. Round your answers to 3 decimal places.

xDerek =

xDavid =


(b) Who had the higher average batting average using the non-weighted average?

    


(c) Using a weighted average, calculate the average batting averages for Derek(xDerek)and David (xDavid).
Round your answers to 3 decimal places.

xDerek=

xDavid=


(d) Who had the higher average batting average using the weighted average?

    


(e) What caused the discrepancy in average batting averages?

Derek's higher average occurred with more times at bat (575).

David's higher average occurred with fewer times at bat (145).     

Derek's lower batting average was based on a small number of times at bat (45).

All of these contributed to the discrepancy.

In: Statistics and Probability

Determining Effects of Stock Splits Oracle Corp has had the following stock splits since its inception....

Determining Effects of Stock Splits
Oracle Corp has had the following stock splits since its inception.

Effective Date Split Amount
October 12, 2000 2 for 1
January 18, 2000 2 for 1
February 26, 1999 3 for 2
August 15, 1997 3 for 2
April 16, 1996 3 for 2
February 22, 1995 3 for 2
November 8, 1993 2 for 1
June 16,1989 2 for 1
December 21, 1987 2 for 1
March 9, 1987 2 for 1



a. If the par value of Oracle shares was originally $2, what would Oracle Corp. report as par value per share on its 2015 balance sheet?

Compute the revised par value after each stock split.
Round answers to three decimal places.

Revised Par
Effective Date Value
March 9, 1987 $Answer
December 21, 1987 $Answer
June 16, 1989 $Answer
November 8, 1993 $Answer
February 22, 1995 $Answer
April 16, 1996 $Answer
August 15, 1997 $Answer
February 26, 1999 $Answer
January 18, 2000 $Answer
October 12, 2000 $Answer



b. On May 10, 2016, Oracle stock traded for about $60. All things equal, if Oracle had never had a stock split, what would a share of Oracle have traded for that same day?
Round answer to the nearest dollar.
$Answer

In: Accounting

Business Ethics, book Velasquez 7th edition, pg.113 People in West African countries, among the poorest in...

Business Ethics, book Velasquez 7th edition, pg.113

People in West African countries, among the poorest in the world, survive on $ 1 a day and have a life expectancy of 46 years. But in 2004, Equatorial Guinea had a GDP ( Gross Domestic Product) of $ 4,472 per person, the highest in West Africa. In 1995, Equatorial Guinea found oil off its coast, and by 2004 ExxonMobil, Amerada Hess, and Marathon Oil all U. S. oil companies were helping that West African country produce $ 4 billion of oil revenues a year. Equatorial Guineas inexperienced government agreed to give 80 percent of these revenues to the oil companies that drilled the oil for them, although oil companies in developing nations usually take about 50 percent of revenues from oil projects. The oil companies channel through Riggs Bank, a 2004 Senate report revealed hundreds of millions of dollars to Equatorial Guineas president, T. Nguema, and his family for land purchases, security services, and office leases. A Department of Energy report says that because Nguema and his family run the government, the 20 percent of oil revenues that go to the government are spent on lavish personal expenditures, and so most oil money is concentrated in the hands of top government officials while the majority of the population remains poor. If Nguema had not been paid, of course, the Equatorial Guinea government would never have approved the oil project. ExxonMobil says it has spent $ 4 million and Marathon Oil and Amerado Hess claim to have invested millions of dollars on schools, libraries, programs for malaria, polio, and AIDS, health clinics, bridges, waterways, and electricity. A U. S. human rights report says Equatorial Guineas government violates citizens rights of free speech, of the press, of assembly, of due process, of association, of religion, and of movement and uses torture, beatings, and other physical abuse against political opponents.

1. What would utilitarianism, rights theory, and justice say about ExxonMobil, Amerada Hess, and Marathon Oil activities in Equatorial Guinea?

What would utilitarianism, rights theory, and justice say about these activities of Exxon Mobile, Amerada Hess, and Marathon Oil in Equatorial Guinea?

In: Economics

Write a paragraph on Butchart Garden in British Columbia, Canada. Minimum 3 paragraphs with complete sentences....

Write a paragraph on Butchart Garden in British Columbia, Canada. Minimum 3 paragraphs with complete sentences. limit should be 400-550 words

  • Your topic must be based on one of the subtopics you presented in Presentation #1 or #2 (no students should cover the same subtopics)
  • Include Title Page and Introduction, Body and Conclusion sections, separated by Headings
  • Optional: you may include graphic highlighting (a table, chart, graph, or bulleted list)
  • Any quotations must be short, and enclosed in quotation marks, followed by citation
  • Maximum 2 full sentences quoted. The rest of your report must be in your own writing
  • Include citations in APA format for any direct quotations or paraphrased information
  • Include minimum 3 References in APA format at end of report

In: Operations Management