The program below converts US Dollars to Euros, British Pounds, and Japanese Yen # Complete the functions USD2EUR, USD2GBP, USD2JPY so they all return the correct value def USD2EUR(amount): """ Convert amount from US Dollars to Euros. Use 1 USD = 0.831467 EUR args: amount: US dollar amount (float) returns: value: the equivalent of amount in Euros (float) """ #TODO: Your code goes here value = amount * 0.831467 return value

Answers

Answer 1

Answer:

The program in Python is as follows:

def USD2EUR(amount):

   EUR = 0.831467 * amount

   return EUR

def USD2GBP(amount):

   GBP = 0.71 * amount

   return GBP

def USD2JPY(amount):

   JPY = 109.26 * amount

   return JPY

USD = float(input("USD: "))

print("Euro: ",USD2EUR(USD))

print("GBP: ",USD2GBP(USD))

print("JPY: ",USD2JPY(USD))

Explanation:

This defines the USD2EUR function

def USD2EUR(amount):

This converts USD to Euros

   EUR = 0.831467 * amount

This returns the equivalent amount in EUR

   return EUR

This defines the USD2GBP function

def USD2GBP(amount):

This converts USD to GBP

   GBP = 0.71 * amount

This returns the equivalent amount in GBP

   return GBP

This defines the USD2JPY function

def USD2JPY(amount):

This converts USD to JPY

   JPY = 109.26 * amount

This returns the equivalent amount in JPY

   return JPY

The main begins here

This gets input for USD

USD = float(input("USD: "))

The following passes USD to each of the defined functions

print("Euro: ",USD2EUR(USD))

print("GBP: ",USD2GBP(USD))

print("JPY: ",USD2JPY(USD))

Note the program used current exchange rates for GBP and JPY, as the rates were not provided in the question


Related Questions

8.19 LAB*: Program: Soccer team roster (Dictionaries) This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balanced team. (1) Prompt the user to input five pairs of numbers: A player's jersey number (0 - 99) and the player's rating (1 - 9). Store the jersey numbers and the ratings in a dictionary. Output the dictionary's elements with the jersey numbers in ascending order (i.e., output the roster from smallest to largest jersey number). Hint:

Answers

roster = {}

for x in range(5):

   jersey = int(input('Enter a jersey number: '))

   rating = input('Enter the player\'s rating: ')

   roster[jersey] = rating

print('Smallest to largest jersey number with player rating: ')

for x in sorted(roster):

   print('Jersey number: '+str(x),'Player rating: '+roster[x])

I wrote my code in python 3.8. I hope this helps.

The program is an illustration of loops

Loops are used to perform repetitive operations.

The program in Python, where comments are used to explain each line is as follows:

#This initializes the dictionary

mydict = {}

#This following loop is repeated 5 times

for i in range(5):

   #This gets the jersey number

   nums = int(input('Jersey number (0 - 99): '))

   #This gets the player ratings

   rating = input('Rating (0 - 9): ')

   #This populates the dictionary

   mydict[nums] = rating

#This prints the output header    

print('Jersey Number\tPlayer Rating: ')

#This iterates through the sorted dictionary

for i in sorted(mydict):

   #This prints the jersey number and the player rating

   print(str(i),'\t\t',mydict[i])

At the end of the program, the jersey number and the player ratings are printed.

Read more about similar programs at:

https://brainly.com/question/14447914

what is execution unit ?

Answers

Answer:

In computer engineering, an execution unit (E-unit or EU) is a part of the central processing unit (CPU) that performs the operations and calculations as instructed by the computer program.

What are the vitamins used for DNA Synthesis and Repair?​

Answers

Answer:

Vitamins C & E

Vitamin D

Vitamin B3

Imagine that you decided to film a video in SD because the video will mostly be shared on social mediaand you want it to be able to load quickly. What considerations do you need to take into account in order to make the video successful?

Answers

The considerations do you need to take into account in order to make the video successful are:

Select your video types.Decide on the platform(s) to us in sharing the video.Use prominent faces or celebrities on the video, etc.

How do one make a  video successful?

This can be done by:

Create goals for video marketingPlan content productionKnow the post-production detailsSchedule and also promote the videosKnow  and analyze metrics

Therefore, The considerations do you need to take into account in order to make the video successful are:

