Help asap dont answer with a link​

Help Asap Dont Answer With A Link

Answers

Answer 1

Answer:

90

Explanation:

dur nearly all my friends and family knows that


Related Questions

Computer programming

Answers

Sjanqknjwolq esjkalqlkd

Write C programs that output the following patterns exactly. Use loops to implement the repetitive part of the code. No functions or arrays are allowed?

Answers

Answer:

your a legend you can do it just pleave

Explanation:

:)

Let's consider a long, quiet country road with houses scattered very sparsely along it. (We can picture the road as a long line segment, with an eastern endpoint and a western endpoint.) Further, let's suppose that despite the bucolic setting, the residents of all these houses are avid cell phone users. You want to place cell phone base stations at certain points along the road, so that every house is within four miles of one of the base stations. Give an efficient algorithm that achieves this goal, using as few base stations as possible.

Answers

Answer:

Follows are the solution to these question:

Explanation:

A simple gullible algorithm is present. Let h mark the house to the left. Then we put a base station about 4 kilometers to the right. Now delete and repeat all the houses protected by this base station. In this algorithm, they can simply be seen to position baselines at b1, . . , bk as well as other algorithms (which may be an optimum algorithm) at [tex]b'_{1}, \ . . . . . . ,b'_{k'}[/tex]  and so on. (from left to right)   [tex]b_1 \geq b'_{1},\ \ b_2 \geq b'_{2}[/tex] That's why [tex]k \leq k'[/tex].

You received an email message stating that your mother's bank account is going to be forfeited if you do not respond to the email. Is it safe to reply?Why?


It's a scenario<3​

Answers

Answer:

No.

Explanation:

I'm almost certain it's a scam. Banks generally don't use emails to contact clients. They use telephones and paper correspondence. If they contact you by email it is because they have no other way of getting in touch with you because you have changed your address and your phone, etc..

what are the three main components of a for loop?

Answers

Answer:

Similar to a While loop, a For loop consists of three parts: the keyword For that starts the loop, the condition being tested, and the EndFor keyword that terminates the loop.

Explanation:

Loop statements usually have four components: initialization (usually of a loop control variable), continuation test on whether to do another iteration, an update step, and a loop body.

"Look at the following code. Which line will cause a compiler error?

Line 1 public class ClassA
Line 2 {
Line 3 public ClassA() {}
Line 4 public final int method1(int a){ return a;}
Line 5 public double method2(int b){ return b;}
Line 6 }
Line 7 public ClassB extends ClassA
Line 8 { Line 9 public ClassB(){}
Line 10 public int method1(int b){ return b;}
Line 11 public double method2(double c){ return c;}
Line 12 }"

a. Line 4
b. Line 5
c. Line 10
d. Line 11

Answers

Answer:

i got a feeling c

Explanation:

Chris recently received an array p as his birthday gift from Joseph, whose elements are either 0 or 1. He wants to use it to generate an infinite long superarray. Here is his strategy: each time, he inverts his array by bits, changing all 0 to 1 and all 1 to 0 to get another array, then concatenate the original array and the inverted array together. For example, if the original array is [0,1,1,0] then the inverted array will be [1,0,0,1] and the new array will be [0,1,1,0,1,0,0,1]. He wonders what the array will look like after he repeat this many many times.

He ask you to help him sort this out. Given the original array pp of length ????n and two indices a,b (????≪????≪????, means much less than) Design an algorithm to calculate the sum of elements between a and b of the generated infinite array p^, specifically, ∑????≤????≤????p????^. He also wants you to do it real fast, so make sure your algorithm runs less than O(b) time. Explain your algorithm and analyze its complexity.

Answers

Answer:

its c

Explanation:

Read the passage. What does it help you understand about how Manjiro’s character has developed?

Answers

Answer:

The passage shows that Manjiro is thinking more independently than he did at the beginning of the story. he is not as influenced by the fears and ideas common in his culture; instead, he recognizes that the "barbarians" on the ship are simply people just like him.

Explanation:

It is correct

A two-dimensional list is suitable for storing tabular data. True False 2 A two-dimensional list is really a one-dimensional list of one-dimensional lists. True False 3 The smallest index of any dimension of a two-dimensional list is 1. True False 4 The maximum indexes of a two-dimensional list with 6 rows and 10 columns are 5 and 9, respectively. True False 5 How many elements can be stored in a two-dimensional list with 5 rows and 10 columns

Answers

Answer:

1.) True

