Given the dictionary, d, find the largest key in the dictionary and associate the corresponding value with the variable val_of_max. For example, given the dictionary {5:3, 4:1, 12:2}, 2 would be associated with val_of_max. Assume d is not empty.

Answers

Answer 1

Answer:

Here is the Python program:

d = {5:3, 4:1, 12:2}

val_of_max = d[max(d.keys())]

print(val_of_max)

Explanation:

The program works as follows:

So we have a dictionary named d which is not empty and has the following key-value pairs:

5:3

4:1

12:2

where 5 , 4 and 12 are the keys and 3, 1 and 2 are the values

As we can see that the largest key is 12. So in order to find the largest key we use max() method which returns the largest key in the dictionary and we also use keys() which returns a view object i.e. the key of dictionary. So

max(d.keys()) as a whole gives 12

Next d[max(d.keys())]  returns the corresponding value of this largest key. The corresponding value is 2 so this entire statement gives 2.

val_of_max = d[max(d.keys())] Thus this complete statement gives 2 and assigns to the val_of_max variable.

Next print(val_of_max) displays 2 on the output screen.

The screenshot of program along with its output is attached.

Given The Dictionary, D, Find The Largest Key In The Dictionary And Associate The Corresponding Value

Related Questions

Write a program that asks the user to enter a 10-character telephone number in the format XXX-XXX-XXXX. The application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. For example, if the user enters 555-GET-FOOD, the application should display 555-438-3663.

Answers

In python:

number = input("Enter a 10-character phone number: ")

for i in number:

   if i.isalpha():

       if i == "A" or i == "B" or i == "C":

           i = "2"

       elif i == "D" or i == "E" or i == "F":

           i = "3"

       elif i == "G" or i == "H" or i == "I":

           i = "4"

       elif i == "J" or i == "K" or i == "L":

           i = "5"

       elif i == "M" or i == "N" or i == "O":

           i = "6"

       elif i == "P" or i == "Q" or i == "R" or i == "S":

           i = "7"

       elif i == "V" or i == "T" or i == "U":

           i = "8"

       elif i == "W" or i == "X" or i == "Y" or i == "Z":

           i = "9"

   print(i, end="")

I hope this helps!

Code:

def phonenumber():

alpha = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']

n =[2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9]

phone = input('Enter phone number in format of XXX-XXX-XXXX : ').upper()

index = 0

for index in range(len(phone)):

if phone[index].isalpha():

print (n[alpha.index(phone[index])], end = ' ')

else:

print (phone[index], end = ' ')

phonenumber()

Compilation output is attached below:

Learn More:https://brainly.com/question/15687460

