Estructura 13.2 ¿Subjuntivo o indicativo? Choose the correct verb to complete each sentence. Dudo mucho que Pablo [1] un león como mascota. No niego que mis amigos [2] mentiras. No creemos que Ana [3] a tiempo para la ceremonia. No estoy seguro de que tú [4] hoy. Estoy segura de que Ana y José [5] la verdad.
Blog
Completar Complete the sentences with the present subjuncti…
Completar Complete the sentences with the present subjunctive form of each verb. Add an accent mark if necessary. á é í ó ú Yo te pido que tú [1] (pones) las latas en la basura. A mi abuelo le encanta que yo [2] (reciclar) para ayudar al medio ambiente. Me gusta que ustedes [3] (ir) a recoger la basura. Me alegro de que el agua del bosque no [4] (estar) contaminada. A mí me molesta que la gente no [5] (cuidar) los recursos naturales.
Conjunciones Choose the option with the correct conjunction…
Conjunciones Choose the option with the correct conjunction from the menu. La contaminación del agua no va parar [1] pensemos en una solución inmediata. Estudia los verbos irregulares [2] haya algunos en el examen. Escribe una carta a tus amigos [3] sepan que piensas en ellos. No vayas a esa fiesta [4] tus padres te den permiso. ¡Corre! ¡Entremos a la tienda [5] cierren las puertas!
Instructions Name your IntelliJ project Exam2_YourName. Nam…
Instructions Name your IntelliJ project Exam2_YourName. Name your .java files as indicated by the questions. Write a comment at the top of your .java files that includes the program name, the date, and your name. When you’re ready to submit your work, zip your IntelliJ project folder. Use the Add a File button to select your zipped IntelliJ project and upload it. The exam must be completed in-person. You have 50 minutes, from the beginning of the class period until the end of the class period, to take the exam. You are not permitted to receive assistance during the exam. You are not permitted to access other websites during the exam. You are not permitted to use artificial intelligence (AI) during the exam. You are permitted to use your programming assignments and in-class programming practices during the exam. Ensure you have your programming assignments and in-class programming practices on the computer prior to starting the exam. You are not permitted to use other resources during the exam. Mobile phones and other electronic devices need to be turned off / silenced and put away during the exam. Good luck! 1. Vehicles (25 points) Name: Vehicle.java and Car.java Implement a Vehicle class that meets the following specification represented as a UML class diagram. The attributes are indicated as being private in the UML diagram, but it’s also acceptable to make them protected. Implement a Car class that is a subclass of Vehicle that meets the following specification represented as a UML class diagram and overrides toString(). Numeric attributes are to have default values of 0. String attributes are to have default values of “abc”. The toString() for each class should contain the name of the class, the name, and if a Car the plate, in parentheses, the at symbol, and then the speed followed by mph. For example: “Vehicle (abc) @ 0.0 mph” “Car (Jaguar, ABC-123) @ 120.5 mph” Do not modify the contents of the provided TestVehicles.java. Also note that the attribute and method names will need to match the specification exactly. TestVehicles.java: public class TestVehicles { public static void main(String[] args) { Vehicle v1 = new Vehicle(); System.out.println(“toString(): ” + v1); Vehicle v2 = new Vehicle(5000.5, “Shuttle”); System.out.println(“toString(): ” + v2); v1.setSpeed(123.456); v1.setName(“Some vehicle”); v2.setSpeed(0.0); v2.setName(“Nameless”); Car c1 = new Car(); System.out.println(“toString(): ” + c1); Car c2 = new Car(120.5, “Jaguar”, “ABC-123”); System.out.println(“toString(): ” + c2); Vehicle v3 = new Car(145.5, “Porsche”, “XYZ-456”); System.out.println(“toString(): ” + v3); System.out.println(); c1.setSpeed(789.123); c1.setName(“Junk”); c1.setPlate(“XYZ-123”); c2.setSpeed(0.0); c2.setName(“Honda”); c1.setPlate(“111-222”); printVehicle(v1); printVehicle(v2); printVehicle(c1); printVehicle(c2); printVehicle(v3); } public static void printVehicle(Vehicle v) { System.out.println(“Print Vehicle”); System.out.println(“\tSpeed: ” + v.getSpeed()); System.out.println(“\tName: ” + v.getName()); System.out.println(); } } Sample Run (TestVehicles.java): toString(): Vehicle (abc) @ 0.0 mph toString(): Vehicle (Shuttle) @ 5000.5 mph toString(): Car (abc, abc) @ 0.0 mph toString(): Car (Jaguar, ABC-123) @ 120.5 mph toString(): Car (Porsche, XYZ-456) @ 145.5 mph Print Vehicle Speed: 123.456 Name: Some vehicle Print Vehicle Speed: 0.0 Name: Nameless Print Vehicle Speed: 789.123 Name: Junk Print Vehicle Speed: 0.0 Name: Honda Print Vehicle Speed: 145.5 Name: Porsche 2. Payroll (25 points) Name: Payroll.java Write a program that reads a text file named payroll.txt such that each line contains a first name, a last name, and a salary. Assume each is separated by a single space. Print each line out to the screen. Calculate the average of the salaries and display it on the screen as well. Do not ask the user for the name of the file, assume the file is named payroll.txt. Be aware that the actual text file used for grading may be different than the sample file provided, so do not assume the number of lines in the file, etc. Sample Run: File Contents: John Doe 23400.0 Jane Doe 23400.0 John Smith 12340.0 Vader Smith 99000.99 Jack Sparrow 2.19 Bob Builder 80000.0 Pizza Lord 120000.0 Average: $51163.311428571425 Where payroll.txt looks like: John Doe 23400.0 Jane Doe 23400.0 John Smith 12340.0 Vader Smith 99000.99 Jack Sparrow 2.19 Bob Builder 80000.0 Pizza Lord 120000.0
More and more Americans are worried about Global Warming, ac…
More and more Americans are worried about Global Warming, according to a recent Gallup Poll. In 2016 a random sample of 900 adults, living in all 50 U.S. states and the District of Columbia, 333 of them said that they “worry a great deal” about global warming. In 2019 another random survey of 1020 Americans, 459 of them said that they “worry a great deal” about global warming. Has the opinions of Americans changed from 2016 to 2025? Create and interpret a 98% confidence interval to answer this question using PANIC.
In a recent survey of working Americans they were asked if t…
In a recent survey of working Americans they were asked if they were satisfied with their careers. 0.36721 with a Margin of Error of 0.1962 said that they are satisfied with their jobs. State the confidence interval using interval notation or a compound inequality (This problem is worth 5 points)
XYZ Corporation is considering the purchase of a machine tha…
XYZ Corporation is considering the purchase of a machine that would cost $160,000 and would last for 5 years. At the end of 5 years, the machine would have a salvage value of $19,000. By reducing labor and other operating costs, the machine would provide annual cost savings of $36,000. The company requires a minimum pretax return of 8% on all investment projects. (Ignore income taxes.) The net present value of the proposed project is closest to: (Round your intermediate calculations and final answer to the nearest whole dollar amount.) Present Value of $1; 1 ( 1 + r ) n Periods 4% 5% 6% 7% 8% 9% 10% 11% 12% 1 0.962 0.952 0.943 0.935 0.926 0.917 0.909 0.901 0.893 2 0.925 0.907 0.89 0.873 0.857 0.842 0.826 0.812 0.797 3 0.889 0.864 0.84 0.816 0.794 0.772 0.751 0.731 0.712 4 0.855 0.823 0.792 0.763 0.735 0.708 0.683 0.659 0.636 5 0.822 0.784 0.747 0.713 0.681 0.65 0.621 0.593 0.567 6 0.79 0.746 0.705 0.666 0.63 0.596 0.564 0.535 0.507 7 0.76 0.711 0.665 0.623 0.583 0.547 0.513 0.482 0.452 Present Value of an Annuity of $1 in Arrears; 1 r [ 1 – 1 ( 1 + r ) n ] Periods 4% 5% 6% 7% 8% 9% 10% 11% 12% 1 0.962 0.952 0.943 0.935 0.926 0.917 0.909 0.901 0.893 2 1.886 1.859 1.833 1.808 1.783 1.759 1.736 1.713 1.69 3 2.775 2.723 2.673 2.624 2.577 2.531 2.487 2.444 2.402 4 3.63 3.546 3.465 3.387 3.312 3.24 3.17 3.102 3.037 5 4.452 4.329 4.212 4.1 3.993 3.89 3.791 3.696 3.605 6 5.242 5.076 4.917 4.767 4.623 4.486 4.355 4.231 4.111 7 6.002 5.786 5.582 5.389 5.206 5.033 4.868 4.712 4.564
The management of XYZ Corporation is considering three inves…
The management of XYZ Corporation is considering three investment projects-A, B, and C. Project A would require an investment of $136,000, Project B of $170,000, and Project C of $127,500. The present value of the cash inflows would be $163,200 for Project A, $255,000 for Project B, and $288,000 for Project C. Rank the projects according to the profitability index, from most profitable to least profitable.
A company is considering a capital budgeting project that wo…
A company is considering a capital budgeting project that would require an initial investment of $670,000 and working capital of $61,000. The working capital would be released for use elsewhere at the end of the project in 3 years. The investment would generate annual cash inflows of $227,000 for the life of the project. At the end of the project, equipment that had been used in the project could be sold for $20,000. The company’s discount rate is 10%.The net present value of the project is closest to:Present Value of $1; 1 ( 1 + r ) nPeriods4%5%6%7%8%9%10%11%12%13%14%15%10.9620.9520.9430.9350.9260.9170.9090.9010.8930.8850.8770.8720.9250.9070.890.8730.8570.8420.8260.8120.7970.7830.7690.75630.8890.8640.840.8160.7940.7720.7510.7310.7120.6930.6750.65840.8550.8230.7920.7630.7350.7080.6830.6590.6360.6130.5920.57250.8220.7840.7470.7130.6810.650.6210.5930.5670.5430.5190.49760.790.7460.7050.6660.630.5960.5640.5350.5070.480.4560.43270.760.7110.6650.6230.5830.5470.5130.4820.4520.4250.40.37680.7310.6770.6270.5820.540.5020.4670.4340.4040.3760.3510.327Present Value of an Annuity of $1 in Arrears; 1 r [ 1 – 1 ( 1 + r ) n ]Periods4%5%6%7%8%9%10%11%12%13%14%15%10.9620.9520.9430.9350.9260.9170.9090.9010.8930.8850.8770.8721.8861.8591.8331.8081.7831.7591.7361.7131.691.6681.6471.62632.7752.7232.6732.6242.5772.5312.4872.4442.4022.3612.3222.28343.633.5463.4653.3873.3123.243.173.1023.0372.9742.9142.85554.4524.3294.2124.13.9933.893.7913.6963.6053.5173.4333.35265.2425.0764.9174.7674.6234.4864.3554.2314.1113.9983.8893.78476.0025.7865.5825.3895.2065.0334.8684.7124.5644.4234.2884.1686.7336.4636.215.9715.7475.5355.3355.1464.9684.7994.6394.487
A company is considering the purchase of a factory machine t…
A company is considering the purchase of a factory machine that would cost $358,263 would have a useful life of 7 years, and would have no salvage value. The machine would allow the company to earn additional net cash inflows of $81,000 per year. The internal rate of return on the investment in the machine is closest to:Present Value of $1; 1 ( 1 + r ) nPeriods4%5%6%7%8%9%10%11%12%13%14%15%10.9620.9520.9430.9350.9260.9170.9090.9010.8930.8850.8770.8720.9250.9070.890.8730.8570.8420.8260.8120.7970.7830.7690.75630.8890.8640.840.8160.7940.7720.7510.7310.7120.6930.6750.65840.8550.8230.7920.7630.7350.7080.6830.6590.6360.6130.5920.57250.8220.7840.7470.7130.6810.650.6210.5930.5670.5430.5190.49760.790.7460.7050.6660.630.5960.5640.5350.5070.480.4560.43270.760.7110.6650.6230.5830.5470.5130.4820.4520.4250.40.37680.7310.6770.6270.5820.540.5020.4670.4340.4040.3760.3510.327Present Value of an Annuity of $1 in Arrears; 1 r [ 1 – 1 ( 1 + r ) n ]Periods4%5%6%7%8%9%10%11%12%13%14%15%10.9620.9520.9430.9350.9260.9170.9090.9010.8930.8850.8770.8721.8861.8591.8331.8081.7831.7591.7361.7131.691.6681.6471.62632.7752.7232.6732.6242.5772.5312.4872.4442.4022.3612.3222.28343.633.5463.4653.3873.3123.243.173.1023.0372.9742.9142.85554.4524.3294.2124.13.9933.893.7913.6963.6053.5173.4333.35265.2425.0764.9174.7674.6234.4864.3554.2314.1113.9983.8893.78476.0025.7865.5825.3895.2065.0334.8684.7124.5644.4234.2884.1686.7336.4636.215.9715.7475.5355.3355.1464.9684.7994.6394.487