2.) True

3.) False

4.) True

5.) 50

Explanation:

A.) Two dimensional list reperesents arrays arranges in rows and column pattern ; forming a Table design. 1 dimension represents rows whe the other stands for the column.

B.) When a 1-dimensional list is embedded in another 1 - dimensional list, we have a 2 - D list.

C.) The smallest index of any dimension of a 2-D list is 0

.D.) Given a 2-D list with 6 rows and 10 columns

Maximum dimension:

(6 - 1) = 5 and (10 - 1) = 9

Dimension = (5, 9)

E.) maximum number of elements :

5 rows by 10 columns

5 * 10 = 50 elements.

7. Question
HTTP status codes are codes or numbers that indicate some sort of error or info message that
occurred when trying to access a web resource. When a website is having issues on the server side,
what number does the HTTP status code start with?
17
5xx
2xx
O O O O
6xx
4xx

Answers

All server side errors start with 5XX

8) What is the address of the first SFR (1/O Register)?​

Answers

Answer:

The Register A is located at the address E0H in the SFR memory space. The Accumulator is used to hold the data for almost all the ALU Operations. Some of the operations where the Accumulator is used are: Arithmetic Operations like Addition, Subtraction, Multiplication etc.

Dan wants to use some of his friend's printed photos of sea creatures for a school multimedia project. Which input device is best for transferring the photos to his project?
ОА
web camera
OB.
scanner
OC graphics tablet
OD
digital camera

Answers

Dan wants to transfer printed photos of sea creatures to his school multimedia project. Using a scanner, he can create a digital image of the printed photos and then import them into his project. The correct answer is B. scanner.

What is scanner ?

A scanner is an input device that creates a digital image of a physical document or image.

Therefore, Scanners are widely used in businesses, homes, and institutions for a variety of purposes, such as scanning documents for archiving, creating digital copies of physical documents and converting printed photos into digital images.

Learn more about scanner here : brainly.com/question/14259590

#SPJ1

_____(Blank) Is the money that received regularly by an individual, for providing good or services, earnings from labor, business, or investments​

Answers

Answer:

Income is money what an individual or business receives in exchange for providing labor, producing a good or service, or through investing capital. Individuals most often earn income through wages or salary.

Explanation:

Hope It Help you

3 uses of Microsoft word in hospital

Answers

Answer:

Using word to Write the instructions of tools fo things. Using powerpoint to show how do prepare the surgery and excel to write the time and appointments of things

Explanation:

71 Computer A uses Stop and Wait ARQ to sand packats to computer B. If the
distance between A and B is 40000 km the packet size is 5000 bytes and the
bandhvidth is 10Mbps. Assume that the propagation speed is 2.4x108mis?
a) How long does it take computer A to receive acknowledgment for a packet?

Answers

D

Sorry if I’m wrongggggggg

internet is an interconnected networks
o true
o false

Answers

Answer:

True.

Internet is an interconnected network.

________ can be written only once. The data cannot be erased or written over once it is saved.​

Answers

Answer:

WORM (Write Once, Read Many)

Explanation:

The full meaning which means Write Once, Read Many implies that data can only be entered (or better put, written) once. Once the data has been written, the data can not be updated or deleted. However, the data being stored on WORM can be read as many times, as possible.

Hence, WORM answers the question.

wanna jo.in zo.om
then jo.in
id- 393 303 5214
p.a.s.s.w.ord- 12345

c'monnn​

Answers

Answer:

No not really...

Explanation:

1. What if im rick roled

2. i dont know u

3. u could be a predator

4. WHAT IF IM RICK ROLED!!!!!!

Use the arr field and mystery () method below.

private int[] arr;