Write code that read from variables N and M, multiply these two unsigned 32-bit variables and store the result in Variables P, Q. (

Answers

Answer:

Using C language;

#include <stdio.h>

int main()

{

int N, M;

printf("Please enter two numbers: ");

scanf("%d %d", &N, &M);

int P,Q = N*M;

return 0;

}

Explanation:

The variables N and M are declared and the "scanf" function is used to assign a value to the variables from the input prompt, then the product of N and M are saved to the P and Q variables.

Walter The Dog is hot
(This was a waste of 37 points lol)

Answers

Answer:

no

Explanation:

mabey yes

Lol the dog looks funny

Plz answer me will mark as brainliest ​

Answers

1 plus 1 is too and three to four is 111

Write a Python code to ask a user to enter students' information including name,
last name and student ID number. The program should continue prompting the
user to enter information until the user enters zero. Then the program enters
search mode. In this mode, the user can enter a student ID number to retrieve
the corresponding student's information. If the user enters zero, the program
stops. (Hint: consider using list of lists)​

Answers

database = ([[]])

while True:

   first_name = input("Enter the student's first name: ")

   if first_name == "0":

       while True:

           search = input("Enter a student ID number to find a specific student: ")

           if [] in database:

               database.pop(0)

           if search == "0":

               exit()

           k = 0

           for w in database:

               for i in database:

                   if i[2] == search:

                       print("ID number: {} yields student: {} {}".format(i[2], i[0], i[1]))

                       search = 0

   last_name = input("Enter the student's last name: ")

   id_number = input("Enter the student's ID number: ")

   database.append([first_name, last_name, id_number])

I hope this helps!

A Windows user is locked out of her computer, and you must log into the local administrator account HelpdeskAdmin. Which would you use in the username field?

Answers

Answer: .\HelpdeskAdmin

Explanation:

If you wanted to log in as the local administrator then for the Username put a dot (.) and a backslash (\) in front of the Admin username.

The dot(.) will ensure that Windows knows that you are logging into a local computer as the administrator and so will grant you access. The relevant username therefore is, ''.\HelpdeskAdmin''.

I will use  .\HelpdeskAdmin as the username field.

What is a username field?

The username-field is known to be a kind of command that is said to specifies the value for the name that shows the characteristics in the login form and it is one that identifies the username field.

Note that the use of the .\HelpdeskAdmin as the username field is the right thing to do as the dot(.) will make sure that the Windows knows that the user is logging into a computer as the administrator.

Learn more about  local administrator from

https://brainly.com/question/14364696

CAN SOMEONE PLEASE HELP, I WILL GIVE BRAINLIEST (If that helps) (50 points is also available)

Sorry for re-uploading, I am just desperate to fix this.

How on earth do I fix my computer charger port?
Alright, so for anyone thinking it's a virus or it won't turn on, it's not that. So my computer has had a problem with batteries. I have bought two different chargers, none of those worked. I left the computer alone for a year, charged it for hope, and it worked. Upon further inspection, I looked at the charging port and found that the four metal things that go into the charger and pretty much give it the power were somewhat bent. Like, not bent bent, like when you fold paper, but all over the place. I tried watching videos to help, and they require buying a new motherboard or something like that. Is there a way to fix this for free? Like, a way to put the pings/pongs (idk the word) back together for free? If I can have someone give a step-by-step guide on how to fix this, I would appreciate it. I have had this problem since around 2017. Idk if this can motivate anyone but I could also offer a brainliest for the first person to help. Also, I don't know if this helps, but the computer/laptop Is an HP Touchscreen, not the ones that fold into tablets though.

If you have any questions about the matter, please comment it. If you don't have anything to help, don't waste an answer choice for points, I really want this to be fixed.

Thank you for your time.

Answers

Answer:

its perfect

Explanation:

Read the following code:


n = 3

while(n <= 5):

print(n)

n = n + 1


What output would be produced for the given values of n?


A. 0 1 2 3 4

B. 1 2 3 4 5

C. 2 3 4

D. 3 4 5

Answers

The code will print out 3 4 5

Answer choice D is correct.

The output that would be produced for the given values of n is 3 4 5. The correct option is D.

What are codes?

Codes Program is a free developer platform where programmers can learn and share their knowledge. It is regarded as the simplest application development method, and it is frequently used as the standard (method).

Fixing code well into the software program because they discovered an error while composing the program, then he will modify the program, and then they will fix it again.

Less formally, code refers to text written for markup or styling languages such as HTML and CSS (Cascading Style Sheets). Good code is written in such a way that it is readable, understandable, covered by automated tests, not overly complicated, and does the job well."

Therefore, the correct option is D. 3 4 5.

To learn more about codes, refer to the below link:

https://brainly.com/question/14461424

#SPJ2

Create a TeeShirt class for Toby’s Tee Shirt Company. Fields include:

orderNumber - of type int size - of type String color - of type String price - of type double Create set methods for the order number, size, and color and get methods for all four fields. The price is determined by the size: $22.99 for XXL or XXXL, and $19.99 for all other sizes. Create a subclass named CustomTee that descends from TeeShirt and includes a field named slogan (of type String) to hold the slogan requested for the shirt, and include get and set methods for this field.

Answers

Answer:

Here is the TeeShirt class:

public class TeeShirt{  //class name

   private int orderNumber;  // private member variable of type int of class TeeShirt to store the order number

   private String size;  // to store the size of tshirt

   private String color;  //  to store the color of shirt

   private double price;  // to store the price of shirt

   public void setOrderNumber(int num){  //mutator method to set the order number

       orderNumber = num;     }    

   public void setColor(String color){  //mutator method to set the color

       this.color = color;        }      

       

     public void setSize(String sz){  //mutator method to set the shirt size

   size = sz;  

   if(size.equals("XXXL") || size.equals("XXL")){  //if shirt size is XXL or XXXL

       price = 22.99;  // set the price to 22.99 if shirt size is XXL or XXXL

   }else{  //for all other sizes of shirt

       price = 19.99;     }  }  //sets the price to 19.99 for other sizes

   public int getOrderNumber(){  //accessor method to get the order number stored in orderNumber field

       return orderNumber;     }  //returns the current orderNumber

   public String getSize(){  //accessor method to get the size stored in size field

       return size;     }  //returns the current size

   public String getColor(){  //accessor method to get the color stored in color field

       return color;     }  //returns the current color

   public double getPrice(){  //accessor method to get the price stored in price field

       return price;      }  } //returns the current price

Explanation:

Here is the sub class CustomTee:

public class CustomTee extends TeeShirt {  //class CustomTee that inherits from class TeeShirt

private String slogan;   //private member variable of type String of class CustomTee to store slogan

public void setSlogan(String slgn) {  //mutator method to set the slogan

slogan = slgn; }

public String getSlogan() {  //accessor method to get the slogan stored in slogan field

return slogan;}  } //returns the current slogan

Here is DemoTees.java

import java.util.*;

public class DemoTees{  //class name

public static void main(String[] args)  {  //start of main method

TeeShirt tee1 = new TeeShirt();  //creates object of class TeeShirt named tee1

TeeShirt tee2 = new TeeShirt(); //creates object of class TeeShirt named tee2

CustomTee tee3 = new CustomTee(); //creates object of class CustomTee named tee3

CustomTee tee4 = new CustomTee();  //creates object of class CustomTee named tee4

tee1.setOrderNumber(100);  //calls setOrderNumber method of class TeeShirt using object tee1 to set orderNumber to 100

tee1.setSize("XXL");  //calls setSize method of class TeeShirt using object tee1 to set size to XXL

tee1.setColor("blue");  //calls setColor method of class TeeShirt using object tee1 to set color to blue

tee2.setOrderNumber(101);  //calls setOrderNumber method of class TeeShirt using object tee2 to set orderNumber to 101

tee2.setSize("S");  //calls setSize method of class TeeShirt using object tee2 to set size to S

tee2.setColor("gray");  //calls setColor method of class TeeShirt using object tee2 to set color to gray

tee3.setOrderNumber(102);   //calls setOrderNumber method of class TeeShirt using object tee3 of class CustomTee to set orderNumber to 102

tee3.setSize("L");  //calls setSize method of class TeeShirt using object tee3 to set size to L

tee3.setColor("red");  //calls setColor method of class TeeShirt using object tee3 to set color to red

tee3.setSlogan("Born to have fun");  //calls setSlogan method of class CustomTee using tee3 object to set the slogan to Born to have fun

tee4.setOrderNumber(104);  //calls setOrderNumber method of class TeeShirt using object tee4 of class CustomTee to set orderNumber to 104

tee4.setSize("XXXL");  //calls setSize method to set size to XXXL

tee4.setColor("black");  //calls setColor method to set color to black

tee4.setSlogan("Wilson for Mayor");  //calls setSlogan method to set the slogan to Wilson for Mayor

display(tee1);  //calls this method passing object tee1

display(tee2);  //calls this method passing object tee2

displayCustomData(tee3);  //calls this method passing object tee3

displayCustomData(tee4);  }   //calls this method passing object tee4

public static void display(TeeShirt tee) {  //method display that takes object of TeeShirt as parameter

System.out.println("Order #" + tee.getOrderNumber());  //displays the value of orderNumber by calling getOrderNumber method using object tee

System.out.println(" Description: " + tee.getSize() +  " " + tee.getColor());  //displays the values of size and color by calling methods getSize and getColor using object tee

System.out.println(" Price: $" + tee.getPrice()); }  //displays the value of price by calling getPrice method using object tee

public static void displayCustomData(CustomTee tee) {  //method displayCustomData that takes object of CustomTee as parameter

display(tee);  //displays the orderNumber size color and price by calling display method and passing object tee to it

System.out.println(" Slogan: " + tee.getSlogan());  } } //displays the value of slogan by calling getSlogan method using object tee

In this exercise we have to use the knowledge in computational language in JAVA to write the following code:

We have the code can be found in the attached image.

So in an easier way we have that the code is

public class TeeShirt{  

  private int orderNumber;

  private String size;  

  private String color;

  private double price;  

  public void setOrderNumber(int num){  

      orderNumber = num;     }    

  public void setColor(String color){  

      this.color = color;        }  

    public void setSize(String sz){  

  size = sz;  

  if(size.equals("XXXL") || size.equals("XXL")){  

      price = 22.99;  

  }else{

      price = 19.99;     }  }

  public int getOrderNumber(){  

      return orderNumber;     }

  public String getSize(){  

      return size;     }  

  public String getColor(){  

      return color;     }  

  public double getPrice(){

      return price;      }  }

public class CustomTee extends TeeShirt {  

private String slogan;  

public void setSlogan(String slgn) {

slogan = slgn; }

public String getSlogan() {

return slogan;}  }

import java.util.*;

public class DemoTees{

public static void main(String[] args)  {

TeeShirt tee1 = new TeeShirt();

TeeShirt tee2 = new TeeShirt();

CustomTee tee3 = new CustomTee();

CustomTee tee4 = new CustomTee();

tee1.setOrderNumber(100);  

tee1.setSize("XXL");  

tee1.setColor("blue");  

tee2.setOrderNumber(101);

tee2.setSize("S");  

tee2.setColor("gray");  

tee3.setOrderNumber(102);  

tee3.setSize("L");

tee3.setColor("red");  

tee3.setSlogan("Born to have fun");  

tee4.setOrderNumber(104);  

tee4.setSize("XXXL");  

tee4.setColor("black");  

tee4.setSlogan("Wilson for Mayor");  

display(tee1);  

display(tee2);

displayCustomData(tee3);

displayCustomData(tee4);  }  

public static void display(TeeShirt tee) {  

System.out.println("Order #" + tee.getOrderNumber());

System.out.println(" Description: " + tee.getSize() +  " " + tee.getColor());  

System.out.println(" Price: $" + tee.getPrice()); }

public static void displayCustomData(CustomTee tee) {

display(tee);  

System.out.println(" Slogan: " + tee.getSlogan());  } }

See more about JAVA at brainly.com/question/18502436

A ________helps to present data in a row and column format. ​

Answers

Answer:

Tally marks

Explanation:

Tally marks on the Tally table can help us to represent data in a row and column format. ​

If my answer helped, kindly mark me as the Brainliest!!

Thank You!!

Table

In a table the datas are arrange in rows and columns.

China is selling school supplies in the United States for very low prices, even lower than the
preventing prices in China, and thus making it extremely difficult for American manufacturers to
compete. This is referred to as

Answers

Answer:

dumping.

Explanation:

dumping. China is selling school supplies in the United States for very low prices, even lower than the prevailing prices in China, and thus making it extremely difficult for American manufacturers to compete. This is referred to as DUMPING.

What are the benefits of computer?

Answers

Answer:

online toutoring.

helpful games give mind relaxation.

Increase your productivity. ...
Connects you to the Internet. ...
Can store vast amounts of information and reduce waste. ...
Helps sort, organize, and search through information. ...
Get a better understanding of data. ...
Keeps you connected.

What is the proper syntax for writing a while loop in Python?

A. Begin the statement with the keyword repeat
B. End the statement with a colon
C. Place the test condition outside of parentheses
D. Use quotation marks around the relational operators

Answers

The proper syntax for while loops in Python are:

while (condition):

   #the code does something

Answer choice B is the only correct option because all while loops end with a colon.

Answer:

End the statement with a colon

Explanation:

I took the test and got it right.

On what date was jschlatt originally added to the dreamsmp server, and on which date was his second appearance on the server?

Answers

since this has already been answered, who is your favorite SMP character?

mines Wilbur/ Ghostbur

some people will disagree with me but jshlatt is one of my favorite characters on the dream smp . But my all time favorite characters is ALL of Wilbur's characters

This diagram shows a number of computing devices connected to the Internet with each line representing a direct connection.
What is the MINIMUM number of paths that would need to be broken to prevent Computing Device A from connecting with Computing Device E?
A. 1
B. 2
C. 3
D. 4

Answers

Answer: C

Explanation: Computing Device A is connected using 3 wires, which all lead to multiple different paths of wires. If you break all the wires off of A, it leaves it with no paths to use. However, if you do this with E, there is 4 differents paths connected to it. Since you need the MINIMUM, the answer would be C.

What are the operating system roles?

Answers

Answer:

keep track of data,time

its the brain of the computer

My computer keeps shutting down I've tried to completely wipe the memory but it didn't work do you have any ideas how to fix it or what's happening?​

Answers

Answer:

You could have a bug, virus, or you might have been hacked the most I can tell you is try to contact a technician to check it and try to help you. It could also be a problem with your internet, maybe you hit your computer against something and it broke something inside, or it could be a technical glitch. I hop this helps! Good Luck fixing your computer!


A____server translates back and forth between domain names and IP addresses.
O wWeb
O email
O mesh
O DNS

Answers

Answer:

DNS

Explanation:

Hope this helps

DNS I thin hope that helps

Java Eclipse Homework JoggerPro
Over a seven day period, a jogger wants to figure out the average number of miles she runs each day.

Use the following information to create the necessary code. You will need to use a loop in this code.

The following variables will need to be of type “double:”
miles, totalMiles, average

Show a title on the screen for the program.
Ask the user if they want to run the program.
If their answer is a capital or a lowercase letter ‘Y’, do the following:
Set totalMiles to 0.
Do seven times (for loop)
{

Show which day (number) you are on and ask for the number of miles for this day.
Add the miles to the total
}

Show the total number of miles
Calculate the average
Show the average mileage with decimals
Use attractive displays and good spacing.
Save your completed code according to your teacher’s directions.

Answers

import java.util.Scanner;

public class JoggerPro {

   public static void main(String[] args) {

       String days[] = {"Monday?", "Tuesday?", "Wednesday?", "Thursday?","Friday?","Saturday?","Sunday?"};

       System.out.println("Welcome to JoggerPro!");

       Scanner myObj = new Scanner(System.in);

       System.out.println("Do you want to continue?");

       String answer = myObj.nextLine();

       if (answer.toLowerCase().equals("y")){

           double totalMiles = 0;

           for (int i =0; i < 7; i++){

               System.out.println(" ");

               System.out.println("How many miles did you jog on " + days[i]);

               double miles = myObj.nextDouble();

               totalMiles += miles;

           }

           double average = totalMiles / 7;

           System.out.println(" ");

           System.out.println("You ran a total of " + totalMiles+ " for the week.");

           System.out.println(" ");

           System.out.println("The average mileage is " + average);

       }

       

   }

   

}

I'm pretty sure this is what you're looking for. I hope this helps!

What are two examples of items in Outlook?

a task and a calendar entry
an e-mail message and an e-mail address
an e-mail address and a button
a button and a tool bar

Answers

Answer:

a task and a calendar entry

Explanation:

ITS RIGHT

Answer:

its A) a task and a calendar entry

