CORAL LANGUAGE ONLY
Write a function DrivingCost with parameters drivenMiles, milesPerGallon, and dollarsPerGallon, that returns the dollar cost to drive those miles. All items are of type float.
Ex: If the function is called with 50 20.0 3.1599, the function returns 7.89975.
Define that function in a program whose inputs are the car's miles/gallon and the gas dollars/gallon (both floats). Output the gas cost for 10 miles, 50 miles, and 400 miles, by calling your DrivingCost function three times.
Ex: If the input is 20.0 3.1599, the output is:
1.57995 7.89975 63.198
Note: Small expression differences can yield small floating-point output differences due to computer rounding. Ex: (a + b)/3.0 is the same as a/3.0 + b/3.0 but output may differ slightly. Because our system tests programs by comparing output, please obey the following when writing your expression for this problem. In the DrivingCost function, use the variables in the following order to calculate the cost: drivenMiles, milesPerGallon, dollarsPerGallon.
In: Computer Science
In: Psychology
A bicycle wheel has a diameter of 63.9 cm and a mass of 1.86 kg. Assume that the wheel is a hoop with all of the mass concentrated on the outside radius. The bicycle is placed on a stationary stand and a resistive force of 123 N is applied tangent to the rim of the tire. (a) What force must be applied by a chain passing over a 8.96 cm diameter sprocket if the wheel is to attain an acceleration of 4.42 rad/s2? (b) What force is required if the chain shifts to a 5.50 cm diameter sprocket?
In: Physics
Cane Company manufactures two products called Alpha and Beta that sell for $150 and $110, respectively. Each product uses only one type of raw material that costs $5 per pound. The company has the capacity to annually produce 108,000 units of each product. Its average cost per unit for each product at this level of activity are given below:
| Alpha | Beta | |||||||
| Direct materials | $ | 30 | $ | 15 | ||||
| Direct labor | 26 | 22 | ||||||
| Variable manufacturing overhead | 13 | 11 | ||||||
| Traceable fixed manufacturing overhead | 22 | 24 | ||||||
| Variable selling expenses | 18 | 14 | ||||||
| Common fixed expenses | 21 | 16 | ||||||
| Total cost per unit | $ | 130 | $ | 102 | ||||
The company considers its traceable fixed manufacturing overhead to be avoidable, whereas its common fixed expenses are unavoidable and have been allocated to products based on sales dollars.
Required:
1. What is the total amount of traceable fixed manufacturing overhead for each of the two products?
2. What is the company’s total amount of common fixed expenses?
3. Assume that Cane expects to produce and sell 86,000 Alphas during the current year. One of Cane's sales representatives has found a new customer who is willing to buy 16,000 additional Alphas for a price of $104 per unit. What is the financial advantage (disadvantage) of accepting the new customer's order?
5. Assume that Cane expects to produce and sell 101,000 Alphas during the current year. One of Cane's sales representatives has found a new customer who is willing to buy 16,000 additional Alphas for a price of $104 per unit; however pursuing this opportunity will decrease Alpha sales to regular customers by 9,000 units.
a. What is the financial advantage (disadvantage) of accepting the new customer’s order?
b. Based on your calculations above should the special order be accepted?
In: Accounting
In: Finance
Answer the following questions
1) How does ASC 606 — Revenue From Contracts With Customers(new standard for revenue recognition) impact on debt to equity ratio and current ratio. Please explain in detail.
2)Provide why the following statement is false.Provide proper explanation
"Comparability across companies will be enhanced since ASC 606 provides clear rules, by industry, for when and how to recognise revenue"
In: Accounting
Project 7-6: Sales Tax Calculator
Create a program that uses a separate module to calculate sales tax and total after tax.
Create a c++ program using console.h and console.cpp files that uses a separate module to calculate sales tax and total after tax.
Console
Sales Tax Calculator
ENTER ITEMS (ENTER 0 TO END)
Cost of item: 35.99
Cost of item: 27.50
Cost of item: 19.59
Cost of item: 0
Total: 83.08
Sales tax: 4.98
Total after tax: 88.06
Again? (y/n): y
ENTER ITEMS (ENTER 0 TO END)
Cost of item: 152.50
Cost of item: 59.80
Cost of item: 0
Total: 212.30
Sales tax: 12.74
Total after tax: 225.04
Again? (y/n): n
Thanks, bye!
Specifications
been added. • Use the implementation file for this header file to store the sales tax rate and the definitions for these two functions. These functions should round the results to two decimal places. • The output should display all monetary values with 2 decimal places. • The output should right align the numbers in the second column. This makes it easier to check whether the calculations are correct.
In: Computer Science
On June 30, Sharper Corporation’s stockholders' equity section of its balance sheet appears as follows before any stock dividend or split. Sharper declares and immediately distributes a 50% stock dividend.
| Common stock—$10 par value, 120,000 shares authorized, 90,000 shares issued and outstanding | $ | 900,000 | |
| Paid-in capital in excess of par value, common stock | 400,000 | ||
| Retained earnings | 760,000 | ||
| Total stockholders’ equity | $ | 2,060,000 |
(1) Prepare the updated stockholders' equity section after the
distribution is made.
(2) Compute the number of shares outstanding after the distribution
is made.
In: Accounting
In this journal you are asked to take the role of a mayor or congressional representative with a mandate to reduce energy consumption. You should describe ways in which government policy can encourage people to reduce energy consumption. Examples might include improving public transportation, instituting a tax , or providing a subsidy. For example. the city might build a subway system or institute a carpooling initiative. You should describe the feasibility of the initiative.
In: Other
Answer correctly the below 25 multiple questions on Software Development Security. Please I will appreciate the Correct Answer ONLY
1. Which of the following correctly best describes an object-oriented database?
2. Fred has been told he needs to test a component of the new content management application under development to validate its data structure, logic, and boundary conditions. What type of testing should he carry out?
3. Which of the following is the best description of a component-based system development method?
4. There are many types of viruses that hackers can use to damage systems. Which of the following is not a correct description of a polymorphic virus?
5. Which of the following best describes the role of the Java Virtual Machine in the execution of Java applets?
6. What type of database software integrity service guarantees that tuples are uniquely identified by primary key values?
7. In computer programming, cohesion and coupling are used to describe modules of code. Which of the following is a favorable combination of cohesion and coupling?
8. Which of the following statements does not correctly describe SOAP and Remote Procedure Calls?
9. Which of the following is a correct description of the pros and cons associated with third-generation programming languages?
10. It can be very challenging for programmers to know what types of security should be built into the software that they create. The amount of vulnerabilities, threats, and risks involved with software development can seem endless. Which of the following describes the best first step for developers to take to identify the security controls that should be coded into a software project?
11. Mary is creating malicious code that will steal a user's cookies by modifying the original client-side Java script. What type of cross-site scripting vulnerability is she exploiting?
12. Of the following steps that describe the development of a botnet, which best describes the step that comes first?
13. Which of the following antimalware detection methods is the most recent to the industry and monitors suspicious code as it executes within the operating system?
14. Which of the following describes object-oriented programming deferred commitment?
15. __________________ provides a machine-readable description of the specific operations provided by a specific web service. ________________ provides a method for web services to be registered by service providers and located by service consumers.
16. Sally has found out that software programmers in her company are making changes to software components and uploading them to the main software repository without following version control or documenting their changes. This is causing a lot of confusion and has caused several teams to use the older versions. Which of the following would be the best solution for this situation?
17. The approach of employing an integrated product team (IPT) for software development is designed to achieve which of the following objectives?
18. Which are the best reasons why a code versioning system (CVS) is an important part of a development infrastructure?
19. What is generally the safest, most secure way to acquire software?
20. Cross-site scripting (XSS) is an application security vulnerability usually found in web applications. What type of XSS vulnerability occurs when a victim is tricked into opening a URL programmed with a rogue script to steal sensitive information?
21. Widgets, Inc.'s software development processes are documented, and the organization is capable of producing its own standard of software processes. Which of the following Capability Maturity Model Integration levels best describes Widgets, Inc.?
In: Computer Science
1. The activation energy of a certain reaction is 41.5kJ/mol . At 20 ?C , the rate constant is 0.0110s?1. At what temperature in degrees Celsius would this reaction go twice as fast?
2. Given that the initial rate constant is 0.0110s?1 at an initial temperature of 20?C , what would the rate constant be at a temperature of 180?C for the same reaction described in Part 1?
In: Chemistry
Give TWO pieces of evidence that you've successfully made methyl salicylate. Remember when you cite TLC data, you must refer to their spots by their Rf values.
In: Chemistry
Describe briefly the evolution of Craniata and Vertebrata.
In: Biology
How many grams are in a 0.10 mol sample of ethyl alcohol?
In: Chemistry
For this assignment you will write a program with multiple functions that will generate and save between 100 and 10,000 (inclusive) "Shakespearian" insults. The program InsultsNetID.py is supplied as a starting point and it contains some tests that you must pass. The program loads words from three separate files: word1.txt, word2.txt and word3.txt. Each file contains 50 words or phrases. An insult is generated by choosing one word or phrase from each of the three lists of words at random, adding "Thou " to the beginning and "!" to the end. One such random insult would be:
Thou artless bat-fowling barnacle!
With this many words, you could generate 50 * 50 * 50, or 125,000 possible unique insults - more than enough for anyone! Your program does not have to generate more than 10,000 unique insults and will not generate less than 100 of them for saving to a file. Your program will need to generate unique insults (no two the same) and they must be in alphabetical order before being saved in a text file. You should use Python's built in list searching and sorting functionality.
If your program is working properly it should generate an output like SampleOutput.txt. The actual insults will be different. And a file called "Insults.txt" containing all the insults will also have been created. The file will contain the user specified number of unique insults in alphabetical order. The user should be able to supply any number of insults between 100 and 10,000. Input of this number should be completely robust. If he enters something non-numeric or outside the legal range, he should be continuously re-prompted to enter a legal value.
In: Computer Science