//precondition: arr.length > 0
public void mystery()
{
int s1 = 0;
int s2 = 0;

for (int i = 0; i < arr.length; i++)
{
int num = arr[i];

if ((num > 0) && (num % 2 == 0))
{
s1 += num;
}
else if (num < 0)
{
s2 += num;
}
}

System.out.println(s1);
System.out.println(s2);
}
Which of the following best describes the value of s1 output by the method mystery?

The sum of all values greater than 2 in arr
The sum of all values less than 2 in arr
The sum of all positive values in arr
The sum of all positive odd values in arr
The sum of all positive even values in arr

Answers

Answer:

The sum of all positive even values in arr

Explanation:

We have an array named arr holding int values

Inside the method mystery:

Two variables s1 and s2 are initialized as 0

A for loop is created iterating through the arr array. Inside the loop:

num is set to the ith position of the arr (num will hold the each value in arr)

Then, we have an if statement that checks if num is greater than 0 (if it is positive number) and if num mod 2 is equal to 0 (if it is an even number). If these conditions are satisfied, num will be added to the s1 (cumulative sum). If num is less than 0 (if it is a negative number), num will be added to the s2 (cumulative sum).

When the loop is done, the value of s1 and s2 is printed.

As you can see, s1 holds the sum of positive even values in the arr

We want to implement a data link control protocol on a channel that has limited bandwidth and high error rate. On the other hand, the communication equipment has high processing power and large buffering capacity. Assume that off-the-shelf software is available for two protocols, the Go Back N and the Selective Repeat protocols. Which one is better in this situation

Answers

Answer:

Selective Repeat protocols

Explanation:

It is better to make use of the selective repeat protocol here. From what we have here, there is a high error rate on this channel.

If we had implemented Go back N protocol, the whole N packets would be retransmitted. Much bandwidth would be needed here.

But we are told that bandwidth is limited. So if packet get lost when we implement selective protocol, we would only need less bandwidth since we would retransmit only this packet.

The Yuba College Library would like a program to calculate patron fines for overdue books. Fines are determined as follows: Paperbacks Regular $.20 / day with a maximum fine of $8.00 Best-Sellers $.50 / day with a maximum fine of $15.00 Magazines $.25 / day with a maximum fine of $5.00 Hardcover Books $.30 / day with a maximum fine of $23.00 The program must prompt the user to enter the following information at the keyboard. Data entry MUST be validated as required. Fines must also be calculated using a function(s). A class object should contain the methods (functions) to determine library fine. Provide a UML and description of disign.Patron’s library card number (a 4-digit number) - ValidatePatron’s namePatron’s addressType of book - ValidateNumber of days over due - ValidateA sample interactive session is shown below:Enter the patron’s card number: 2089Enter the patron’s name: Erica RobinsonEnter the patron’s address: 2234 RoadWay Trl.Enter the book’s title: The Trail Less Traveled.1. Paperback - Regular2. Paperback - Bestseller3. Magazine4. Hardcover bookEnter number corresponding to type of book (1 – 4): 4Enter the number of days overdue: 11Do you wish to perform another transaction?

Answers

Answer:

Explanation:

The following Python code creates all of the necessary functions in order to request and validate all of the inputs from the user. Once everything is entered and validated it calculates the total fee and outputs it to the user. Also calls the entire class at the end using a test variable...