Explanation:

correct on e2020

21. Duplicating a layer merges all of the layers and discards anything that is
not visible. True or False
True
False

Answers

the answer is false. Because it just makes a copy, including all parts of the program.
The answer is false

Write code that prints: Ready! numVal ... 2 1 Start! Your code should contain a for loop. Print a newline after each number and after each line of text Ex: numVal

Answers

Answer:

Written in Python

numVal = int(input("Input: "))

for i in range(numVal,0,-1):

    print(i)

print("Ready!")

Explanation:

This line prompts user for numVal

numVal = int(input("Input: "))

This line iterates from numVal to 1

for i in range(numVal,0,-1):

This line prints digits in descending order

    print(i)

This line prints the string "Ready!"

print("Ready!")

Consider a multiprocessor CPU scheduling policy. There are 2 options: 1) a singlecommon ready queue of jobs; when a CPU becomes free, the job atthe head of the queuegoes to this free CPU. 2) a ready queue for each CPU; the arriving job joins the shortestqueue. In general, do you expect the common queue or the shortest queue policy to performbetter. Justify.

Answers

Explanation:

A ready queue is more adequate since in this method the load balancing occurs in a proper way. The goal of multiple processing is the correct distribution of load.

But in the cases when a processor is doing quicker or taking a smaller queue, it will self assign processes allotted for execution, configuring it with a constant busy state.