Select your video types.Decide on the platform(s) to us in sharing the video.Use prominent faces or celebrities on the video, etc.

Learn more about social media from

https://brainly.com/question/3653791

#SPJ1

What is meant by a balanced budget?

A. inflows are greater than outflows

B. inflows are less than outflows

C. inflows are equal to income

D.inflows are greater than or equal to outflows.

Answers

Answer:

D.inflows are greater than or equal to outflows.

Explanation:

A budget is a financial plan used for the estimation of revenue and expenditures of an individual, organization or government for a specified period of time, often one year. Budgets are usually compiled, analyzed and re-evaluated on periodic basis.

A balanced budget is a type of budget in which inflows are greater than or equal to outflows. Thus, when cash inflows (income) is greater than or equal to cash outflows (expenses), a budget is said to be balanced.

The first step of the budgeting process is to prepare a list of each type of income and expense that will be integrated or infused into the budget.

This ultimately implies that, before preparing a budget, it is of utmost importance to know total income (inflows) and expenses (outflows).

The final step to be made by the management of an organization in the financial decision-making process is to make necessary adjustments to the budget.

In conclusion, the benefits of having a budget is that it aids in setting goals, earmarking revenues and resources, measuring outcomes and planning against contingencies. It is typically used by individuals, government, organizations or companies due to the fact that, it's tied directly to the strategy and tactics of a company on an annual basis. Also, it is used to set a budget for marketing efforts while anticipating on informations about the company.

When creating loyal customers you must develop all of the following except: a. Smooth relationships b.customer marketing c. Dedicated employees d. Memorable services

Answers

Answer: I think a

Explanation: sorry I’m in wrong, have a great day!! :D

Most likely c since it’s customer marketing

what helps you to ensure that writing is well organized?

Answers

Chronological Order. ...
Logical Order. ...
Climactic Order. ...
Random Order. ...
Spatial Order.

Write one line of code to declare a 'Path' reference variable named: pathobject4 AND create the object by calling the 'Paths' class method get and passing it: C:/programs/values.dat Write one line of code to declare a Scanner reference variable named: my_input AND create the object passing the constructor the variable: fileobject3

Answers

Answer:

Explanation:

Using Java as the programming language of choice, the exact implementation of what is asked in the question would be the following, it would also need the file location to be exact and the imports in order to work.

import java.nio.file.Path;

import java.nio.file.Paths;

import java.util.*;

class Test

{

   public static void main(String[] args)

   {

       Path paths = new Paths("C:/programs/values.dat");

       Scanner my_input = new Scanner(fileobject3);

   }

}

The following truth table matches which boolean condition?
A B ?
1 1 1
1 0 1
0 1 0
0 0 1
A && ( A || B)
A || ( !A && !B)
A && ( A && B)
!A && ( A || !B)
A || ( A || B)
Consider the following class:
public class Thingy implements Comparable {
private int val;
public Thingy() {
this(0);
}
public Thingy(int t) {
val = t;
}
}
Which of the following methods must be included so this class can be instantiated?
a. compareTo
b. equals
c. indexOf
d. size
e. toString
Assume that x and y are boolean variables and have been properly initialized.
(x || y) && !(x && y)
The result of evaluating the expression above is best described as:_____.
A. Always true
B. Always false
C. True only when x is true and y is true
D. True only when x and y have the same value
E. True only when x and y have different values
You have created the following set of classes: Bus, Car, Scooter, Train, and Vehicle. Which would you choose to be the abstract class?
A. Bus
B. Car
C. Scooter
D. Train
E. Vehicle
Consider the method definition:
public static String analyzeTemps(int temps [], int avg) {
int above = 0;
int below = 0;
for(int i =0; i < temps.length; i++) {
if (temps[i] > avg)
above++;
if (temps[i] < avg)
below++;
}
if (above > below)
return "Hotter than normal";
if (above < below)
return "Cooler than normal";
return "Temperatures normal";
}
What is returned by the following?
int temps [] = {82 , 73 , 77 , 79 , 86 , 88 , 76 , 78 , 83};
System.out.println(analyzeTemps(temps, 81));
4
5
Cooler than normal
Hotter than normal
Temperatures normal
Consider the following code:
int list [] = /* missing code */;
int val = /* missing code */;
int n = -1;
for (int i = 0; i < list.length; i++) {
if (val == list[i]) {
n = i;
break;
}
}
What algorithm is shown?
A. Binary Search
B. Insertion Sort
C. Merge Sort
D. Selection Sort
E. Sequential Search
Suppose a child class has overridden a method of its parent class. What key word does the child class use to access the method in the parent class?
a. child
b. parent
c. static
d. super
e. this
What two methods from Object are often overridden?
a. add, compareTo
b. add, remove
c. toString, add
d. toString, equals
e. toString, compareTo
Consider the following class:
public class FrozenDesert{
public FrozenDesert() {
System.out.println("Yum");
}
}
You write a class, FrozenYogurt, which extends FrozenDesert. Which of the following is a correct implementation of the constructor for FrozenYogurt?
I. public FrozenYogurt() {
System.out.println("I'm the new ice cream");
super();
}
II. public FrozenYogurt() {
super();
System.out.println("I'm the new ice cream");
super();
}
III. public FrozenYogurt() {
super();
System.out.println("I'm the new ice cream");
}
a. I only
b. II only
c. III only
d. I and II
e. I, II and III
The constant in the Integer wrapper class that represents the smallest int value is ______.
A. MIN
B. MIN_VALUE
C. SMALL_INT
D. SIZE
E. Integer.MAX