class Customer:

   library_card = 0

   patrons_name = ""

   patrons_address = ""

   type_of_book = ""

   book_title = ""

   days_overdue = 0

   fee = 0.0

   book_list = ['paperback regular', 'paperback best seller', 'magazine', 'hardcover']

   def __init__(self):

       self.library_card = self.get_library_card()

       self.patrons_address = input("Patron's Address: ")

       self.book_title = input("Book Title: ")

       self.type_of_book = self.get_type_of_book()

       self.days_overdue = float(self.get_days_overdue())

       self.calculate_total()

       print("Your total Fee is: " + str(self.fee))

   def get_library_card(self):

       library_card = int(input("Enter 4-digit library card number: "))

       if (type(library_card) == type(0)) and (len(str(library_card)) == 4):

           return library_card

       else:

           print("Invalid Card number:")

           self.get_library_card()

   def get_type_of_book(self):

       type_of_book = input("Type of Book 1-4: ")

       if (int(type_of_book) > 0) and (int(type_of_book) <= 4):

           return int(type_of_book)

       else:

           print("Invalid Type")

           self.get_type_of_book()

   def get_days_overdue(self):

       days_overdue = input("Number of Days Overdue: ")

       if int(days_overdue) >= 0:

           return days_overdue

       else:

           print("Invalid number of days")

           self.get_days_overdue()

   def calculate_total(self):

       if self.type_of_book == 1:

           self.fee = 0.20 * self.days_overdue

           if self.fee > 8:

               self.fee = 8

       elif self.type_of_book == 2:

           self.fee = 0.50 * self.days_overdue

           if self.fee > 15:

               self.fee = 15

       elif self.type_of_book == 3:

           self.fee = 0.25 * self.days_overdue

           if self.fee > 5:

               self.fee = 5

       else:

           self.fee = 0.30 * self.days_overdue

           if self.fee > 23:

               self.fee = 23

test = Customer()

In this exercise, you are going to build a hierarchy to create instrument objects. We are going to create part of the orchestra using three classes, Instrument, Wind, and Strings. Note that the Strings class has a name very close to the String class, so be careful with your naming convention!We need to save the following characteristics:Name and family should be saved for all instrumentsWe need to specify whether a strings instrument uses a bowWe need to specify whether a wind instrument uses a reedBuild the classes out with getters and setters for all classes. Only the superclass needs a toString and the toString should print like this:Violin is a member of the String family.Your constructors should be set up to match the objects created in the InstrumentTester class.These are the files givenpublic class InstrumentTester{public static void main(String[] args){/*** Don't Change This Tester Class!** When you are finished, this should run without error.*/Wind tuba = new Wind("Tuba", "Brass", false);Wind clarinet = new Wind("Clarinet", "Woodwind", true); Strings violin = new Strings("Violin", true);Strings harp = new Strings("Harp", false); System.out.println(tuba);System.out.println(clarinet); System.out.println(violin);System.out.println(harp);}}////////////////////////////public class Wind extends Instrument{}///////////////////////////public class Strings extends Instrument{ }/////////////////////////public class Instrument{ }

Answers

Answer:

Explanation:

The following code is written in Java and creates the classes, variables, and methods as requested. The String objects created are not being passed a family string argument in this question, therefore I created two constructors for the String class where the second constructor has a default value of String for family.

package sample;

class InstrumentTester {

   public static void main(String[] args) {

       /*** Don't Change This Tester Class!** When you are finished, this should run without error.*/

       Wind tuba = new Wind("Tuba", "Brass", false);

       Wind clarinet = new Wind("Clarinet", "Woodwind", true);

       Strings violin = new Strings("Violin", true);

       Strings harp = new Strings("Harp", false);

       System.out.println(tuba);

       System.out.println(clarinet);

       System.out.println(violin);

       System.out.println(harp);

   }

}

class Wind extends Instrument {

   boolean usesReef;

   public Wind(String name, String family, boolean usesReef) {

       this.setName(name);

       this.setFamily(family);

       this.usesReef = usesReef;

   }

   public boolean isUsesReef() {

       return usesReef;

   }

   public void setUsesReef(boolean usesReef) {

       this.usesReef = usesReef;

   }

}

class Strings extends Instrument{

   boolean usesBow;

   public Strings (String name, String family, boolean usesBow) {

       this.setName(name);

       this.setFamily(family);

       this.usesBow = usesBow;

   }

   public Strings (String name, boolean usesBow) {

       this.setName(name);

       this.setFamily("String");

       this.usesBow = usesBow;

   }

   public boolean isUsesBow() {

       return usesBow;

   }

   public void setUsesBow(boolean usesBow) {

       this.usesBow = usesBow;

   }

}

class Instrument{

   private String family;

   private String name;

   public String getName() {

       return name;

   }

