# Write function max_magnitude() with two integer input parameters that returns the largest magnitude value. Use the function in a program – Assignment Help

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper
Write function max_magnitude() with two integer input parameters that returns the largest magnitude value. Use the function in a program that takes two integer inputs, and outputs the largest magnitude value.Ex: If the inputs are: 5 7 the function returns: 7 Ex: If the inputs are: -8 -2 the function returns: -8 Note: The function does not just return the largest value, which for -8 -2 would be -2. Though not necessary, you may use the built-in absolute value function to determine the max magnitude, but you must still output the input number (Ex: Output -8, not 8).Your program must define and call the following function:def max_magnitude(user_val1, user_val2)

## Which of the following statements are true for annotations used in JPA? Select ALL answers that applyTop of Form A.

Which of the following statements are true for annotations used in JPA? Select ALL answers that applyTop of Form A. The

## Joe’s Pizza Palace needs a program to calculate the number of slices a pizza of any size can be divided

Joe’s Pizza Palace needs a program to calculate the number of slices a pizza of any size can be divided into. The program should perform the following steps: -Ask the user for the diameter of the pizza in inches. -Calculate the number of slices that may be taken from a pizza of that size. -Display a message telling the number of slices.To calculate the number of slices that may be taken from the pizza, you must know the following facts: -Each slice should have an area of 14.125 inches. -To calculate the number of slices, simply divide the area of the pizza by 14.125. -The area of the pizza is calculated with this formula: Area = “pi r squared” where pi is approximately 3.14159 and r is the radius (half the the diameter).

## use below link for data set for this code to generate a python code http://data-lakecountyil.opendata.arcgis.com/datasets/cd63911cc52841f38b289aeeeff0f300_1.csvGive details on below things using

use below link for data set for this code to generate a python code http://data-lakecountyil.opendata.arcgis.com/datasets/cd63911cc52841f38b289aeeeff0f300_1.csvGive details on below things using above database for 1) Explain given data set given in reference of zip code and all the cancer rates associated with it in details2) Generate python code which will generate a graphs zipcode vs type of cancers and in the end get them together as basic dashboard 3) Add comments on Code lines what each line does in the code4) Explain your results or findings after running codeGerente a python code and generate a graphs zipcode vs cancer type and present them as dashboard, after output is generated explain all the graphs in details.

## There are N athletes (numbered 1 through N) in a line. For each valid i, the i-th athlete starts at

There are N athletes (numbered 1 through N) in a line. For each valid i, the i-th athlete starts at the position i and his speed is Vi, i.e. for any real number t≥0, the position of the i-th athlete at the time t is i Vi⋅tUnfortunately, one of the athletes is infected with a virus at the time t=0. This virus only spreads from an infected athlete to another whenever their positions are the same at the same time. A newly infected athlete may then infect others as well.We do not know which athlete is infected initially. However, if we wait long enough, a specific set of athletes (depending on the athlete that was infected initially) will become infected. Your task is to find the size of this set, i.e. the final number of infected people, in the best and worst possible scenario.Input -The first line of the input contains a single integer T denoting the number of test cases. The description of T test cases follows. -The first line of each test case contains a single integer N -The second line contains N space-separated integers V1,V2,…,VNOutput For each test case, print a single line containing two space-separated integers ― the smallest and largest final number of infected people.Constraints -1≤T≤10^4 -3≤N≤5 -0≤Vi≤5 for each valid i.Example Input4 3 1 2 3 3 3 2 1 3 0 0 0 3 1 3 2 Example Output1 1 3 3 1 1 1 2 ExplanationExample case 1: No two athletes will ever have the same position, so the virus cannot spread.Example case 2: It does not matter who is initially infected, the first athlete would always spread it to everyone.Example case 3: The athletes are not moving, so the virus cannot spread.Example case 4: The best possible scenario is when the initially infected athlete is the first one, since he cannot infect anyone else. In the worst possible scenario, eventually, the second and third athletes are infected.

