Question

Ccreate java code using methods for: Liberty is carrying out a sales campaign among its preferred clients to whom it offers the following internet package options: Internet only for $30. Internet and Cable for $50. Internet, Cable and 3 "Premium" channel packages for $75. When the client is registering, they are asked about the desired package, if they have any previous services, and if so, a 10% discount is applied to the amount. If you have a previous service and are months in arrears, a 13% tax is applied for each month in arrears. Develop a program that requests the data of the tooth to be registered and allows the selected package to be registered, if it has previous services and shows the amount to be paid per month in the rental of the service.

234

likes
1170 views

Answer to a math question Ccreate java code using methods for: Liberty is carrying out a sales campaign among its preferred clients to whom it offers the following internet package options: Internet only for $30. Internet and Cable for $50. Internet, Cable and 3 "Premium" channel packages for $75. When the client is registering, they are asked about the desired package, if they have any previous services, and if so, a 10% discount is applied to the amount. If you have a previous service and are months in arrears, a 13% tax is applied for each month in arrears. Develop a program that requests the data of the tooth to be registered and allows the selected package to be registered, if it has previous services and shows the amount to be paid per month in the rental of the service.

Expert avatar
Gene
4.5
108 Answers
importar java.util.Scanner; clase pública LibertySalesCampaign { // Constantes para precios de paquetes doble final estático privado INTERNET_ONLY = 30.0; doble final estático privado INTERNET_CABLE = 50.0; doble final estático privado INTERNET_CABLE_PREMIUM = 75.0; // objeto escáner para entrada escáner de escáner estático privado = nuevo escáner (System.in); público estático vacío principal (String [] argumentos) { System.out.println("Bienvenido a la campaña de ventas de Liberty"); // Obtener la elección del paquete por parte del usuario System.out.println("Seleccione su paquete:"); System.out.println("1 - Sólo Internet ($30)"); System.out.println("2 - Internet y cable ($50)"); System.out.println("3 - Internet, Cable y 3 canales Premium ($75)"); int eleccióndelpaquete = scanner.nextInt(); // Obtener información sobre servicios anteriores System.out.println("¿Tiene algún servicio previo con nosotros? (sí/no)"); boolean hasPreviousServices = scanner.next().equalsIgnoreCase("sí"); double Preciobase = getPackagePrice(packageChoice); si (tieneServiciosPrevios) { System.out.println("¿Está usted en mora? (sí/no)"); boolean inArrears = scanner.next().equalsIgnoreCase("sí"); int meses en atraso = 0; si (en mora) { System.out.println("¿Cuántos meses tienes de atraso?"); mesesAtrasados = scanner.nextInt(); } Preciobase = calcularPrecioFinal(Preciobase, verdadero, mesesAtrasados); } demás { Preciobase = calcularPrecioFinal(Preciobase, falso, 0); } System.out.println("El monto total a pagar por mes es: $" + String.format("%.2f", basePrice)); } getPackagePrice doble estático privado (elección int) { cambiar (elección) { caso 1: devolver INTERNET_ONLY; caso 2: devolver INTERNET_CABLE; caso 3: devolver INTERNET_CABLE_PREMIUM; por defecto: System.out.println("Elección no válida. El valor predeterminado es Sólo Internet."); devolver INTERNET_ONLY; } } cálculo doble estático privadoPrecioFinal(preciobasedoble, booleano tieneServiciosPrevios, int mesesAtrasados) { double Precio final = Precio base; si (tieneServiciosPrevios) { Precio final *= 0,90; // Aplicar 10% de descuento si (meses atrasados > 0) { for (int i = 0; i < meses en atrasos; i++) { Precio final *= 1,13; // Aplicar 13% de impuesto por mes vencido } } } devolver precio final; } }

Frequently asked questions (FAQs)
Question: Convert the decimal 0.63 to percent.
+
What is the square root of x, where x represents a positive number?
+
What is the domain and range of the cube root function \(f(x)\)?
+
New questions in Mathematics
Hey👋🏻 Tap "Create New Task" to send your math problem. One of our experts will start working on it right away!
2(2+2x)=12
Consider the relation R defined on the set of positive integers as (x,y) ∈ R if x divides y. Choose all the true statements. R is reflexive. R is symmetric. R is antisymmetric. R is transitive. R is a partial order. R is a total order. R is an equivalence relation.
What payment 7 months from now would be equivalent in value to a $3,300 payment due 23 months from now? The value of money is 2.7% simple interest. Round your answer to 2 decimal places. Show all work and how you arrive at the answer..
An electrical company manufactures batteries that have a duration that is distributed approximately normally, with a mean of 700 hours and a standard deviation of 40 hours. Find the probability that a randomly selected battery has an average life of less than 810 hours.
-27=-7u 5(u-3)
If f(x,y)=6xy^2+3y^3 find (∫3,-2) f(x,y)dx.
-3(-4x+5)=-6(7x-8)+9-10x
How many anagrams of the word SROMEC there that do not contain STROM, MOST, MOC or CEST as a subword? By subword is meant anything that is created by omitting some letters - for example, the word EMROSCT contains both MOC and MOST as subwords.
What is 28 marks out of 56 as a percentage
3 A tree is planted when it is 1.2 m tall. Every year its growth is 3/8 of its previous year's height. Find how tall the tree will grow.
Convert 9/13 to a percent
A machine produces 255 bolts in 24 minutes. At the same rate, how many bolts would be produced in 40 minutes?
Solve equations by equalization method X-8=-2y 2x+y=7
List five numbers that belong to the 5 (mod 6) numbers. Alternate phrasing, list five numbers that satisfy equation x = 5 (mod 6)
Total Users with an active Wise account = Total Active Users + Total Users who haven’t transacted Total Active Users = Total MCA Users + Total Send Users = Total New Users + Retained Users Total New Users = New Send Users + New MCA Users Total MCA Users = New MCA Users + Retained Users who transacted this month via MCA Total Send Users = New Send Users + Retained Users who transacted this month via Send Send CR = Total Send Users / Total Users with an active Wise account MCA CR = Total MCA Users / Total Users with an active Wise account New Send CR = New Send Users / New Profiles Created in Month New MCA CR = New MCA Users / New Profiles Created in Month We have recently witnessed a drop in MCA conversion, but send user conversion is stable, can you help explain why?
A salesperson earns a base salary of $600 per month plus a commission of 10% of the sales she makes. You discover that on average, it takes you an hour and a half to make $100 worth of sales. How many hours will you have to work on average each month for your income to be $2000?
Gender and communication : Answer the question ( 1 paragraph is ok) . Please can you write about women? Compared to your other identities, how much of a role does gender play in your life? And has your own sex/gender offered you privileges or disadvantages? How so?
The average weekly earnings in the leisure and hospitality industry group for a re‐ cent year was $273. A random sample of 40 workers showed weekly average ear‐ nings of $285 with the population standard deviation equal to 58. At the 0.05 level of significance can it be concluded that the mean differs from $273? Find a 95% con‐ fidence interval for the weekly earnings and show that it supports the results of the hypothesis test.
I have a complex function I would like to integrate over. I can use two approaches and they should give the same solution. If I want to find the contour integral ∫𝛾𝑧¯𝑑𝑧 for where 𝛾 is the circle |𝑧−𝑖|=3 oriented counterclockwise I get the following: ∫2𝜋0𝑖+3𝑒𝑖𝑡⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯𝑑(𝑖+3𝑒𝑖𝑡)=∫2𝜋03𝑖(−𝑖+3𝑒−𝑖𝑡)𝑒𝑖𝑡𝑑𝑡=18𝜋𝑖 If I directly apply the Residue Theorem, I would get ∫𝛾𝑧¯𝑑𝑧=2𝜋𝑖Res(𝑓,𝑧=0)=2𝜋𝑖