   public void setName(String name) {

       this.name = name;

   }

   public String getFamily() {

       return family;

   }

   public void setFamily(String family) {

       this.family = family;

   }

   public String toString () {

       System.out.println(this.getName() + " is a member of the " + this.getFamily() + " family.");

       return null;

   }

}

Create the following SQL Server queries that access the Northwind database. Place them in a zip file and place the zip file in the "drop box" for Assignment 5. Name the queries Query 1-MP5, Query2-MP5, etc. Note: These problems all require aggregate processing with GROUP BY
1. For each employee, list the employee ID, employee first name, employee last name, and count of orders taken in 1996. Place the list in descending order by the number of orders.
2. For all orders shipped in July or August, 1996, list the order ID, company name, order date, and total cost of all items ordered. Place the list in descending order by the total cost
3. For all customers from the USA, list the customer ID, company name, state, count of orders, and total order amount. Do not consider the discount. Place the list in order by state and then customer ID.
4. Same as problem 3 but limit the list to all customers who placed 3 or more orders.
5. For all items in the Grains/Cereals category, list the product ID, product name, supplier name, and last date that the product was ordered. Order the list by supplier name and product name (Hint: Use MAX and be sure to include all necessary tables)
6. The product ID, product name, and count of distinct customers who ordered that product in 1996. Place the list in descending order by the count of customers.

Answers

Answer:

1. SELECT e.EmployeeID, e.FirstName, e.LastName, COUNT(*) as OrderByEmployee FROM Employees e

JOIN Orders o

ON e.EmployeeID = o.EmployeeID

WHERE YEAR(o.OrderDate) = '1996'

GROUP BY e.EmployeeID,e.FirstName,e.LastName

ORDER BY OrderByEmployee DESC

2. SELECT o.OrderID,c.CustomerID, o.OrderDate,SUM((od.Quantity)*

od.UnitPrice - od.Discount)) as TotalCost FROM Orders o

JOIN [Order Details] od

ON od.OrderID = o.OrderID

JOIN Customers c

ON o.CustomerID = c.CustomerID

WHERE (MONTH(OrderDate)= 7 OR MONTH(OrderDate) = 8) and

YEAR(OrderDate) = 1996

GROUP BY o.OrderID,c.CustomerID, o.OrderDate

ORDER BY TotalCost DESC

3. SELECT c.CustomerID, c.CompanyName, c.City, COUNT(o.OrderID) as TotalOrder, SUM(od.Quantity* od.UnitPrice) as TotalOrderAmount FROM Customers c

JOIN Orders o

ON o.CustomerID = c.CustomerID

JOIN [Order Details] od

ON od.OrderID = o.OrderID

WHERE c.Country = 'USA'

GROUP BY c.CustomerID, c.CompanyName, c.City

ORDER BY c.City, c.CustomerID

4. SELECT c.CustomerID, c.CompanyName, c.City, COUNT(o.OrderID) as TotalOrder, SUM(od.Quantity* od.UnitPrice) as TotalOrderAmount FROM Customers c

JOIN Orders o

ON o.CustomerID = c.CustomerID

JOIN [Order Details] od

ON od.OrderID = o.OrderID

WHERE c.Country = 'USA'

GROUP BY c.CustomerID, c.CompanyName, c.City

HAVING COUNT(o.OrderID) > 3

ORDER BY c.City, c.CustomerID

5. SELECT p.ProductID, p.ProductName, s.ContactName as SupplierName, MAX(o.OrderDate) as LastOrderDateOfProduct FROM Products p

JOIN Categories c

ON c.CategoryID = p.CategoryID

JOIN Suppliers s

ON s.SupplierID = p.SupplierID

JOIN [Order Details] od

ON od.ProductID = p.ProductID

JOIN Orders o

ON o.OrderID = od.OrderID

where c.CategoryName = 'Grains/Cereals'

GROUP BY p.ProductID, p.ProductName, s.ContactName

ORDER BY SupplierName, p.ProductName

6. SELECT p.ProductID, p.ProductName, Count(DISTINCT c.CustomerID ) as OrderByThisManyDistinctCustomer

