Questions
I'm trying to work with this code that I have. i want to kick the user...

I'm trying to work with this code that I have. i want to kick the user back if they don't enter a number in the specified range but I haven't been able to get a while loop working right.

  1. Write a program name Blackjack_Jr that allows a human user to play a single hand of "blackjack" against a dealer.
  2. Pick two values from 1-10 for the player. These are the player's "cards". These two values must be user inputs
  3. Generate two more values from 1-10 for the dealer. These two values should be randomly generated by your code
  4. Whoever has the highest total is the winner.

public class Blackjack_Jr
{

   public static void main(String[] args)
   {
       int card1;
       int card2;
       int player1;
       int dealer;
       Random rand = new Random();
       int card3 = rand.nextInt(11);
       int card4 = rand.nextInt(11);
       Scanner in = new Scanner(System.in);
      
       System.out.println("Blackjack Jr!");
       System.out.println();
       System.out.print("Pick Your First Card from 1-10: ");
       card1 = in.nextInt();
       System.out.print("Pick Your Second Card from 1-10: ");
       card2 = in.nextInt();
       System.out.println();
       player1 = card1 + card2;
       dealer = card3 + card4;
          
       System.out.print("You have entered " +card1);
       System.out.println(" and " +card2);
       System.out.println("Your total is: " +player1);
       System.out.println();
              
      
              
       System.out.print("The dealer has drawn " +card3);
       System.out.println(" and " +card4);
       System.out.println("The dealer's total is: " +dealer);
              
           if(player1 > dealer)
           {
               System.out.println("Congratulations! You Won!");
           }else
           {
               System.out.println("Sorry you have lost. :-(");
           }
      
      

   }

}

In: Computer Science

Summary Balance sheet of Kishore Food Products Private Limited is given. You are required to prepare...

Summary Balance sheet of Kishore Food Products Private Limited is given.

You are required to prepare the cash flow statement using the indirect method after considering the additional information given below.

Depreciation provided for the year was land and building 60000, Machinery 50000 and furniture 1200.

Previous year tax provision was paid during the year and current year tax provision 40500 was yet to be paid at the year end.

Proposed dividend of previous year was paid during the year and fresh provision was made at this year end.  

Summary Balance sheet

Particulars

31-03-2019

31-03-2020

Liabilities

Equity Share capital

300000

350000

Share premium

0

30000

General Reserve

45000

65000

Profit and Loss

30000

80800

6% Debentures

0

70000

Sundry Creditors

85000

90700

Tax provision

22500

40500

Proposed Dividend

30000

35000

512500

762000

Assets

Land and Building

230000

390000

Machinery

85400

140000

Furniture

5500

6500

Stock

82400

95700

Debtors

75000

85500

Bank balance

34200

44300

512500

762000

In: Accounting

in your own words: What is an ostomy? Why would someone require an ostomy? Where can...

in your own words:

  1. What is an ostomy?

  1. Why would someone require an ostomy?
  1. Where can an ostomy be located?

  1. What is the nursing role in caring for patients with ostomies?

In: Biology

Acceptance sampling is an important quality control technique, where a batch of data is tested to...

Acceptance sampling is an important quality control technique, where a batch of data is tested to determine if the proportion of units having a particular attribute exceeds a given percentage. Suppose that 8% of produced items are known to be nonconforming. Every week a batch of items is evaluated and the production machines are adjusted if the proportion of nonconforming items exceeds 10%. [You may find it useful to reference the z table.]

a. What is the probability that the production machines will be adjusted if the batch consists of 65 items? (Round “z” value to 2 decimal places, and final answer to 4 decimal places.)

Probability _________

b. What is the probability that the production machines will be adjusted if the batch consists of 77 items? (Round “z” value to 2 decimal places, and final answer to 4 decimal places.)

probability ________

In: Math

What do peak BP’s during isometric actions depend on? Also- What is llustrate about exercise prescription...

  1. What do peak BP’s during isometric actions depend on?

  2. Also- What is llustrate about exercise prescription in hyperyensive clients? SBP and DBP effects?

In: Biology

Create a class Person with two instance variables of type String called firstName and LastName, an...

Create a class Person with two instance variables of type String called firstName and

LastName, an instance variable of type int called age, an instance variables of type int

called height (measured in inches), and an instance variable of type double called weight.

Define an appropriate constructor that takes initial values for all instance variables and

calls the corresponding set methods. Define get and set methods for all instance variables.

All set (mutator) methods should validate that reasonable data is being passed to the

object.

Then create a test application that queries the user for information and uses that

information to create two objects of type Person. The application should display all

information about both objects.

language : java

In: Computer Science

I need informations about the use of next generation sequencing for intellectual disabilities ID

I need informations about the use of next generation sequencing for intellectual disabilities ID

In: Economics

On June 1, 2016, Everly Bottle Company sold $3,000,000 in long-term bonds for $2,631,300. The bonds...

On June 1, 2016, Everly Bottle Company sold $3,000,000 in long-term bonds for $2,631,300. The bonds will mature in 10 years and have a stated interest rate of 8% and a yield rate of 10%. The bonds pay interest annually on May 31 of each year. The bonds are to be accounted for under the effective-interest method.

- Construct a bond amortization table for this problem to indicate the amount of interest expense and discount amortization at each May 31.