Kara's teacher asked her to create a chart with horizontal bars. Which chart or graph should she use?

Bar graph
Column chart
Line graph
Pie chart

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct answer to this question is the Bar graph.

Because we use this chart type to visually compare values across a few categories when the charts show duration or when the category text is long.

However, we can present information similarly in the bar graph and in column charts, but if you want to create a chart with the horizontal bar then you must use the Bar graph. In an Excel sheet, you can easily draw a bar graph and can format the bar graph into a 2-d bar and 3-d bar chart.

A column chart is used to compare values across a few categories. You can present values in columns and into vertical bars.

A line graph chart is used to show trends over months, years, and decades, etc.

Pie Chart is used to show a proportion of a whole. You can use the Pie chart when the total of your numbers is 100%.

Answer:

Bar graph option A

Explanation:

I did the test

Jason works as a financial investment advisor. He collects financial data from clients, processes the data online to calculate the risks associated with future investment decisions, and offers his clients real-time information immediately. Which type of data processing is Jason following in the transaction processing system?

A.
online decision support system
B.
online transaction processing
C.
online office support processing
D.
online batch processing
E.
online executive processing

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct answer to this question is online decision support system. Because the decision support systems process the data, evaluate and predict the decision, and helps the decision-makers,  and offer real time information immediately in making the decision in an organization. So the correct answer to this question is the decision supports system.