FROM Products p

JOIN [Order Details] od

ON od.ProductID = p.ProductID

JOIN Orders o

ON o.OrderID = od.OrderID

JOIN Customers c

ON c.CustomerID = o.CustomerID

where YEAR(o.OrderDate) = 1996

GROUP BY p.ProductID, p.ProductName

Explanation:

The six query statements returns data from the SQL server Northwind database. Note that all the return data are grouped together, this is done with the 'GROUP BY' Sql clause.

A variable like userNum can store a value like an integer. Extend the given program to print userNum values as indicated.(1) Output the user's input.Enter integer: 4You entered: 4(2) Extend to output the input squared and cubed. Hint: Compute squared as userNum * userNum. (Submit for 2 points, so 4 points total).Enter integer: 4You entered: 44 squared is 16 And 4 cubed is 64!! (3) Extend to get a second user input into userNum2. Output sum and product. (Submit for 1 point, so 5 points total).Enter integer: 4You entered: 44 squared is 16 And 4 cubed is 64!!Enter another integer: 54 + 5 is 94 * 5 is 20LABACTIVITY1.16.1: Basic output with variables (Java)0 / 5OutputWithVars.javaLoad default template...import java.util.Scanner;public class OutputWithVars {public static void main(String[] args) {Scanner scnr = new Scanner(System.in);int userNum = 0;System.out.println("Enter integer: ");userNum = scnr.nextInt(); return;}}import java.util.Scanner;public class OutputWithVars {public static void main(String[] args) {Scanner scnr = new Scanner(System.in);int userNum = 0;System.out.println("Enter integer: ");userNum = scnr.nextInt();return;}}Develop modeSubmit modeRun your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box.

Answers

Answer:

The program in Java is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

 int userNum;

 Scanner input = new Scanner(System.in);

 System.out.print("Enter integer: ");

 userNum = input.nextInt();

 System.out.println("You entered "+userNum);

 System.out.println(userNum+" squared is "+(userNum*userNum));

 System.out.println(userNum+" cubed is "+(userNum*userNum*userNum));

 int userNum2;

 System.out.print("Enter another integer: ");

 userNum2 = input.nextInt();

 int sum= userNum + userNum2; int product = userNum2 * userNum;

 System.out.println(userNum+" + "+userNum2+" = "+sum);

 System.out.println(userNum+" * "+userNum2+" = "+product); } }

Explanation:

This declares userNum

 int userNum;

 Scanner input = new Scanner(System.in);

This prompts the user for input

 System.out.print("Enter integer: ");

This gets user input from the user

 userNum = input.nextInt();

Number (1) is implemented here

 System.out.println("You entered "+userNum);

Number (2) is implemented here

 System.out.println(userNum+" squared is "+(userNum*userNum));

 System.out.println(userNum+" cubed is "+(userNum*userNum*userNum));

This declares another variable userNum2

 int userNum2;

This prompts the user for another input

 System.out.print("Enter another integer: ");

This gets user input from the user

 userNum2 = input.nextInt();

This calculates the sum and the product

 int sum= userNum + userNum2; int product = userNum2 * userNum;

Number (3) is implemented here

 System.out.println(userNum+" + "+userNum2+" = "+sum);

 System.out.println(userNum+" * "+userNum2+" = "+product);

Consider the following:

calc = 3 * 5 + 4 ** 2 - 1
What is the base for the exponent?


8

4

5

3

Answers

Answer:

3 * 5 + 4 ** 2 - 1 = 5

Explanation:

3 * 5 = 15 + 4 ** 2 = 76 - 1 = 75

The exponent of a number shows how many times a base integer should be multiplied. It is represented as a tiny number in the top right corner of a base number, and the further calculation can be defined as follows:

Given:

[tex]\bold{calc = 3 * 5 + 4 ** 2 - 1}[/tex]

Calculation:

[tex]\bold{calc = 3 \times 5 + 4^2 - 1}\\\\\bold{calc = 15 + 16 - 1}\\\\\bold{calc = 15 + 15 }\\\\\bold{calc = 30 }\\\\[/tex]

