Entries by Student

write my assignment 25686

Hello – my Java Code has an infinite loop that I can not not resolve. The problem and code is below. Any help would be appreciated!

Chapter 5. PC #2. Retail Price Calculator (page 312)

program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example:

• If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00.

• If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50.

The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item.

Class name: RetailPriceCalculator

//CSIS 130

 import java.util.Scanner;

 public class RetailPriceCalculator2

 {

    public static void main(String[] args)

    {

       Scanner input = new Scanner(System.in);

       double wholeSaleCost, markUpPerc,retailPrice ;

       System.out.println(“Please enter the wholesale cost or -1 exit:”);

       wholeSaleCost = input.nextDouble();

     while (wholeSaleCost != -1) {

     if (wholeSaleCost < 1 ) {

        System.out.println(“Wholesale cost cannot be a negative value.”);

      }else{

       System.out.println(“Please enter the markup percentage or -1 exit:”);

       markUpPerc = input.nextDouble();

     while (markUpPerc != -1) {

     if (markUpPerc < 1 ) {

        System.out.println(“Markup cannot be less than -100%.n”);

      }else{

       retailPrice = calculateRetail(wholeSaleCost, markUpPerc);

       System.out.println(“The retail price is: ” + retailPrice);

       }   

    }

   }}

  }

    /*calculateRetail method

   *

   */

    public static double calculateRetail(double wholesale, double markUp)

    {

       double markUpConverted = markUp/100;

       double markUpAmount = wholesale * markUpConverted;

       double retail = wholesale + markUpAmount;

       return retail;

    }

}

 

"Not answered?"


Get the Answer

write my assignment 18899

Hi, need to submit a 1750 words paper on the topic Nonconformists in Literature. In other words, the proper function of society is to encourage its members to conform to a set of ideas that are broadly considered ‘acceptable’ behavior. However, the attempt to get two people to agree on what might be considered ‘acceptable’ is always going to be a problem and this problem only becomes more complicated with the addition of more people. Finally, there will always be some in the group who are not able to see things according to the ‘accepted’ view and thus become labeled ‘nonconformist’. In examining the protagonists in three colonial stories such as “New English Canaan” by Thomas Morton, “The Speech of Polly Baker” by Benjamin Franklin, and “Rip Van Winkle” by Washington Irving, this concept of the nonconformist is revealed.

In the short piece “New English Canaan”, Thomas Morton describes a Mayday celebration that was held in a place being renamed Merry-Mount during the early colonization of Plymouth Plantation. Because they didn’t have women to help them celebrate, the men erected their maypole and placed a declaration upon it indicating its purpose – not only to help them celebrate the spring and their successes thus far, but also to help provide a sea-mark so that ships bringing them the women and other colonists they hoped would help make their lives even more pleasant in this new land would have little difficulty in finding them. The celebration included singing, dancing, and drinking beer, which seems relatively mild by today’s standards, but ended up drawing a crowd of individuals who could not understand the purpose.

The first group that did not understand what exactly was going on was the ‘Salvages’ of the land who “came thither of purpose to see the manner of our Revels” (Morton, 1637).

 

"Not answered?"


Get the Answer

write my assignment 20949

I will pay for the following essay Book discussion. The essay is to be 5 pages with three to five sources, with in-text citations and a reference page.

Another one was the theme of accountability. This theme has been able to express itself in different parts of the book. In the Bulls Eye organization, there were a number of managers, including John and Barb, who head different departments. Their boss, Nancy had some occasional meetings with them so as to review on their departments’ performances. Every manager was made accountable for the results his or her department was yielding to the organization. During some weekends, John has to report to his office so as to correct the bad job that was done by his team. All this is because he is the one made accountable for the results.

There is the theme of togetherness that has clearly come out in the book. In the book, the author has nearly mentioned Ubuntu on a number of pages. Simon says, “It doesn’t make any difference if it was my work or someone else work. We are all into this as a department. I want to help, it is Ubuntu” (pg. 19). This is after the department lead by John, Simon is a member, had failed in meeting their levels of expected results of the organization. The theme has shown that indeed to have success in a group, then you must have collaboration and team work.

Most of the story took place in the USA, particularly in Chicago. This is evident in the book when the author says, “Twenty miles outside of Chicago, at a small…” (pg. 12). In this particular text, the author was describing the coffee shop where Alexandra and Steve went to take some coffee. Major part of the story in this book, especially chapter one takes place at the premises or offices of BullsEye organization. The majority of the characters in this story is having their origins in the USA, in fact, they are all citizens of The United States. We only have Simon, who was born in South Africa during the Apartheid system though he is an

 

"Not answered?"


Get the Answer

write my assignment 26564

Mannarino acquired a passive activity in January of 2013. His at-risk basis at the beginning of 2015 was $65,000. This is the only passive activity that Mannarino owns. Mannarino’s share of income and loss from the activity is as follows:

           2015                           <$95,000>

           2016                            55,000

Complete the following tables.

AT RISK RULES ONLY

FOR 2015

Deductible under at-risk provisions                            ____________________

Adjusted basis at 12/31/15                                         ____________________

Suspended under at-risk provisions                            ____________________

FOR 2016

Deductible under at-risk provisions                            ____________________

Adjusted basis at 12/31/16                                         ____________________

Suspended under at-risk provisions                            ____________________

PASSIVE RULES ONLY

FOR 2015

Deductible under passive loss provisions                   ____________________

Suspended under passive loss provisions                   ____________________

FOR 2016

Deductible under passive loss provisions                   ____________________

Suspended under passive loss provisions                   ____________________

BONUS (apply both at risk and passive rules)

FOR 2015

Deductible under at-risk provisions                            ____________________

Adjusted basis at 12/31/15                                         ____________________

Suspended under at-risk provisions                            ____________________

Deductible under passive loss provisions                   ____________________

Suspended under passive loss provisions                   ____________________

FOR 2016

Deductible under at-risk provisions                            ____________________

Adjusted basis at 12/31/16                                         ____________________

Suspended under at-risk provisions                            ____________________

Deductible under passive loss provisions                   ____________________

Suspended under passive loss provisions                   ____________________

 

"Not answered?"


Get the Answer