## I am a C student and confused on where to start with writing this program. A program that asks the

I am a C student and confused on where to start with writing this program. A program that asks the user for the current value of an investment, the interest rate, and the number of years that the investment remains untouched. It then calculates and prints the value of the investment after than many years under each the following two schemes:a) Interest is compounded 4 times per year.b) Interest is compounded continously.The program then asks for another problem of the same type. If the user replies y (for yes), the program asks for the same three items of input and produces the same two types of answers. The formula for the amount after t years when interest is compounded n times per year is: A = P(1 r/n)^(nt) where ^ is used to indicate exponentiation. Thus here we have (1 r/n) to the power n times t. Note that P is the principal, the starting amount of money. The formula for the amount after t years when interest is compounded continuously is: A = Pe^(rt) where ^ again means exponentiation. Here we have e to the power r times t. Use the approximation 2.71828 for e as it is good enough for our purposes. An obvious question is how to do the ^, the exponentiation, in C . That is done with the pow (power) function. pow(a, b) gives a^b, a to the b power. Note that b in this program should be an integer,but in general it can be a float or a double. Avoid using a negative number for a. Use the following 3 lines to format the amounts of money to 2 decimal places. You only need to usethese lines once. cout.setf(ios::fixed); cout.setf(ios::showpoint); cout.precision(2);

Can you please help me add a code that gives me the total on the report please? (the total cost for each of those automobiles.)Thank you in advance Project2.javaimport javax.swing.*;import javax.swing.border.EmptyBorder;import javax.swing.border.LineBorder;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.ItemEvent;import java.awt.event.ItemListener;import java.util.Enumeration;import java.util.Locale;class Automobile { protected String make; protected int price; public Automobile(String make, int price) { this.make = make; this.price = price; } public double salesTax() { return 0.05 * price; } @Override public String toString() { return “Make and Model: ” make “n” “Sales Price: ” price “n” “Sales Tax: ” salesTax(); }}class Electric extends Automobile { private int weight; public Electric(String make, int price, int weight) { super(make, price); this.weight = weight; } @Override public double salesTax() { double tax = super.salesTax(); if (weight

## How do I apply discounts in python?I am trying to get the output to work. can you please assist.MY INPUT

How do I apply discounts in python?I am trying to get the output to work. can you please assist.MY INPUT – from parse import *data = “””Name: CJAge: 16Hair: Blond, Long, StraightEyes: BlueRecent Buys: Soda, Unscented Moisturizer, Cat FoodAmount: 8.27″””Amount =”\$8.27″Discount =”0.10″discount =”[Amount] * [Discount]”Total =”[Amount] – [discount]”results = search(“Recent Buys: {buys}n”, data)buys = results[“buys”]print(buys)if “Unscented Moisturizer” in buys: print(“The total is: ” Amount ” Plus a 10% discount being applied.”) print(“Your grand total will be \$” Total “.”)else: print(“The total is: ” Amount “.”)MY OUTPUTSoda, Unscented Moisturizer, Cat FoodThe total is: \$8.27 Plus a 10% discount being applied.Your grand total will be \$[Amount] – [discount].I am trying to the the last print – to print the actual total which should be \$7.45

Assignment Pro (28431)
New York University
Is this question part of your assignment?

## Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
\$26
The price is based on these factors:
Number of pages
Urgency
Basic features
• Free title page and bibliography
• Unlimited revisions
• Plagiarism-free guarantee
• Money-back guarantee
On-demand options
• Writer’s samples
• Part-by-part delivery
• Overnight delivery
• Copies of used sources
Paper format
• 275 words per page
• 12 pt Arial/Times New Roman
• Double line spacing
• Any citation style (APA, MLA, Chicago/Turabian, Harvard)
Have an assignment question? Get help from Expert tutors!
##### Your time is important. Let us write you an essay from scratch
100% plagiarism free
Sources and citations are provided
Stuck? We have tutors online 24/7 who can help
you get an A grade paper.