Answers

Answer:

1 a

2 c

3 a

4 a

5c

6 b

7 a

8 c

Explanation:

The mass percent of hydrogen in CH₄O is 12.5%.Mass percent is the mass of the element divided by the mass of the compound or solute.

What is the mass percent?

Mass percent is the mass of the element divided by the mass of the compound or solute.

Step 1: Calculate the mass of the compound.

mCH₄O = 1 mC + 4 mH + 1 mO = 1 (12.01 amu) + 4 (1.00 amu) + 1 (16.00 amu) = 32.01 amu

Step 2: Calculate the mass of hydrogen in the compound.

mH in mCH₄O = 4 mH = 4 (1.00 amu) = 4.00 amu

Step 3: Calculate the mass percent of hydrogen in the compound.

%H = (mH in mCH₄O / mCH₄O) × 100%

%H = 4.00 amu / 32.01 amu × 100% = 12.5%

The mass percent of hydrogen in CH₄O is 12.5%.

CO2 = 1.580 grams H2O = 0.592 grams Lookup the molar mass of each element in the compound Carbon = 12.0107 Hydrogen = 1.00794 Oxygen = 15.999 Calculate the molar mass of CH4O by adding the total masses of each element used. 12.0107 + 4 * 1.00794 + 15.999 = 32.04146 Now calculate how many moles of CH4O you have by dividing by the molar mass. m = 1.15 g / 32.04146 g/mole = 0.035891 mole Now figure out how many moles of carbon and hydrogen you have. Carbon = 0.035891 moles Hydrogen = 0.035891 moles *

Therefore, The mass percent of hydrogen in CH₄O is 12.5%.

Learn more about mass percent here:

https://brainly.com/question/5295222

#SPJ5

Name the processes that the information processing cycle consist of:​

Answers

Answer:

Hello Dear!...

Explanation:

The information-processing cycle consists of four basic operations: input, processing, output, and storage.

Hope that helps you Buddy..

Buhbye!

Take care!

(a)
The computer network that covers the whole city is called​

Answers

Answer:

A metropolitan area network, or MAN, consists of a computer network across an entire city, college campus or small region. A MAN is larger than a LAN, which is typically limited to a single building or site. Depending on the configuration, this type of network can cover an area from several miles to tens of miles.

Explanation:

Part 3 (The stunner)

Answers

Answer:

nice :)

Explanation:

Answer: Once again, levers where we cant see.

3. Comparing the Utopian and dystopian views of Technology according to Street (1992) which one in your view is more applicable to your society? Give at least three reasons for your answer.[15marks]

Answers

Answer:

Following are the explanation to the given question:

Explanation:

The impact of a social delay in the debate around this one is serious, real perceptions of technology. It higher employment brings a political use of new information technology to further fragmentation and anomaly amongst their representatives with the ability for the same technology. They explain this dichotomy in utopian or dystopian positions inside the following portion.

