In a certain company the cost of software depends on the license type which could be Individual or Enterprise. Write a program that reads  License Type wanted (just the first character of each type: I, i, E, e).  Number of Users to use the software. Type Price/User Minimum number of users Individual 500$ 1 Enterprise 300$ 5 Your program should:  Check if the number of users is greater than or equal than Minimum Number of Users allowed Compute the cost: (for example cost = Cost per user x Number of Users)

Answers

Answer 1

Solution :

import [tex]$\text{java}.$[/tex]util.*;

public [tex]$class$[/tex] currency{

  public static [tex]$\text{void}$[/tex] main(String[tex]$[]$[/tex] args) {

      Scanner input [tex]$=$[/tex] new Scanner(System[tex]$\text{.in}$[/tex]);

      System[tex]$\text{.out.}$[/tex]print("Enter [tex]$\text{number of}$[/tex] quarters:");

      int quarters = input.nextInt();

      System.out.print("Enter number of dimes:");

      int [tex]$\text{dimes =}$[/tex] input.nextInt();

      System[tex]$\text{.out.}$[/tex]print("Enter number of nickels:");

      int nickels = input.nextInt();

      System[tex]$\text{.out.}$[/tex]print("Enter number of pennies:");

      int [tex]$\text{pennies = }$[/tex] input.nextInt();

      // computing dollors

      double dollars = (double) ((quarters*0.25)+(dimes*0.10)+(nickels*0.05)+(pennies*0.01));

      System[tex]$\text{.out.}$[/tex]format("You have : $%.2f",dollars);

  }

}


Related Questions

Combinations of velocity and acceleration

Answers

Answer:

acceleration=change in velocity/ time

Explanation:

The velocity of an object is its speed in a particular direction. Velocity is a vector quantity because it has both a magnitude and an associated direction. To calculate velocity, displacement is used in calculations, rather than distance.

calculate the radius of a circular orbit for which the period is 1 day​

Answers

Answer:

(T²/D³)sys1 = (T²/D³)sys2

sys1 = earth-moon

sys2 = earth-sat

(27.33day)²/(3.8e8m)³ = (1day)²/D³

D = cbrt(7.3e22m³) = 4.2e7 m

Explanation:

exchange in capacity whilst a satellite tv for pc differences altitude How plenty paintings could be executed to flow the satellite tv for pc into yet another around orbit it is bigger above the outdoors of the Earth? satellite tv for pc exchange in capacity with top Assuming the satellite tv for pc is to be boosted to a clean top r? Gravitational capacity capacity (to center of earth) new orbit(2) has a greater robust PE than old one(a million), so exchange is helpful PE = G m?m?/r earth GM = 3.98e14 ?PE = (GM)(m)(a million/r? – a million/r?) KE additionally differences. Get speed at each and every top. New orbit(2) has decrease speed, so exchange is damaging v = ?(GM/R) V? = ?(GM/r?) V? = ?(GM/r?) ?KE = –½m(V?² – V?²) ?KE = –½mGM(a million/r? – a million/r?) including the two ?E = (GM)(m)(a million/r? – a million/r?)– ½mGM(a million/r? – a million/r?) ?E = ½mGM(a million/r? – a million/r?) ?E = ½(3.98e14)(7500) [a million/(0.5e7) –a million/(3.3e7) ] ?E = ½(3.98e14)(7500)(1e-7) [a million/(0.5) –a million/(3.3) ] ?E = ½(3.98e7)(7500) [2 – 0.303 ] ?E = ½(3.98e7)(7500)(a million.70) ?E = 2.04e11 Joules edit, corrected .

The radius of a circular orbit will be "[tex]\frac{V}{2 \pi} \ km[/tex]".

According to the question,

The orbit period of satellite,

Time = 1 day

Total distance will be equal to the orbit's circumference, then

Distance = [tex]2 \pi r[/tex]

Let,

The velocity be "V km/day".

As we know,

→ [tex]Distance = Velocity\times time[/tex]

By substituting the values, we get

→          [tex]2 \pi r = V\times 1[/tex]

→              [tex]r = \frac{V}{2 \pi} \ km[/tex]

Thus the above is the right answer.

Learn more about radius of orbit here:

https://brainly.com/question/12859535

Other Questions
I dont know how to do this at all What did the us agree to do in order to get the Soviets to remove their missiles from Cuba? A. Pay $53 million dollars B. Move their military base to Alaska C. Remove the United States missile from turkey D. Supply Cubs with more missiles The following diagram shows the branching tree diagram for some animals.(Image below)Which two organisms share the greatest number of derived characteristics? Frog and kangaroo Kangaroo and chimpanzee Lion and chimpanzee Shark and chimpanzeePlease answer asap! ............................ A rectangle has a length of 12 meters and a width of 400 centimeters. What is the perimeter, in meters, of the rectangle?Your answer:16 meters32 meters48 meters Help please I do not get it What is the difference between change and continuity? A narrator with an omniscient point of view knows A recent survey of 800 seventh graders from across the state shows 4 out there of 10 like to play paper football. How many students said they like to play paper football? Simplify8(10 m)80 + m18 m80 m810 m If you could change your name what would it be? Why would you change your name to this? Give your name a meaning and explain why this is important to you? Help please What is the total surface area of a rectangular prism whose net is shown 19 in. 17in. 6.in. 1.2.2 What is the relationship between the marginal propensity to consume (mpc)and the multiplier? Given a triangle with a = 19, A = 43, and B = 26 , what is the length of c? Round to the nearest tenth. I NEEEEEDDDDD HEEEELPPP PLEASE 7/15 multiplied by 5/6 An urn contains 8 green and 9 white balls. Six balls are randomly drawn from the urn in succession, with replacement. That is, after each draw, the selected ball is returned to the urn. What is the probability that all 6 balls drawn from the urn are white? Round your answer to three decimal places. Winds are turned to the right in the Northern Hemisphere. true or false Practice identifying reflectional and rotati Which letters have 2 or more lines of symmetry? Check all that apply. here's the better one g A velocity selector consists of crossed electric and magnetic fields. The electric field has a magnitude of 480 N/C and is in the negative z direction. What should the magnetic field (magnitude and direction) be to select a proton moving in the negative x direction with a velocity of 3.50 cross times 10 to the power of 5 m/s to go un-deflected