Why other options are not correct

Because the transaction processing system can only process the transaction and have not the capability to make the decision for the future. Office support processing system support office work, while the batch processing system process the task into the batch without user involvement.   however, online executive processing does not make decisions and offer timely information to decision-makers in an organization.

4.3 Code Practice: Question 2
Write a program that uses a while loop to calculate and print the multiples of 3 from 3 to 21. Your program should print each number on a separate line.

(Python)

Answers

i = 3

while i  <= 21:

   if i % 3 == 0:

       print(i)

   i += 1

       

The required program written in python 3 is as follows :

num = 3

#initialize a variable called num to 3

multiples_of_3 = []

#empty list to store all multiples of 3

while num <=21 :

#while loop checks that the range is not exceeded.

if num%3 == 0:

#multiples of 3 have a remainder of 0, when divided by 3.

multiples_of_3.append(num)

#if the number has a remainder of 0, then add the number of the list of multiples

num+=1

#add 1 to proceed to check the next number

print(multiples_of_3)

#print the list

Learn more :https://brainly.com/question/24782250

A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number of steps, and whose output is the miles walked. If the input is 5345, the output is 2.6725.

Answers

In python:

print(steps_walked / 2000)

The fraction 460/7 is closest to which of the following whole numbers?

Answers

I don’t see any of “the following numbers”