The given code is a part of the python program, in which we use the power expression. It implies that one "*" symbol is used to multiply the value and "**" and two symbols are used for calculating the power value.

Therefore, the answer is "4".

Learn more:

brainly.com/question/9857728

Write a program named Averages that includes a method named Average that accepts any number of numeric parameters, displays them, and displays their average. For example, if 7 and 4 were passed to the method, the output would be: 7 4 -- Average is 5.5 Test your function in your Main(). Tests will be run against Average() to determine that it works correctly when passed one, two, or three numbers, or an array of numbers. Grading When you have completed your program, click the Submit button to record your score.

Answers

Answer:

In Java:

import java.util.*;

public class Averages{

public static double Average(int [] myarr, int n){

    double sum = 0;

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

        System.out.print(myarr[i]+" ");

        sum+=myarr[i];     }

    System.out.println();

    return sum/n; }

public static void main(String[] args) {

  Scanner inp = new Scanner(System.in);

  System.out.print("Length of inputs: ");

  int n = inp.nextInt();

  int [] arr = new int[n];

  System.out.print("Enter inputs: ");

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

      arr[i] = inp.nextInt();   }

  System.out.println("Average: "+Average(arr,n)); }}

Explanation:

The function is defined here

public static double Average(int [] myarr, int n){

Initialize sum to 0

    double sum = 0;

Iterate through the elements of the array

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

Print each element followed by space

        System.out.print(myarr[i]+" ");

Add up elemente of the array

        sum+=myarr[i];     }

Print a new line

    System.out.println();

Return the average

    return sum/n; }

The main begins here

public static void main(String[] args) {

  Scanner inp = new Scanner(System.in);

Prompt the user for number of inputs

  System.out.print("Length of inputs: ");

Get the number of inputs

  int n = inp.nextInt();

Declare an array

  int [] arr = new int[n];

Get element of the array

  System.out.print("Enter inputs: ");

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

      arr[i] = inp.nextInt();   }

Call the Average function

  System.out.println("Average: "+Average(arr,n)); }}

indicates the beginning and ending of your code written in HTML

Answers

Answer:

<body> ...</body>

indicates the beginning and ending of your code written in HTML

Explanation:

write HTML5 coding to add a field to enter the number of days the minimum value is 1 and the maximum value is 3​

Answers

Answer:

In HTML 5

<form>

 <label>Days (1 - 3):</label>

 <input type="number" id="days" name="days" min="1" max="3">

</form>

Explanation:

This creates a form

<form>

This creates a label with the caption Days (1 - 3)

 <label>Days (1 - 3):</label>

This creates a number field where the minimum and maximum that could be entered are 1 and 3 respectively

 <input type="number" id="days" name="days" min="1" max="3">

The form ends here

</form>

The minimum and maximum are specified using the following attributes and value

min = "1" --- For minimum

max = "3" --- For maximum

importance of information
literay to the society

Answers

Explanation:

Information literacy is important for today's learners, it promotes problem solving approaches and thinking skills – asking questions and seeking answers, finding information, forming opinions, evaluateing sources, and making decisions fostering successful learners, effective contributors, and confident individuals.

Goal: The campus squirrels are throwing a party! Do not ask. They need you to write a method that will determine whether it will be successfull (returns true) or not (returns false). The decision will be based on int values of the two parameters "squirrels" and "walnuts" representing respectively the number of squirrels attending the party and the numbers of walnuts available to them. The rules for making that determination are detailed below. Variables declarations & initialization: Boolean variable named "result", initialized to false. Steps for the code: First, if less than 1 squirrel attends, then "result" is assigned false. Else, we consider the following conditions: If we have less than, or exactly, 10 squirrels attending: Then: If we have less than 15 walnuts, Then: "result" is set to false. Else: if we have less than, or exactly, 30 walnuts Then: "result" is set to true. Else: "result" is set to false. Else: If less than, or exactly, 30 squirrels are attending Then: If the number of walnuts is more or equal to twice the number of squirrels attending Then: "result" is set to true Else: "result" is set to false Else: If the number of walnuts is equal to 60 plus the number of squirrels attending minus 30 Then: "result" is set to true Else: "result" is set to false