Perhaps the most important aspect of the utopia was its implicit idea that solutions to social problems are available technically. The technological effects on the community or populist forms of democratic engagement were defined often that is solutions.

Its claim from the group indicates that perhaps the Internet can promote political participation by enabling citizens to communicate easily across geographic and social frontiers. The claim suggests that this exchange would in turn promote the creation of new consultative spaces or new modes of collective activity. By comparison, the authoritarian model emphasizes the role of technology in transforming citizens' and policy interactions. Ward (1997) states which online referenda and proposals are typically described as mechanisms of change.

Nothing less prevalent today are futuristic internet interpretations. Privacy as well as material on the Internet was a topic of genuine responsibility and formed two of the biggest discussions on the possible negative effects of this technology. Cyber-tumblers' tales and facts about oneself are prevalent across the web. Online entertainment questions confront Web users from all segments of society. Online entertainment questions

I assume that technology's Dystopian perspectives are relevant to society.

Even though people from every side of the issue claim that this technology would have a utopian or dystopian effect on business or community, society will be adapted to cultural underperformers and much more rational interpretations become. The demands for the impact on society were less severe when society had used technology capabilities, such as phones, television, and even phone line.If they regard the web and all its technological trappings as just a panacea for democracy problems or not, that truth about the capabilities of the internet lies between these utopian or dystopian definitions, like most of the truth.To grasp this technology which is practically transforming society, we have to consider its extreme impact as goods that are culturally incomplete between social diffusion of the Web and digital adoption of technology.

Your company has decided to hire a full-time video editor. You have been asked to find a system with the level of display quality needed by someone who will be working with video all day. Which video related specifications will have the greatest impact on display quality?

Answers

Answer:

"Resolution" and "Refresh rate" is the correct answer.

Explanation:

Resolution:

The resolution would be a step for describing the spatial brightness as well as cleanliness of something like a photograph but rather an image. It's always commonly being utilized for the performance evaluation of monitoring devices, digital photographs as well as numerous additional technology components.

Refresh rate:

A computer display as well as visualization technology feature that determines the equipment frequency as well as capacity for repainting or re-drawing that this whole presentation upon on-screen for every instant.

what is MIS when it refers to the dat base

Answers

A management information system (MIS) is a computerized database of financial information organized and programmed in such a way that it produces regular reports on operations for every level of management in a company. It is usually also possible to obtain special reports from the system easily.

Answer: A management information system (MIS) is a computerized database of financial information organized and programmed in such a way that it produces regular reports on operations for every level of management in a company. It is usually also possible to obtain special reports from the system easily.

HOPE THIS HELPS

write a flow chart for lcm and its algorithim​

Answers

Answer: flowchart linked as an image

Explanation:

Implement a class that simulates a traffic light. The next function advances the color in the usual way, from green to yellow to red, then again to green. Provide two constructors, of the public interface. Also supply a member function that yields the number of times that this traffic light has been red.

Answers

Answer:

Explanation:

The following is written in Java. It creates the trafficLight class which holds the currentLight string variable and a int count variable for the number of times the light has been red. It also contains two constructors one that takes the currentLight as a parameter and one that does not. Finally, it has the next() method which analyzes the currentLight status and changes it to the next light. Output can be seen in the attached picture below.

class Brainly

{

   public static void main(String[] args)

   {

       trafficLight traffic_light = new trafficLight();

       System.out.println("Current Light: " + traffic_light.currentLight);

       traffic_light.next();

       System.out.println("Current Light after change: " + traffic_light.currentLight);

       

   }

}

class trafficLight {

   String currentLight;

   int count = 0;

   public trafficLight(String currentLight) {

       this.currentLight = currentLight;

   }

   public trafficLight() {

       this.currentLight = "red";

       count++;

   }

   public void next() {

       if (this.currentLight == "green") {

           this.currentLight = "yellow";

       } else if (this.currentLight == "yellow") {

           this.currentLight = "red";

           count++;

       } else {

           this.currentLight = "green";

       }

   }

}

Which is the correct option? Please explain

Answers

Answer:

A

Explanation:

Just to make sure it is not a scam.

The World Health Organization decided that addiction to video games is considered a mental health disorder. Do you agree or disagree?

What responsibility, if any, do game designers have to ensure that users do not misuse their games?

(I’m mainly looking for an answer to the second bit, thank you! ^^)