- Assuming that interest and discount amortization are recorded each May 31, prepare the adjusting entry to be made on December 31, 2018. (Credit account titles are automatically indented when the amount is entered. Do not indent manually. If no entry is required, select "No Entry" for the account titles and enter 0 for the amounts.)

In: Accounting

1. Calculate the molarity of a solution made by adding 20.8 mL of concentrated potassium hydroxide...

1. Calculate the molarity of a solution made by adding 20.8 mL of concentrated potassium hydroxide (34.5 % by mass, density 1.46 g/mL) to some water in a volumetric flask, then adding water to the mark to make exactly 500 mL of solution. (It is important to add concentrated acid or base to water, rather than the other way, to minimize splashing and maximize safety.)

[KOH]= _________ M

2. A 0.450-gram sample of impure CaCO3(s) is dissolved in 50.0 mL of 0.150 M HCl(aq). The equation for the reaction is CaCO3(s) + 2HCl(aq) ---> CaCl2(aq) + H2O(l) + CO2(g)

The excess HCl(aq) is titrated by 9.10 mL of 0.125 M NaOH(aq). Calculate the mass percentage of CaCO3(s) in the sample.

__________ %

In: Chemistry

Fuzzy logic modeling has many advantages over the conventional rule induction algorithm. For the discussion forum,...

Fuzzy logic modeling has many advantages over the conventional rule induction algorithm. For the discussion forum, you work in the admissions office of a University. There are a large number of applicants to the University. You classify them into three clusters-admitted, rejected, and those who should be admitted. For the third cluster, how would you handle this taking into consideration the fuzzy logic modeling? Would ranking be a consideration?

need 300 words with no plagrism

In: Computer Science

A photon, moving in the +x-direction, scatters off a free stationary electron. The wavelength of the...

A photon, moving in the +x-direction, scatters off a free stationary electron. The wavelength of the incident photon is 0.0210 nm. After the collision, the electron moves at an angle α below the +x-axis, while the photon moves at an angle θ = 80.3° above the +x-axis. (a) Calculate the speed of the electron (in m/s). (b) Calculate the angle α (in degrees).

In: Physics

BUSI 1110 Summer 2020 Weekly Assignment Assignment number 9 General Information Description Chapter Motivating Satisfying and...

BUSI 1110

Summer 2020 Weekly Assignment

Assignment number

9
General Information

Description

Chapter

Motivating Satisfying and Leading Employees

Due date

Prior to start of following week’s session

Students will answer a list of assigned questions. In order to receive full credit for each question, students need to sufficiently support answers with relevant application of course concepts and theories. All sources should be correctly cited using APA guidelines.

Report guidelines

Students will require to submit their weekly assignments online (Moodle) on or before the due date to location created under each week. All files should be submitted using pdf extension labelling the file name using the format <last name>_<first name>_<assignment number>.pdf. Students could also create other modes of submission such as power point, graphics, video clips etc..., in such events please speak to the instructor for uploading instructions. All submissions should be properly formatted, checked for spelling, grammar and use professional language. Students will use Font style Times New Roman and size 11 with a spacing of 1.5

Assignment – Week 9

1. Reflecting the motivation theories discussed, which theory do you think is most suitable to motivate?

a. Fast food chain employee b. Accountant

Explain your reasoning by applying to the motivational theory for positions a) and b)? (8 points)

  1. Identify the hygiene and motivational factors for following positions

    1. Accountant (3)

    2. University student following BUSI 1110 (3)

    3. Cashier at a super market (3)

  2. Following assignment guidelines, reliable and sufficient research performed to support the argument. Sources cited to support statements. Clear and concise writing (5 points)

Total Points 22 – (Percentage 5%)

Revision May 2020

Page 1

In: Operations Management

1. Converting pH=2.54 to hydrogen ion concentration, [H+]. 2. What is the pH of a 7.93×10-4...

1. Converting pH=2.54 to hydrogen ion concentration, [H+].

2. What is the pH of a 7.93×10-4 molar solution of a strong acid?

3. If the pH of a solution of a strong base is 8.75, what is its hydroxyl ion concentration? What is its hydrogen ion concentration?

4. What is the pH of 37.9 mM solution of HNO3? What is its pOH?

5. Concert the hydroxyl ion concentration, 9.15 mM to pH

6. A 0.017M solution of HCL is mixed with a 0.017M solution of NaOH. What is the pH of the final mixture?

7. The pOH a drug solution is 6.82; what is the pH of the solution? What is the hydroxyl ion concentration is the solution is a strong base?

I need help with these 7 questions!

In: Chemistry

Explain the police subculture/culture and state and explain 5 causes.

Explain the police subculture/culture and state and explain 5 causes.

In: Operations Management

A glass flask whose volume is 1000 cm3 at a temperature of 0.100 ∘C is completely...

A glass flask whose volume is 1000 cm3 at a temperature of 0.100 ∘C is completely filled with mercury at the same temperature. When the flask and mercury are warmed together to a temperature of 52.0 ∘C , a volume of 8.50 cm3 of mercury overflows the flask.

If the coefficient of volume expansion of mercury is βHg = 1.80×10−4 /K , compute βglass, the coefficient of volume expansion of the glass.

In: Physics