You've been hired by Maple Marvels to write a C++ console application that displays information about the number of leaves that fell in September, October, and November. Prompt for and get from the user three integer leaf counts, one for each month. If any value is less than zero, print an error message and do nothing else. The condition to test for negative values may be done with one compound condition. If all values are at least zero, calculate the total leaf drop, the average leaf drop per month, and the months with the highest and lowest drop counts. The conditions to test for high and low values may each be done with two compound conditions. Use formatted output manipulators (setw, left/right) to print the following rows:________.
September leaf drop
October leaf drop
November leaf drop
Total leaf drop
Average leaf drop per month
Month with highest leaf drop
Month with lowest leaf drop
And two columns:
A left-justified label.
A right-justified value.
Define constants for the number of months and column widths. Format all real numbers to three decimal places. The output should look like this for invalid and valid input:
Welcome to Maple Marvels
------------------------
Enter the leaf drop for September: 40
Enter the leaf drop for October: -100
Enter the leaf drop for November: 24
Error: all leaf counts must be at least zero.
End of Maple Marvels
Welcome to Maple Marvels
------------------------
Enter the leaf drop for September: 155
Enter the leaf drop for October: 290
Enter the leaf drop for November: 64
September leaf drop: 155
October leaf drop: 290
November leaf drop: 64
Total drop: 509
Average drop: 169.667
Highest drop: October
Lowest drop: November
End of Maple Marvels