Answers

Answer:

Following are the code to the given question:

#include<iostream>// header file

using namespace std;

int main()//main function

{

   int squirrels, walnuts;//defining integer variable

   bool result = false;  //defining a bool variable that holds a false value

   cout<<"Enter the number of squirrels"<<endl;//print message

   cin>>squirrels;   // input integer value

   cout<<"Enter the number of walnuts"<<endl;//print message

   cin>>walnuts;  // input integer value

   if(squirrels < 1)//use if variable that checks squirrels value less than 1

   {    

       result = false;//use result variable that holds false value

   }

   else//defining else block

   {

       if(squirrels <= 10)//use if variable that checks squirrels value less than equal to 10

       {

           if(walnuts < 15) //use if variable that checks walnuts value less than 15

               result = false;//use result variable that holds false value

           else if(walnuts <= 30)//use elseif block that checks walnuts less than equal to 30

               result = true; //use result variable that holds true value

           else //defining else block

           result = false;//use result variable that holds false value

       }

       else if(squirrels <= 30)//use elseif that checks squirrels value less than equal to 30

       {

           if(walnuts >= 2*squirrels) //use if block to check walnuts value greater than equal to 2 times of squirrels

               result = true; //use result variable that holds true value

           else//defining else block

               result = false;//use result variable that holds false value

       }

       else if(walnuts == 60 + squirrels - 30)//using elseif that checks walnuts value equal to squirrels

           result = true;//use result variable that holds true value

       else //defining else block

           result = false;//use result variable that holds false value

       }

       if(result)//use if to check result  

           cout<<"True";//print True as a message

       else  //defining else block

           cout<<"False";//print False as a message

       return 0;

}

Output:

Enter the number of squirrels

10

Enter the number of walnuts

30

True

Explanation:

In this code, two integer variable "squirrels and walnuts" and one bool variable "result" is declared, in which the integer variable use that input the value from the user-end, and inside this the multiple conditional statements is used that checks integer variable value and use the bool variable to assign value as per given condition and at the last, it uses if block to check the bool variable value and print its value.

Other Questions
4-3x>16I dont know plz answer these quickly anyone plz answer a) In your opinion, which one of these criticisms was his most compelling argument? Why? (Remember: You do not have to agree with Niebuhr to objectively evaluate the effectiveness of his arguments.) b) Do you think any of his criticisms are relevant to immigrants in the U.S. today? If so, which criticism is valid and why? If not, why not? A virus is a prokaryote.True or False? Using what you have learned about development, give examples from your life (orthe lives of people you know) of physical, cognitive, psychosocial, and moraldevelopment (give an example for each). Write 5.9 as a mixed number. Compare and contrast how Japanese-American internees and American POWs in Japan were made to feel invisible by those who detained them. Why were they made to feel invisible, and how did each group resist this adversity?Compare and contrast the experiences of each group Answer give in Nepali How carbon dioxide is necessary for photosynthesis A map of Europe showing invasion routes. Invasion A started in Scandinavia and arrows point to British Isles, Western Europe, and Russia. Invasion B starts from North Africa and arrows point to France and Italy. Invasion C starts in central Europe and arrows point to Italy, France, and Germany.Match the invader with the area from which they came.MuslimsAMagyarsVikingsfil in the blanks what do humans call their source of energy unscramble the letters and what word does it make. blutfiaue What is the role of trial and error in working with color? 0+3=?Help, this one is to hard find the missing number that makes these fractions equal:?/4 = 15/20 What is 12x^2 + 53x + 20 written as a product? Which expression is equivalent to 8-(6r+2) is Rizal advocating feminist values in contrast to conservative beliefs about women? The product of two consecutive positive integers is 26 more than ten times the largest of the two numbers. 1. Write an equation to represent the situation above. What is product positioning? 1. Why are these women marching to the Palace of Versailles during the French Revolution?