As you will solve more complex problems, you will find that searching for values in arrays becomes a crucial operation. In this part of the lab, you will input an array from the user, along with a value to search for. Your job is to write a C++ program that will look for the value, using the linear (sequential) search algorithm. In addition, you should show how many steps it took to find (or not find) the value, and indicate whether this was a best or worst case scenario (... remember the lecture). You may refer to the pseudo-code in the lecture, but remember that the details of the output and error conditions are not specified there. Also, note that in pseudo-code arrays are sometimes defined with indices 1 to N, whereas in C++ the indexes span from 0 to N-1.
The program will work as follows. First, you should ask the user to enter the size of the array, by outputting:
"Enter the size of the array: "
to the console. If the user enters an incorrect size, you should output the error message:
"ERROR: you entered an incorrect value for the array size!"
and exit the program. If the input is a valid size for the array, ask the user to enter the data, by outputting
"Enter the numbers in the array, separated by a space, and press enter: "
Let the user enter the numbers of the array and store them into a C++ array. Up to now, this should be exactly the same code as Lab#2. Next, ask the user a value v to search for in the array (called the "key"), by outputting:
"Enter a number to search for in the array: " to the screen, and read the key v.
Search for v by using the linear search algorithm. If your program finds the key, you should output:
"Found value v at index i, which took x checks. "
where i is the index of the array where v is found, and x is the number of search operations taken place.
If you doesn't find the key, then output: "
The value v was not found in the array!"
Then indicate whether you happened to run into a best or worst case scenario. In case you did, output: "
We ran into the best case scenario!" or "We ran into the worst case scenario!"
otherwise, don't output anything.

Answers

Answer 1

Answer:

#include<iostream>

using namespace std;

int main() {

cout<<"Enter The Size Of Array: ";

int size;

bool isBestCase=false;

cin>>size;

if(size<=0){

cout<<"Error: You entered an incorrect value of the array size!"<<endl;

return(0);

}

int array[size], key;

cout<<"Enter the numbers in the array, separated by a space, and press enter:";

// Taking Input In Array

for(int j=0;j<size;j++){

cin>>array[j];

}

//Your Entered Array Is

for(int a=0;a<size;a++){

cout<<"array[ "<<a<<" ] = ";

cout<<array[a]<<endl;

}

cout<<"Enter a number to search for in the array:";

cin>>key;

for(i=0;i<size;i++){

 if(key==array[i]){

   if(i==0){

     isBestCase=true; // best case scenario when key found in 1st iteration

     break;

   }

 }

}

if(i != size){

 cout<<"Found value "<<key<<" at index "<<i<<", which took " <<++i<<" checks."<<endl;

}  else{

 cout<<"The value "<<key<<" was not found in array!"<<endl;

 cout<<"We ran into the worst-case scenario!"; // worst-case scenario when key not found

}

if(isBestCase){

cout<<"We ran into the best case scenario!";

}

return 0;

}

Explanation:

The C++ source dynamically generates an array by prompting the user for the size of the array and fills the array with inputs from the user. A search term is used to determine the best and worst-case scenario of the created array and the index and search time is displayed.


Related Questions

Because of the internet, travel agents now focus more on computers than they do on customer relationships.


True

False

Answers

Answer:

true

Explanation:

there are a lot of easier ways to access clients through computers with the internet.

True is the right answer

Write a function longer_string() with two string input parameters that returns the string that has more characters in it. If the strings are the same size, return the string that occurs later according to the dictionary order. Use the function in a program that takes two string inputs, and outputs the string that is longer.

Answers

Answer:

Here you go :)

Explanation:

Change this to your liking:

def longer_string(s1, s2):

   if len(s1) > len(s2):

       return s1

   elif len(s1) < len(s2):

       return s2

   else:

       return s2

x = input("Enter string 1: ")

y = input("Enter string 2: ")

print(longer_string(x, y))

What devices do not form part of the main components of a computer but can be attached to function effectively?