Answers

Answer:

#include <iostream>

#iclude <iomanip>

#include <algorithm>

using namespace std;

int main(){

int num1, num2, num3,  

int sum, maxDrop, minDrop = 0;

float avg;

string end = "\n";

cout << " Enter the leaf drop for September: ";

cin >> num1 >> endl = end;

cout << "Enter the leaf drop for October: ";

cin >> num2 >> endl = end;

cout << "Enter the leaf drop for November: ";

cin >> num3 >> endl = end;  

int numbers[3] = {num1, num2, num3} ;

string month[3] = { "September", "October", "November"}

for ( int i =0; i < 3; i++) {

 if (numbers[i] < 0) {

   cout << "Error: all leaf counts must be at least zero\n";

   cout << "End of Maple Marvels\n";

   cout << "Welcome to Maple Marvels";

   break;

 } else if (number[i] >= 0 ) {

     sum += number[i] ;  

   }

}

for (int i = 0; i < 3; i++){

 cout << month[i] << " leaf drop: " << numbers[i] << endl = end;

}

cout << "Total drop: " << sum << endl = end;  

cout << setprecision(3) << fixed;

cout << "Average drop: " << sum / 3<< endl = end;

maxDrop = max( num1, num2, num3);

minDrop = min(num1, num2, num3);

int n = sizeof(numbers)/sizeof(numbers[0]);

auto itr = find(number, number + n, maxDrop);

cout << "Highest drop: "<< month[ distance(numbers, itr) ] << endl = end;

auto itr1 = find(number, number + n, minDrop);

cout << "Lowest drop: " << month[ distance(numbers, itr1) ] << endl = end;

cout << "End of Maple Marvels";

Explanation:

The C++ source code above prompts for user input for three integer values of the leaf drop count through the September to November. The total drop, average, minimum and maximum leaf drop is calculated and printed out.

IT professionals have a responsibility to educate employees about the risks of hot spots. Which of the following are risks associated with hot spots? Check all of the boxes that apply.

third-party viewing

unsecured public network

potential for computer hackers

unauthorized use

Answers

Answer:

All of them

Explanation:

got it right on edge 2020

Answer:

All of the above

Explanation:

just do it

Other Questions
Who was a congressman from Pennsylvania and one of the radical Republicans who believed in harsh punishments for the south after the Civil War. He wanted to divide the plantations to give land to former slaves the multiplicative inverse of 7-2 is PLS HELP!!! Which statement from "The Lakota Music Project Hopes to Connect People through Music" most likely describes the authors position towards the Lakota Music Project? "From the Lakota point of view, however, the "Indianist" movement represents cultural appropriation, or inappropriate adoption of customs." "It flourished in the early 20th century as American composers based works on Native American themes." "The first Lakota Music Project tour, in 2009, established themes for the concerts." "The Lakota Music Project's focus remains on building bridges through music." Help PleaseWhat is the chemical reaction of carbon dioxide (or an example of a chemical reaction of carbon dioxide)Also, does carbon dioxide create a reactant or product? How do family and peer group help to socialize a person? Math the feature or term to the characteristics in column 2Earthquake FaultHimalayasSubduction zoneTo:When one plate goes under anotherBrake in the crustCaused by continents collidingOccurs when a fault slips 4) Tony pays $245 for a PS4. He decides to sell the PS4 with a 30%markup. How much is Tony selling the PS4 for? Select the THREE solutions that are equivalent to the expression 4(n + 1):a. 4n + 1b. n + n + n +n +1 +1 +1 +1c. 2n + 2n + 4d. 2n + n + n +1e. 4n + 4f. 4 (n + 4) Whats 1.2983 rounded to the nearest hundredth 25 POINTS!!!! Help please Based on the selection, what is the author's message about the new definition of planets?O A.The new definition for planets needs to be considered as settled moving forward.OB.The IAU used poor methods when setting a new definition for planets.OC.It is uncertain whether the definition of planet will remain the same in the future.ODPluto should not have been the reason why IAU changed the definition of planets. Different elements have different numbers of: Subatomic particles. Protons.Electrons. All of the above. please hurry.............The table gives an inequality and a number to multiply both sides of the inequality by. Identify the new, true inequality.A: (24 > 16) (24 < 16) (24 = 16)B: (-22 > -6) (-22 < -6) (-22 = -6)C: (21 > -18) (21 < -18) (21 = -18)D: (-25 > 5) (-25 < 5) (-25 = 5)Multiplying both sides of an inequality by a positive number (does not change or reverses) the inequality symbol.the things in "()" are the answer choices lol. Debate is an important step in the lawmaking process because it: 20x+x-2=4 rational equation University Printers has two service departments Maintenance and Personnel and two operating departments Printing and Developing. Management has decided to allocate maintenance costs on the basis of machine-hours in each department and personnel costs on the basis of labor-hours worked by the employees in each.The following data appear in the company records for the current period:Maintenance Personnel Printing DevelopingMachine-hours ? 455 455 2,590Labor-hours 315 ? 294 1,491Department direct cost 11,000 $23,000 $25,000 $23,000Required: Allocate the service department costs using the reciprocal method. Negative amounts should be indicated by a minus sign. Do not round intermediate calculations. Angelina put 3,000 milliliters of water in a tub that alredy has 5 liters of water in it. Jack says the tub now has 35 liters of water in it Angelina says he is wrong carry out your steps explain who is correct and why helpppppp please 7. True or false: to lessen the impact of heat waves, roads can be painted white. Ivan reads a story about a population of mice that become stranded in a dark jungle. Some mice are dark brown, while others are white. According to the process of natural selection, predict which mice would be more successful living in a dark jungle. Explain natural selection and your prediction. How do we determine climate change (amount of time, trends, etc)?