Answers

Answer:

I disagree and I will tell you why because there was study based on video games and seniors and the theory was that they play games to keep there minds active. I will give you an example let's say you were in a situation and you learned how to make or create something from playing video games, in closeur video games can help us in problems

Consider the following code segment, where num is an integer variable.int[][] arr = {{11, 13, 14 ,15},{12, 18, 17, 26},{13, 21, 26, 29},{14, 17, 22, 28}};for (int j = 0; j < arr.length; j++){for (int k = 0; k < arr[0].length; k++){if (arr[j][k] == num){System.out.print(j + k + arr[j][k] + " ");}}}What is printed when num has the value 14 ?
a. 14 14
b. 18 19
c. 16 17
d. 17 16
e. 19 181/1

Answers

Answer:

c. 16 17

Explanation:

Given

[tex]num = 14[/tex]

The above code segment

Required

The output

In the code segment, we have the following iterations:

for (int j = 0; j < arr.length; j++) and for (int k = 0; k < arr[0].length; k++)

The above iterates through all the elements of the array.

The if condition is true, only on two occasions

(i) When i = 0; j = 2

(ii) When i = 3; j = 0

i.e.

arr[0][2] = 14

arr[3[0] = 14

So, the result of the print statement is: j + k + arr[j][k]

(i) When i = 0; j = 2

j + k + arr[j][k]  = 0 + 2 + 14 = 16

(ii) When i = 3; j = 0

j + k + arr[j][k]  = 3 + 0 + 14 = 17

Hence, (c) 16 17 is true

Site at least 3 articles of impact of internet that affect in our daily lives.

Answers

Answer:

Here are 5 ways IOT already affects our lives today.

Transportation. AT&T just added 2.1 million new wireless lines last quarter, but only about half of them were for people. ...

Health and Exercise. ...

Home. ...

Business. ...

Pollution and Waste Management.

Explanation:

StringReverser
Given the following code that creates a Scanner and gets a String from the user, finish the code so that the program will:
Output the provided String, input, backwards
Note that the answer should be one phrase - the reverse of input.
The use of an additional method is optional.
SAMPLE OUTPUT
======================
Enter a word or phrase:
this is a test
REVERSED:
tset a si siht

Answers

Answer:

Explanation:

The following code is written in Java, it uses the scanner import to take in a string from the user. Then it uses the string builder import to use the input string and reverse it. Finally outputting the reversed string. The output can be seen in the attached picture below.

import java.util.Scanner;

class Brainly

{

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter a string: ");

       String answer = in.nextLine();

       StringBuilder sb=new StringBuilder(answer);

       sb.reverse();

       System.out.println("Reversed: \n" + sb.toString());

   }

}

What website or search engine that helps people find the web pages that they are looking for by tying in the subject they want?​

Answers

Amazon can be use to search

Which one is the answer for the question.

Answers

Answer:

if/else statement

Explanation:

If the condition specified in the if statement is true, the block of code at the if statement is run. If not, the code at the else statement is run.

A cookie recipe calls for the following ingredients:
• 1.5 cups of sugar
• 1 cup of butter
• 2.75 cups of flour
The recipe produces 48 cookies with this amount of ingredients. Write a program that asks the user how many cookies they want to make and then displays the number of cups of each ingredient needed for the specified number of cookies in the following format:

You need 5 cups of sugar, 3 cups of butter, and 7 cups of flour.

Note: Don’t worry about formatting the numbers in the output.

Answers

def cookie_Recipe(recipe):

   

   sugar=(0.03125*recipe)

   butter=(0.02083333333*recipe)

   flour=(0.05729166666*recipe)

   LF1=round(sugar, 2)

   LF2=round(butter,2)

   LF3=round(flour, 2)

   print("You will need:")

   print(LF1, "cups of sugar")

   print(LF2, "cups of butter")

   print(LF3, "cups of flour")

   print("To make", recipe, 'cookies')

recipe=int(input("How many cookies do you want to make?\n"))

cookie_Recipe(recipe)

The program is a sequential program and does not require loops, iterations, and conditions.

What is python?

Python is a general-purpose programming language.

The Python program that uses comments to clarify each line is as follows:

#This gets the number of cookies

cookies = float(input("Number of cookies: "))

#This calculates the amount of sugar