Answers

Answer:

Peripherals are a generic name for any device external to a computer, but still normally associated with its extended functionality. The purpose of peripherals is to extend and enhance what a computer is capable of doing without modifying the core components of the system. A printer is a good example of a peripheral.

Explanation:

Write a program to calculate the total price for car wash services. A base car was is $10. A dictionary with each additional service and the corresponding cost has been provided. Two additional services can be selected. A '-' signifies an additional service was not selected. Output all selected services along with the corresponding costs and then the total price for all car wash services.Ex: If the input is:Tire shineWaxthe output is:ZyCar WashBase car wash -- $10Tire shine -- $2Wax -- $3----Total price: $15Ex: If the input is:Rain repellent-the output is:ZyCar WashBase car wash -- $10Rain repellent -- $2----Total price: $12services = { 'Air freshener' : 1 , 'Rain repellent': 2, 'Tire shine' : 2, 'Wax' : 3, 'Vacuum' : 5 }base_wash = 10total = 0service_choice1 = input()service_choice2 = input()''' Type your code here '''

Answers

Answer:

Replace

''' Type your code here '''

with the following lines of code:

price1 = services[service_choice1]

price2 = 0

if not (service_choice2 == "-"):

   price2 = services[service_choice2]

total = base_wash + price1 + price2

print("Zycar Wash")

print("Base car wash: $"+str(base_wash))

print(service_choice1+str(": $")+str(price1))

print(service_choice2+str(": $")+str(price2))

print("Total price: $"+str(total))

Explanation:

The complete program with explanation is as follows:

The italicized lines were originally part of the question

services = { 'Air freshener' : 1 , 'Rain repellent': 2, 'Tire shine' : 2, 'Wax' : 3, 'Vacuum' : 5 }

base_wash = 10

total = 0

service_choice1 = input()

service_choice2 = input()

This line gets the price of service choice 1

price1 = services[service_choice1]

This line initialzes price of service choice 2 to 0

price2 = 0

If an additional service (i.e. service choice 2) is selected

if not (service_choice2 == "-"):

This line gets the price of service choice 2

   price2 = services[service_choice2]

This calculates the total price

total = base_wash + price1 + price2

This prints the header

print("Zycar Wash")

This prints the base car wash

print("Base car wash: $"+str(base_wash))

This prints the service choice 1

print(service_choice1+str(": $")+str(price1))

This prints the service choice 2

print(service_choice2+str(": $")+str(price2))

This prints the total

print("Total price: $"+str(total))

Where or what website can I download anime's? For free ​

Answers

https://todo-anime.com/

Which statement about creating a client request in quickbooks online accountant is false

Answers

Answer:

You can add attachments by selecting the + Add document link

The request is not sent to the client's email address unless the default setting is changed.

The request appears in the client's QuickBooks Online company in My Accountant

If you wish to notify your client of your request with a QuickBooks Online-generated email, select Notify client

Explanation:

The highlighted one is correct. Its QBO question.

Define the meaning of software quality and detail the factors which affects the quality not productivity of a software product?

Answers

Answer:

Quality of software may be defined as the need of function and Efficiency. ... A number of factors are given below which gives the effects on quality and production capacity.

Software quality is known to be the method that tells the desirable characteristics of software products.

What are the Software Quality Factors that affects it?

The factors that influence software are;

CorrectnessReliabilityEfficiencyUsability, etc.

Therefore, Software quality is known to be the method that tells the desirable characteristics of software products.

Learn more about software quality from

https://brainly.com/question/13262395

#SPJ2

From which of the following locations can you run a single line of the program?
Manual Movement dialog box
RoboCell toolbar
Program toolbar
Run menu
I’m in manufacturing and I don’t like this class it has nothing to do with what I wanna do so can someone help please

Answers

RoboCell toolbar and Run menu

It's important to understand that even information systems that do not use computers
have a software resource component. State the two (2) types of software resources
with an example for each type to support your answers.

