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
105 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)
Math Question: Find the measure of angle BAC, where AD is the angle bisector of angle BAC, and angle BAD is 60 degrees.
+
Find the absolute extrema of the function f(x) = x^2 - 3x + 2 on the interval [-1, 4].
+
What is the period of f(x) = tan(x)?
+
New questions in Mathematics
Solution of the equation y&#39;&#39; - y&#39; -6y = 0
CASE 6-1: PREPARE A PRODUCTION PLAN: WHAT PROBLEMS ARRIVE? Midwest Plastics Company has conducted profit planning for several years. The president stated (with justification) that inventory control and planning had not been satisfactory, which was mainly due to poor planning of production and inventory budgets. Please analyze and provide recommendations, in detail, on the issue regarding the 20B profit plan, which is now being prepared. Their analysis and recommendations will be presented to the executive committee. Despite the seasonality factor, the sales department has been successful in developing a sales plan, on a monthly basis, for each year. The following sales data is available for 20B. 1. Sales plan summary for 20B: 2. Finished goods inventory, as of January 1, 20B, is 96,000 units. 3. Work-in-process inventory will remain constant. 4. Actual annual sales in 20A, including the estimate for December, were 350,000 units. 5. The average finished goods inventory during 20A was 70,000 units. IT IS REQUESTED. 1. Prepare the annual production budget, assuming that management policy is to budget ending finished goods inventory at a standard quantity, based on the ratio of historical sales of 20A to inventory turnover. 2. Prepare a schedule showing sales, production, and inventory levels for each month, assuming: 1) stable inventory, 2) stable production, and 3) recommended inventory-production levels. In developing your recommendations, assume that the following policies have been established: a) The president has set the policy that a maximum inventory of 85,000 units and a minimum inventory of 75,000 units should be used, except in abnormal circumstances. b) A stable level of production is definitely preferred, except that during the holiday season in July and August, production may be reduced by 25 percent. Likewise, a variation in production of 7.5 percent above and below the average level is acceptable. 3. What are the main problems faced by the company in production planning? Make your general recommendations.
A software company incurs a cost of $50 per license sold plus $5,000 in fixed costs. How many licenses should you sell to minimize total costs?
A college believes that 22% of applicants to that school have parents who have remarried. How large a sample is needed to estimate the true proportion of students who have parents who have remarried to within 5 percentage points?
5 squirrels were found to have an average weight of 9.3 ounces with a sample standard deviation is 1.1. Find the 95% confidence interval of the true mean weight
Calculate the 6th term of PA whose 1st term is 6.5 and the ratio 5
I need .23 turned into a fraction
solve the following trigo equation for 0°<= x <= 360°. sec x =-2
Moaz wanted to test whether the level of headache pain (on a scale of 1 – 10) changes after taking Advil. He collected data from 9 participants and calculated the difference in headache pain before and after taking Advil (summarized in the table below). Determine W observed for this test. Difference Scores -2 -4 0 +1 +3 -2 0 -3 -5 Also, What is the degrees of freedom for this test?
"If three wolves catch three rabbits in three hours, how many wolves would it take to catch a hundred rabbits in a hundred hours?" The answer is the number of response units.
The miles per gallon (mpg) for each of 20 medium-sized cars selected from a production line during the month of March are listed below. 23.0 21.2 23.5 23.6 20.1 24.3 25.2 26.9 24.6 22.6 26.1 23.1 25.8 24.6 24.3 24.1 24.8 22.1 22.8 24.5 (a) Find the z-scores for the largest measurement. (Round your answers to two decimal places.) z =
Reparameterize the curve r(t)= cos(t)i without (t)j (t)k by the arc length.
The price per night of a suite at the Baglioni Hotel in Venice is 1896 euros, VAT included. The VAT in Italy is 25%. The hotel gets a return of 10% out of the price VAT included. b) What is the profit value made by the hotel for one
Convert 9/13 to a percent
Find each coefficient described. Coefficient of u^2 in expansion of (u - 3)^3
X³-27
What is the value of f(-3) for the function X squared+5x-8=
solid obtained by rotation around the axis x = -1, the region delimited by x^2 - x + y = 0 and the abscissa axis
Find the equation of a straight line that has slope 3 and passes through the point of (1, 7) . Write the equation of the line in general forms
Exercise The temperature T in degrees Celsius of a chemical reaction is given as a function of time t, expressed in minutes, by the function defined on ¿ by: T (t )=(20 t +10)e−0.5t. 1) What is the initial temperature? 2) Show that T' (t )=(−10 t +15)e−0 .5t. 3) Study the sign of T' (t ), then draw up the table of variations of T . We do not ask for the limit of T in +∞. 4) What is the maximum temperature reached by the reaction chemical. We will give an approximate value to within 10−2. 5) After how long does the temperature T go back down to its initial value? We will give an approximate value of this time in minutes and seconds. DM 2: study of a function Exercise The temperature T in degrees Celsius of a chemical reaction is given as a function of time t, expressed in minutes, by the function defined on ¿ by: T (t )=(20 t +10)e−0.5t. 1) What is the initial temperature? 2) Show that T' (t )=(−10 t +15)e−0.5 t. 3) Study the sign of T' (t ), then draw up the table of variations of T . We do not ask for the limit of T in +∞. 4) What is the maximum temperature reached by the reaction chemical. We will give an approximate value to within 10−2. 5) After how long does the temperature T go back down to its initial value? We will give an approximate value of this time in minutes and seconds.