sugar = (1.5 * cookies) / 48.0

#This calculates the amount of butter

butter = cookies / 48

#This calculates the amount of flour

flour = (2.75 * cookies) / 48

#This prints the amount of sugar, butter and flour needed

print("You need ", format(sugar, '.2f'), " cups of sugar, ", format(butter, '.2f'), " cups of butter and ", format(flour, '.2f'), " cups of flour", sep='')

Therefore, the program is written above.

To learn more about python, refer to the link:

https://brainly.com/question/12867701

#SPJ2

In your role as network administrator you need to make sure the branch manager can access the network from the PC in her office. The requirements specify that you: Use a network device that provides wireless access to the network for her mobile device. Connect the network device to the Ethernet port in the wall plate. Use a wired connection from the PC to the network device. Use cables that support Gigabit Ethernet.

Answers

Answer:

In your role as network administrator you need to make sure the branch mana... ... The Branch Manager Can Access The Network From The PC In Her Office. ... Use A Network Device That Provides Wireless Access To The Network For Her Mobile Device. 2. ... Connect the network device to the Ethernet port in the wall plate.

Explanation:

A network administers are those who are responsible for the day-to-day operations and management of the network. Your role is to organize the support the organization. It networks systems, need to manage the LAN, MANs, etc.

When the branch manager ant to have a network and PC in her office you need to make sure that the need that specific to your use by providing the wired connection from the PC to the network device.

Hence the option C is correct.

Learn more about the network administrator you need to make.

brainly.com/question/24240647.

Suppose that three different processes, P1, P2, and P3, share the variables x and y and execute the following code fragments concurrently, and that the initial value of y is 8. The instructions to add and subtract in memory are not atomic.

P1: P2: P3:
x = y; x = y; x = y;
x = x + 1; x = x - 1; x = x - 1;
y = x; y = x; y = x;

Which of the following values of y are possible after all three processes finish executing their code fragments?

a. 5
b. 6
c. 7
d. 8
e. 9
f. 10

Answers

Answer:

c. 7

Explanation:

The initial value of the y is 8. When the instructions are inserted in the memory the coding will change its value and the new value for the y will be different from the initial value.  The different is due to the instruction in the memory which are not atomic and the process finishes the execution of the command. The new value will be y - 1 which means 8 -1 = 7.

ik its a dead game but who wants to play agar.io with me? the code is agar.io/#UMDX3A and my name on there is cohen

Answers

Answer:

I git banned lol

Explanation:

You are a network technician for a small corporate network. Your organization has several remote employees who usually work from home, but occasionally need to be in the office for meetings. They need to be able to connect to the network using their laptops. The network uses a DHCP server for IP address configuration for most clients. While working in the Lobby, a remote employee asks you to configure her laptop (named Gst-Lap) so she can connect to the network.
The laptop is already configured with a static connection for her home office, but the laptop cannot connect to the network while at the office. You need to configure the TCP/IP properties on the laptop to work on both networks. In this lab, your task is to complete the following:
Record the laptop's static IP and DNS configuration settings.
Configure the laptop to obtain IP and DNS addresses automatically.
Create an alternate TCP/IP connection with static settings.

Answers

Answer:

Explanation:

In order to accomplish these tasks, you need to do the following

First, open up the command prompt (CMD) and type in the following command ipconfig ... This will give you both the IP and DNS configuration so that you can record it.

Secondly, right-click on the Ethernet icon on the taskbar, select Properties, then the Networking tab, then Internet Protocol Version 4 (TCP/IPv4), and then click Properties. Here you are going to check the option that says Obtain an IP address automatically and Obtain DNS server address automatically.

Lastly, go over to the General Tab, and enable DHCP. Now, hop over to the Alternate Configuration tab, and select the "User configured" option, and fill in the required information for the static IP address that you want the connection to have.

Write a program equals.cpp the implements the function bool equals(int a[], int a_size, int b[], int b_size) that checks whether two arrays with integer elements have the same elements in the same order. Assume that the user will enter a maximum of 100 integers. Also, you may NOT use any other headers besides and .

Answers

Answer:

The program is as follows:

#include<iostream>

using namespace std;

bool equals(int a[], int a_size, int b[], int b_size){

    bool chk = true;

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

        if(a[i] != b[i]){

         chk = false; break;           }     }

    return chk;

}