Answers

Answer:

yes I am not sure if you have any questions or concerns please visit the plug-in settings to determine how attachments are handled the situation in the measurements of the season my dear friend I am not sure if you can send you a great day to day basis of

Security attacks are classified as either passive or aggressive. True or false

Answers

Answer:

false is the answer okkkkkkkkkkkkkkkk

How does Kelvin inspire other

people?

He shows that it's easy to meet an

important leader of a country

He shows that anyone can succeed in

the music business.

He shows that studying engineering

leads to good jobs.

He shows that hard work and creative

thinking can solve problems.

Answers

Answer:

hard work and creative thinking can solve all problomes

Explanation:

Answer:

hard work

Explanation:

Assume that you have 22 slices of pizza and 7 friends that are going to share it (you've already eaten). There's been some arguments among your friends, so you've decided to only give people whole slices. Write a Python expression with the values 22 and 7 that calculates the number of whole slices each person would receive and assigns the result to numberOfWholeSlices.

Answers

Answer:

In Python:

numberOfWholeSlices = int(22/7)

print(numberOfWholeSlices )

Explanation:

For each friend to get a whole number of slices, we need to make use of the int function to get the integer result when the number of slices is divided by the number of people.

So, the number of slice is: 22/7

In python, the expression when assigned to numberOfWholeSlices  is:

numberOfWholeSlices = int(22/7)

Next, is to print the calculated number of slices

print(numberOfWholeSlices )

Following are the python program to the given question:

Program Explanation:

Defining a variable "numberOfWholeSlices". Inside this variable, it divides the integer value and holds the quotient part, and holds only the integer part by using the int method.In the next step, it uses the print method that prints the quotient value holding variable.

Program:

numberOfWholeSlices = int(22/7)#defining a variable "numberOfWholeSlices"

#dividing the integer value and holds the quotient value part and convert the value into integer

print(numberOfWholeSlices )#print the quotient value

'''OR'''

numberOfWholeSlices = 22//7#defining a variable "numberOfWholeSlices" that claculates and hold the quotient value integer part

print(numberOfWholeSlices )#print the quotient value

Output:

Please find the attached file.

Learn more:

brainly.com/question/712334

Suppose that an intermixed sequence of push and pop operations are performed on a LIFO stack. The pushes push the numbers 0 through 9 in order; the pops print out the return value. For example"push(0); pop(); push(1)" and "push(0); push(1); pop()" are possible, but "push(1); push(0); pop()" is not possible, because 1 and 0 are out of order. Which of the following output sequence(s) could occur? Select all that are possible.
a) 12543 609 8 7 0
b) 01564 37928
c) 6543210789
d) 02416 75983
e) 46 8 75 32 901

Answers

Answer:

b) 01564 37928

e) 26 8 75 32 901

Explanation:

Pushes and pulls are the computer operations which enable the user to perform numerical tasks. The input commands are interpreted by the computer software and these tasks are converted into numeric values to generate output.

Who manages the team’s work during a sprint?
a) Scrum master manages the people so they can complete the work
b) The team manages the work by self organization
c) Product owner manages the work
d) Delivery manger manages the work

Answers

Answer:

d) delivery manger manages the work

Explanation:

sana po makatulong ako daghay salamat sayo emo

Your supervisor has asked you to make a presentation to a group of new interns about appropriate digital communication in the workplace. Which of these keywords should you research?

A netiquette

B project management

C emojis

Answers

Answer: Netiquette

Explanation:

The keywords that'll be researched is netiquette. Netiquette, is simply made up of the words "net"which and also “etiquette,” and it has to do with appropriate behavior that are used online when communicating with someone. These importance of such rules are to enhance communication skills.

Some of the rules include the use of respectful language, large files should not be emailed but rather compressed, people's privacy should be respected etc

Consider the following statements: Statement A: In Duplex transmission, either node can transmit while the other node can receive data Statement B: In half-duplex transmission, both the nodes can transmit as well as receive data at the same time. Which of the following is true with respect to the above statements?

a. Both statements A and B are false
b. Statement A is false and statement B is true
c. Both statements A and B are true
d. Statement A is true and statement B is false

Answers

Answer:

d. Statement A is true and Statement B is false

Explanation:

Indeed, when using duplex transmission either node can transmit while the other node can receive data from the network. Also, in half-duplex transmission, both the nodes can transmit as well as receive data.

However, in half-duplex transmission, the nodes cannot transmit and receive data at the same time. Hence, this makes Statement B false, while Statement A is true.

Your first submission for the CIS 210 Course Project should include the following functionality: - Requests the user to input his/her first name - Formats the name to capitalize the first letter and makes all remaining characters lowercase, removing any spaces or special characters - Output the formatted name to the console

Answers

Answer:

In Java:

import java.util.*;

public class Main{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 String name;

 System.out.print("First name: ");

 name = input.next();

 name= name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase();

 System.out.print(name);

}

}

Explanation:

This declares name as string

 String name;

This prompts the user for first name

 System.out.print("First name: ");

This gets the name from the user

 name = input.next();

This capitalizes the first letter of name and makes the other letters to be in lowercase

 name= name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase();

This prints the formatted name

 System.out.print(name);

Declare and implement a function called gameOver.gameOver receives a single 3x3 char[] [] array as a parameter, representing a tic-tac-toe board, with each cell containing either a X, a 0, or a (blank space). gameOver should return x if x has won the game, o ifo has won the game, and a blank space (' ') otherwise. Do not check the diagonals!

Answers

Answer:

The function in C++ is as follows:

char gameOver(char arr[][3]){

   char winner = ' ';

   if((arr[0][0] == 'X' && arr[0][1] == 'X' && arr[0][2] == 'X') ||(arr[1][0] == 'X' && arr[1][1] == 'X' && arr[1][2] == 'X') || (arr[2][0] == 'X' && arr[2][1] == 'X' && arr[2][2] == 'X')||(arr[0][0] == 'X' && arr[1][0] == 'X' && arr[2][0] == 'X') ||(arr[0][1] == 'X' && arr[1][1] == 'X' && arr[2][1] == 'X') || (arr[0][2] == 'X' && arr[1][2] == 'X' && arr[2][2] == 'X')){

       winner = 'X';

   }

   else if((arr[0][0] == 'O' && arr[0][1] == 'O' && arr[0][2] == 'O') ||(arr[1][0] == 'O' && arr[1][1] == 'O' && arr[1][2] == 'O') || (arr[2][0] == 'O' && arr[2][1] == 'O' && arr[2][2] == 'O')||(arr[0][0] == 'O' && arr[1][0] == 'O' && arr[2][0] == 'O') ||(arr[0][1] == 'O' && arr[1][1] == 'O' && arr[2][1] == 'O') || (arr[0][2] == 'O' && arr[1][2] == 'O' && arr[2][2] == 'O')){

       winner = 'O';

   }

   return winner;

}

Explanation:

The function checks for the winning character by checking for matching rows and matching columns.

When either X or O fall in the any of the following 6 conditions , then that character (X or O) wins.

The position are:

Rows: (1) 00, 01 and 02 (2) 10, 11 and 12 (3) 20, 21 and 22

Columns: (4) 00, 10 and 20 (5) 01, 11 and 21 (6) 02, 12 and 22

So, the explanation is:

This defines the function gameOver