int main(){

   int a_size,b_size;

   cin>>a_size;

   b_size = a_size;

   int a[a_size],b[b_size];

   for(int i =0; i<a_size;i++){        cin>>a[i];    }

   for(int i =0; i<a_size;i++){        cin>>b[i];    }

   cout<<equals(a,a_size, b, b_size);

   return 0;

}

Explanation:

See attachment for source file where comments are used to explain some lines

Other Questions
Divergent boundaries that involve the crust that is spreading apart arefound ... * Find the area of a trapezium ABCD in which AB || CD, AB = 14 cm, CD = 8 cm. Giventhat AB = 23 cm, CD = 7 cm and AD = 17 cm. The Earth's magnetosphere is created by: A. a fusion in Earth's core B. spinning in the Earth's core C. gravity in the Earth's core D. too much heat in the Earth's core A man walks into a convenience store where his wife works and threatens the maleclerk behind the counter with a gun, telling him "Give me all the money and nobodygets hurt." The clerk makes a move, and the man hits him with the gun. The clerk fallsto the ground and the man steals the money. In addition to robbery or attemptedrobbery, which crime could he be charged with?A. domestic assaultB. simple assaultC. aggravated batteryD. mayhem Welcome, Detective Percent. Recently, there have been many reported scams. After weeks of investigations, you finally tracked down the address of the mastermind. He is an expert in %. He knows you are here to catch him and is in the midst of destroying all the evidence. He needs 30 minutes for the whole process to complete. You have to get through all the locks (full of percentages) to get to his secret chamber before all the evidences are gone. 23 travelers forest 63 piles of plantains containing the same number of plantains and a remaining pile containing 7 plantains. They divided the plantains equally. What is the least number of plantains that each traveler got? PLEASE NO LINKS I LOST SO MANY POINTS Rob can harvest a field in 12 hours. One day his friend Aliyah helped him and it only took 5.45 hours. Find how long it would take Aliyah to do it alone. A soccer ball is kicked from the top of a 64 ft building into the air at an initial speed of 48 ft/sec. Its flight as a functions of time can be modeled by: h(t)=16t2+48t+64. After how many seconds, will the soccer ball hit the ground (h=0)? lord Cornwallis implemented the police law in the year Hard and Long math question, Answer for 100Points(In image)------ (Dum answers to steal points will be reported, and your account will be deleted)(Answer In depth for all points, And Answer all the questions that the problem requests) We have discussed the types of feature story, give a type of feature article that you can write. How do you write this type of article? Use blue font color for your responses. After being assigned a research project, Jessica immediately sets out to choose an interesting and workable topic. Gene launches immediately into seeking out appropriate sources. Which one is following the correct procedure for planning a research paper? A. Only Jessica is correct. B. Only Gene is correct. Genocide occurred in Guatemala in 19811983 because the Guatemalans wouldnt give Mayans back the land they stole. the Guatemalans had not trusted the Mayans for many centuries. the Mayans took over the government and massacred Guatemalans. the Mayans demanded to be part of the Guatemalan government. How did the Civil Rights movement challenge America to rethink what it really by freedom ? B. Direction: Arrange the jumbled letters to reveal the different words that hassomething to do with Fitness. Write your answers on the space provided for.1. LAPHISC-FSSITEN2. XEREICES3. RP EORP-I EDT4. SEFITLAV5. PSOTRS6. DNAICGN Question 13 (1 point)What is a poem with no regular pattern or line length called?aObmetered poemnarrative poemlyrical poemOdfree verse 9. Which of the following side lengths would create a triangle?A. 3cm, 5cm, 8cmB. 6cm, 7cm, 12cmC. 9cm, 9cm, 19cmD. 10cm, 5cm, 4cm 2. Which sequence of transformations takes the graph of y = k(x) to the graph ofy=-k(x + 1)?A. Translate 1 to the right, reflect over the x-axis, then scale vertically by a factor ofB. Translate 1 to the left, scale vertically by , then reflect over the x-axis.C. Translate left by , then translate up 1.D. Scale vertically by z, reflect over the y-axis, then translate up 1. What effect does Saukkos objective tone have in the sentence we should generate as much waste as possible from substances such as uranium238, which has a halflife ... of one million years?