char gameOver(char arr[][3]){

This initializes winner to blank space

   char winner = ' ';

If any of the condition stated above matches X, then X wins

   if((arr[0][0] == 'X' && arr[0][1] == 'X' && arr[0][2] == 'X') ||(arr[1][0] == 'X' && arr[1][1] == 'X' && arr[1][2] == 'X') || (arr[2][0] == 'X' && arr[2][1] == 'X' && arr[2][2] == 'X')||(arr[0][0] == 'X' && arr[1][0] == 'X' && arr[2][0] == 'X') ||(arr[0][1] == 'X' && arr[1][1] == 'X' && arr[2][1] == 'X') || (arr[0][2] == 'X' && arr[1][2] == 'X' && arr[2][2] == 'X')){

       winner = 'X';

   }

If otherwise that it matches O, then O wins

   else if((arr[0][0] == 'O' && arr[0][1] == 'O' && arr[0][2] == 'O') ||(arr[1][0] == 'O' && arr[1][1] == 'O' && arr[1][2] == 'O') || (arr[2][0] == 'O' && arr[2][1] == 'O' && arr[2][2] == 'O')||(arr[0][0] == 'O' && arr[1][0] == 'O' && arr[2][0] == 'O') ||(arr[0][1] == 'O' && arr[1][1] == 'O' && arr[2][1] == 'O') || (arr[0][2] == 'O' && arr[1][2] == 'O' && arr[2][2] == 'O')){

       winner = 'O';

   }

This returns the winner (either O, X or blank)

   return winner;

See attachment for complete program which includes the main

How can we display outputs of DIR one screenful at a time? There are at least two different ways, and either one is acceptable.

Answers

Answer:

DIR has a /p option to paginate any output.

dir /p

Will give you one screen length at a time.

I believe you can use that simultaneously with /w if you want to fit more file names on the screen, at the loss of additional data like file size, type, etc.

3. What workplace hazards can be found on picture A?

4-5. Describe the workplace A and B, What are their differences​

Answers

Answer:

Hakdog

Explanation:

kase hakdog ka kainin mo tite ko

match each option to the description of the task it accomplishes?

Answers

Answer:

did u mean to send a picture

Explanation:

Let us say numbers.txt contains the sequence of numbers from 1 to 10000, like this:
1
2
3
4
Each of the following 2 commands should output the following 4 lines. Complete the commands with correct values to make it happen!
4377
4378
4379
4380
head - numbers.txt | tail -
tail - numbers.txt | head -

Answers

Answer:

Follows are the solution to this question:

Explanation:

head | tail -n 4380 in the numbers.txt

This will take first 4380 lines head -n 4380

tail -n 4 takes out the last 4 lines

tail -n + 4377.txt | head -n 4 -n

tail -n + 4377 requires all 4377 lines

head -n 4 cuts out first four lines

that's why the final answer is "4380, 4 5624,4".

help me in computer

no spam i will report wrong answer​

Answers

In the computar process it has to be done in a blind fold

Write an algorithm to show whether a given number is even or odd.

Answers

Answer:

int num = Console.ReadInt("Please enter a number");

if(num%2 == 0) {

Console.WriteLine("Number is even");

} else {

Console.WriteLine("Number is odd");

Explanation:

five advantages of Internet​

Answers

Answer:

1. Accessible to find information

2. Computer can store information you need

3. Communication world wide to connect with others

4. High tech learning

5. Many entertaining platforms and games  

Explanation:

Hope that helps

Your goal is to write a JAVA program that will ask the user for a long string and then a substring of that long string. The program then will report information on the long string and the substring. Finally it will prompt the user for a replacement string and show what the long string would be with the substring replaced by the replacement string. Each of the lines below can be produced by using one or more String methods - look to the String method slides on the course website to help you with this project.
A few sample transcripts of your code at work are below - remember that your code should end with a newline as in the textbook examples and should produce these transcripts exactly if given the same input. Portions in bold indicate where the user has input a value.
One run of your program might look like this:
Enter a long string: The quick brown fox jumped over the lazy dog
Enter a substring: jumped
Length of your string: 44
Length of your substring: 6
Starting position of your substring: 20
String before your substring: The quick brown fox
String after your substring: over the lazy dog
Enter a position between 0 and 43: 18
The character at position 18 is x
Enter a replacement string: leaped
Your new string is: The quick brown fox leaped over the lazy dog
Goodbye!
A second run with different user input might look like this:
Enter a long string: Friends, Romans, countrymen, lend me your ears
Enter a substring: try
Length of your string: 46
Length of your substring: 3
Starting position of your substring: 21
String before your substring: Friends, Romans, coun
String after your substring: men, lend me your ears
Enter a position between 0 and 45: 21
The character at position 21 is t
Enter a replacement string: catch
Your new string is: Friends, Romans, councatchmen, lend me your ears
Goodbye!

Answers

Answer:

In  Java:

import java.util.*;

public class Main{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 String longstring, substring;

 System.out.print("Enter a long string: ");

 longstring = input.nextLine();

 System.out.print("Enter a substring: ");

 substring = input.nextLine();

 

 System.out.println("Length of your string: "+longstring.length());

 System.out.println("Length of your substring: "+substring.length());

 System.out.println("Starting position of your substring: "+longstring.indexOf(substring));

 

 String before = longstring.substring(0, longstring.indexOf(substring));

 System.out.println("String before your substring: "+before);

 

 String after = longstring.substring(longstring.indexOf(substring) + substring.length());

 System.out.println("String after your substring: "+after);

 

 System.out.print("Enter a position between 0 and "+(longstring.length()-1)+": ");

 int pos;

 pos = input.nextInt();

 System.out.println("The character at position "+pos+" is: "+longstring.charAt(pos));

 

 System.out.print("Enter a replacement string: ");

 String repl;

 repl = input.nextLine();

 

 System.out.println("Your new string is: "+longstring.replace(substring, repl));

 System.out.println("Goodbye!");

}

}

Explanation:

Because of the length of the explanation; I've added the explanation as an attachment where I used comments to explain the lines

In this exercise we have to use the knowledge of the JAVA language to write the code, so we have to:

The code is in the attached photo.

So to make it easier the JAVA code can be found at:

import java.util.*;

public class Main{

public static void main(String[] args) {

Scanner input = new Scanner(System.in);

String longstring, substring;

System.out.print("Enter a long string: ");

longstring = input.nextLine();

System.out.print("Enter a substring: ");

substring = input.nextLine();

System.out.println("Length of your string: "+longstring.length());

System.out.println("Length of your substring: "+substring.length());

System.out.println("Starting position of your substring: "+longstring.indexOf(substring));

String before = longstring.substring(0, longstring.indexOf(substring));

System.out.println("String before your substring: "+before);

String after = longstring.substring(longstring.indexOf(substring) + substring.length());

System.out.println("String after your substring: "+after);

System.out.print("Enter a position between 0 and "+(longstring.length()-1)+": ");

int pos;

pos = input.nextInt();

System.out.println("The character at position "+pos+" is: "+longstring.charAt(pos));

System.out.print("Enter a replacement string: ");

String repl;

repl = input.nextLine();

System.out.println("Your new string is: "+longstring.replace(substring, repl));

System.out.println("Goodbye!");

}

}

See more about JAVA at brainly.com/question/2266606?

Type the correct answer in the box. Spell all words correctly.
Graphic designers can compress files in different formats. One of the formats ensures that the quality and details of the image are not lost when the graphic designer saves the file. Which file format is this?
The _______file format ensures that images don’t lose their quality and details when graphic designers save them.

Answers

Answer: TIFF

Explanation:

Tag Image File Format (TIFF) is the go to file format when one needs to store their image without worrying about it losing its quality and details. This is why TIFF images do not become smaller when compressed because they aim to save the quality of the work.

One has access to options such as tags and transparency on TIFF and it can be used on Photoshop as well as for things like desktop publishing and faxing.

Answer:

The lossless file format ensures that images don’t lose their quality and details when photographers save them.

Explanation:

9. Select the correct answer.
Jude has entered into an agreement with his client regarding the use of his images over a span of five years. They have agreed that the images will not be shared with any other clients. Which type of usage has Jude agreed to in this contract between himself and the client?
A.
non-exclusive
B.
exclusive
C.
fair use
D.
copyright
E.
statutory

Answers

Answer:

I believe the answer is exclusive but im not 100% sure

Answer:

The answer is choice B. Exclusive.

Explanation:

In an independent software organization, who owns the copyright of the developed software?
O A.
client
OB
software organization
C.
project manager
D.
testing team
OE.
change committee

Answers

Answer:

The correct answer is B) The software organization.

Explanation:

An independent software organization is one that specializes in writing or creating software or applications that are eventually sold to the end-users. The End-Users are usually a broad-based market. The users only purchase a right to use the software, not the right to own the software. This means that the rights and ownership of the software remain that of the independent software organization or vendor (ISV).

Examples of applications that an ISV can create include but are not limited to the following list:

Healthcare Management System; Real Estate Management System; Accounting and Finance Management System Gambling Softwares University or School Management Software etc

Examples of Accounting and Finance Management Systems are:

Quickbooks by IntuitFreshbooksSage and Xero

Cheers

What is the algorithm to determine the absolute of a number

Answers

This was written in python, let me know if it needs to be in another language.

Answer:

Conditionals are slower than plain arithmetic operations, but much, much faster than something as silly as calculating the square root

Explanation:

integer or bitwise op: 1 cycle floating -point add/ sub/mul: 4 cycles . Floating- point div ~ 30 cycles Floating - point exponentiation :~ 60 cycles depending on implementation Conditional branch : avg. 10_ cycles, better if well- predicted , much worse if mispredicted.

Other Questions
HELP MEH PLS! Will mark brainliest :3Simplify it- don't solve it. Show your work too pls! change ratio to fractions. reduce to lowest terms: 5:4 Given m||n, find the value of x.(explain answer) Helpp pleasee!! asap Which of the following gulfs are in Southeast Asia? A. the Gulf of Aden and the Gulf of Bahrain B. the Gulf of Mexico and the Gulf of California C. the Gulf of Thailand and the Gulf of Tonkin D. the Gulf of Suez and the Gulf of Oman what is the percentage decrease, if the price of a shirt is reduced from 800rupees to 640rupees?(pls answer quickly it is very urgent) Which of the following chemical reactions is a single displacement reaction?A. 2Na + O2Na2OB. 2A1 + 3Zn(NO3)2 2AI(NO3)3 + 3ZnC. Pb(NO3)2 + 2KBr PbBr2 + 2KNO3D. 2Fe(OH)3 Fe2O3 + 3H2O Question 10 of 10Which of the following does not supply a context clue? 1 gallon of milk divided into 10 glasses Write the equation of this line in y= mx + b form 35% of 15% of x is equivalent to which of the following? A. 0.0525xB. 0.125xC. 0.25xD. 0.525xE. 5.25x Type the correct answer in the box. Spell all words correctly.What do you need to use in order to work as an environmental scientist?You need to use the scientific method and _________in order to work as an environmental scientist. HELPPPPPPPPPPPPPPPPPPPP what can our school do for the preparedness against disaster Why do we, as humans, sometimes mess up and do BAD things? Write Essays Compare and contrast American manufacturing in the early 1900s and late 1800s. What had changed? Why? An increase in which of the following will increase the return on equity, all else constant I. Total asset turnover. II. Net income. III. Total assets. IV. Debt-equity ratio. I only. I, II, and III only. I and II only. I, II, and IV only. I, II, III, and IV. What is 2.5x X 12.5p???????????????? What is unique about the religious history of Armenia?Please help. Mama Duck flew down into the moat first. She paddled around,encouraging her family to join her. One by one they obeyed, tumblingover the steep rocky sides and plopping into the green water.followedcarriedstartledblamed the marked price of an article , which is brought it for Rs 1280 is 25% above the cost price. if the discount is allowed and customer brought it for Rs 1540 including 10% Vat , what is the discount percent?