Write a java program that will take 2 String inputs and perform the following operation on them: a) Show length of the strings b) Concatenate two strings c) Convert those two strings to uppercase.

Answers

Answer 1

Answer:

// here is code in java.

import java.util.*;

// class definition

class Solution

{

   // main method of the class

public static void main (String[] args) throws java.lang.Exception

{

   try{

 // scanner object to read input from user

Scanner scr=new Scanner(System.in);

 // string variables

String st1,st2;

System.out.print("enter the first string:");

 // read the first string

st1=scr.nextLine();

System.out.print("enter the second string:");

 // read the second string

st2=scr.nextLine();

// part (a)

 // find length of each string

System.out.println("length of first string is: "+st1.length());

System.out.println("length of second string is: "+st2.length());

//part(b)

 // concatenate both the string

System.out.print("after Concatenate both string: ");

System.out.print(st1+st2);

// part(c)

 // convert them to upper case

System.out.println("first string in upper case :"+st1.toUpperCase());

System.out.println("second string in upper case :"+st2.toUpperCase());

   }catch(Exception ex){

       return;}

}

}

Explanation:

Read two strings st1 and st2 with scanner object.In part a, find the length of each string with the help of .length() method and print the length.In part b, concatenate both the string with + operator.In part c, convert each string to upper case with the help of .toUpperCase()  method.

Output:

enter the first string:hello

enter the second string:world!!

length of first string is: 5

length of second string is: 7

after Concatenate both string: hello world!!

first string in upper case :HELLO

second string in upper case :WORLD!!


Related Questions

How many bytes are there in 256 Kbytes?

Answers

Answer:

256000 bytes.

Explanation:

One Kilo byte(KB) consists of 1000 bytes.So the number of bytes in 256 kilo bytes is :-

1 kilobyte = 1000 bytes.    

256 kilo bytes = 256 x 1000 bytes.  

256 kilo bytes = 256000 bytes.  

Also 1 bytes consists of 8 bits.

1 kb = 1000 bytes.

1GB Giga byte = 1024 kilo bytes.

1 TB Tera Byte = 1024 Giga Bytes (GB).  

Hence the answer to this question is  256,000 bytes.

.In Linux what command sequence do we enter to stop a program?

Answers

Answer:

exit command is used to stop the program.

Explanation:

exit command is used to exit the shell when it is currently running.It can take one or more arguments exit[n] and exits the shell and returns the status of n.

exit with parameters

exit [n] exits the shell and returns the status of n.

exit without parameters

exit exits the shell and returns the status of last command that is executed.

A potential problem related to the physical installation of the Iris Scanner in regards to the usage of the iris pattern within a biometric system is:

a.Concern that the laser beam may cause eye damage.

b.The iris pattern changes as a person grows older.

c.There is a relatively high rate of false accepts.

d.The optical unit must be positioned so that the sun does not shine into the aperture.

Answers

Answer: d)The optical unit must be positioned so that the sun does not shine into the aperture.

Explanation: Iris scanner is the capturing and scanning of the unique iris pattern that is present in small colored circle in the human eye.This techniques works through the invisible infrared light which captures the distinctive pattern.This is usually not visible from the naked eyes.

While scanning the iris through infrared light for image creation, sunlight can interrupt the aperture if it is positioned towards the direct light of sun.

Other options are incorrect because laser beam usually does not damage the eye in most cases,change in pattern in iris is rarely change over time and it has good rate of acceptance.Thus the correct option is option(d).

Write a void function using two type int call-by-reference parameters that swaps the values in the arguments. Be sure to include testable pre and post conditions. .

Answers

Answer:

Please copy the C++ code inluded. It's better to open it with an Integrated Development Environment of your choice.

Th C++ code includes explanatory comments (after "//"). You may run it on on step by step basis.

The void function code follows:

void swapFunction(int & a, int & b) {    // receives 2 references (&) as  a and b

int c = a;                                  // saves a's value (actually first's) to local variable c

a = b;                                      // assigns b's value (actually second's) to a (actually first's)

b = c;                                      // assigns to b (actually second) from c

}

Main function:

using namespace std;                        // Assumes "std::" prefix for "cin" and "cout"    

int main() {                                // Main program unit

int first,second;                           // We must declare 2 variables to store 2 int values (data input)

cout << "First value:"; cin >> first;       // Reads first value after a little message

cout << "Second value:"; cin >> second;     // Reads second value after a little message

swapFunction(first,second);                 // Swap function call sends first's and second's references

cout << "First value:" << first << endl;    // Displays new first value

cout << "Second value:" << second << endl;  // Displays new second value

return 0;                                   // Success exit returns 0

}

Explanation: The testable code is included as main functionIt declares 2 int variables to store input dataReads the input dataCalls swapFunction to swap values storedDisplays exchanged values

Why would you use a database system instead of traditional file system

Answers

Answer:

Traditional database system is the system that contains all the data in the computer files on a computer system. The organization of the data is done in the form of files sets. In this system, large amount of data is not properly accessible due to inefficiency and also consumes lot of time.

Instead of the traditional system,database system is used, which has the collection of the data that gets stored in the database management system(DBMS).They can be managed by the operating system.

They have qualities like consuming large amount of data, any type of information, independent to work ,less time-taking development of application for etc. which is not present in traditional system.Thus database system are chosen over the traditional system.

Write an if statement that assigns to the variable biggest the Greatest value contained in variables i, j and k, Assume the three values are distinct.

Answers

Answer:

if(i > j && i > k) // check if i is greatest

{

   biggest = i;

}

else if( j> i && j > k) // check j is greatest

{

    biggest = j;

}

// else highest is k

else                // otherwise k is greatest

{

   biggest = k;

}

Explanation:

Following are the program in c++ language

#include<iostream> // header file

using namespace std; // namespace

int main() // main function

{

int i,j,k;// varaible declaration

int biggest;

cout<<" \nenter the value i,j and k:\n ";

cin>>i>>j>>k;

if(i > j && i > k) // check if i is greatest

{

   biggest = i;

}

else if( j> i && j > k) // check j is greatest

{

    biggest = j;

}

// else highest is k

else                // otherwise k is greatest

{

   biggest = k;

}

cout<<" the biggest number is :"<<biggest;

return(0);

}

Output:

enter the value i,j and k:

67

8

9

the biggest number is :67

In this  program we check the following condition:

if(i > j && i > k) then it store the value of i into biggest variable .

if( j> i && j > k) then it store the value of j into biggest variable .

otherwise the value of k is store into biggest variable .

 

The most common solution to supply chain uncertainties is to build inventories or __________ as insurance.
a. safety stock
b. stockouts
c. continuous replenishment
d. restocking

Answers

Answer: a)Safety stock

Explanation: Safety stock is the collection of item or goods of any particular company so that they do not face out of stock situation.This stocks helps in the situation when the sale of goods are more than expected rate and additional stock is not present to be used in the uncertain situation.

Safety stock acts as the insurance because of its extra inventory in the uncertain situation.Other options are incorrect because stock-out means the stock of items getting finished, continuous replenishment is notification about the sales on daily basis and restocking is the refilling of the items in stock upon the request when the goods get out of stock.Thus the correct option is option(a)

Many business databases consist of multiple tables with ____ among them.

Relationships

Arrows

Objects

Constraints

Answers

Answer: Relationship

Explanation:

 Many organization and business consist multiple tables with the relationship when the multiple data in the table are basically associate with the multiple data in the another table.

When we create a database, then foe each entities we use separate table for every particular entities. The relationship between the multiple table is basically used to represent multiple data in the database.

There are basically different type of the relationship in the database that are:

One to one relationshipOne to many relationshipMany to many relationship  

 

An expression containing the operator && is true either or both of its operands are true. True/False

Answers

Answer:

True.

Explanation:

An expression containing the && and  operator is only true if both of the operands present in the expression are true otherwise it will give the result as false if either one of them is false or both of them are false.In the question it states that the expression in true either or both of it's operand are true.

Hence the answer is true.

Time and weather Write a program to take as input and 4-digit number from the user. The first two digits represent the day of the month and the last two digits represent the month of the year. The program should then display the following: "It's winter" if the month entered is 12, 1 or2 . "It's Spring" if the month entered is 3, 4, or 5 "It's Summer", if the month entered is 6,7, or 8 "It's Fall", if the month entered is 9, 10, or 11 The program should also display the current week number of the month

Answers

Answer:

#here is program in python

#read 4 digit number

date=int(input("enter the date:"))

#first 2 digit is day

day=int(date/100)

#last 2 digit is month

month=date%100

#find the week of the month

if day<=7:

  week=1

elif day>=8 and day<=14:

  week=2

elif day>=15 and day<=21:

  week=3

elif day>=22 and day<=28:

  week=4

elif day>=29:

  week=5

#check for Winter

if month in [12,1,2]:

  print("week {} of Winter.".format(week))

# check for Spring

elif month in [3,4,5]:

  print("week {} of Spring.".format(week))

#check for Summer

elif month in [6,7,8]:

  print("week {} of Summer.".format(week))

#check for Fall

elif month in [9,10,11]:

  print("week {} of Fall.".format(week))

Explanation:

Read a 4 digit number from user.first 2 digits represents the day and last 2 month.Then find the week of the month.If the month is in [12,1,2] then it will print "Winter" and week of that month.If month is in [3,4,5] then print "Summer" with week.If the month is in [6,7,8] then "Summer" and if the month is in [9,10,11] then "Fall".

Output:

enter the date:1212

week 2 of Winter.

you are engaged in affinity analysis. what does this mean?

a. grouping entities and attributes in logically organized table structures.

b. looking for data that logically attracts interest.

c. capturing all relevant information about a topic in a single interview with subject matter experts

d. searching for pattern matches

Answers

Answer:

The answer is d.seaching for pattern matches.

Explanation:

Affinity analysis is a technique of data analysis and data mining used to discover relationships among activities performed by a group of interest. It's applied to process where the group of interest records information of their activities and that can be identified. In other words, this technique is used to analyze the behavior of people to identify patterns to determine links into potential purchases.

Write a program that asks the user to enter a person’s age. The program should display a message indicating whether the person is an infant, a child, a teenager, or an adult. Following are the guidelines: If the person is 1 year old or less, he or she is an infant. If the person is older than 1 year, but younger than 13 years, he or she is a child. If the person is at least 13 years old, but less than 20 years old, he or she is a teenager. If the person is at least 20 years old, he or she is an adult.

Answers

Answer:

The c++ program for the given scenario is given below.

#include <iostream>

using namespace std;

int main() {

   int age;

   string person;

   cout << "This program prints whether the person is an infant, a child, a teenager or an adult based on the age entered by the user." << endl;

   cout << "Enter the age in completed years" << endl;

   cin >> age;

   if( age>=0 && age<=1 )

       person = "infant";

   else if( age>1 && age<13 )

       person = "child";

   else if( age>=13 && age<20 )

       person = "teenager";

   else

       person = "adult";        

   cout << "The person is " << person << " at the age of " << age << endl;

   return 0;

}

OUTPUT

This program prints whether the person is an infant, a child, a teenager or an adult based on the age entered by the user.

Enter the age in completed years

1

The person is infant at the age of 1  

Explanation:

This program prints the phase of the human life based on the age entered by the user. The program executes as follows.

1. User is prompted to enter the age in completed years. The program does not validates the user inputted age since it is not specifically mentioned in the question.

2. An integer variable, age, is declared which is initialized to the age entered by the user.

3. A string variable, person, is declared which is initialized to the phase of the person based on the entered age. The variable person is not initialized.

4. The age of the user is tested using multiple if else statements. Based on the age criteria given in the question, the variable person is assigned a value. This value represents the phase of the person which is equivalent to the age.

5. The program terminates with a return statement since the main method has the return type of integer.

Final answer:

A program was written to categorize a person's life stage based on age. It asks the user to enter the age and then utilizes conditional statements to determine if the individual is an infant, child, teenager, or adult. The program is designed in Python with simple if-else statements.

Explanation:

Program to Determine Life Stage Based on Age

To answer the student's question, we will write a simple program that asks the user to input a person's age and then determines whether that person is classified as an infant, a child, a teenager, or an adult. The program utilizes conditional statements to categorize the age into the appropriate life stage following the given guidelines.

Here's a sample structure for the program in Python:

# Ask the user to input the age
age = int(input("Enter the person's age: "))

# Determine the life stage
if age <= 1:
   print("This person is an infant.")
elif age > 1 and age < 13:
   print("This person is a child.")
elif age >= 13 and age < 20:
   print("This person is a teenager.")
else:
   print("This person is an adult.")
The output of the program will inform the user of the life stage based on the age provided.

The default behavior for Connector/Python is to use __________ results.

a

buffered

b

unbuffered

c

uninitialized

d

list-based

Answers

Answer: (C) Uninitialized

Explanation:

 The default behavior is basically used as the uninitialized result for the connector and python. As a matter of course, MySQL Connector/Python doesn't cradle or pre-fetch results. This implies after a question is executed, your program is in charge of bringing the information.

This stays away from unnecessary memory use when inquiries return huge outcome sets. On the off chance that you realize that the outcome set is little enough to deal with at the same time, you can get the outcomes promptly by setting supported as "TRUE".

An oral defamatory statement is ____.

Abuse
Slang
Slander
Defamation

Answers

Answer: Slander

Explanation: Slander is the orally spoken statement that has the defamatory meaning.The meaning of the defamatory statement is having the negative, false, hatred, ridicule etc feeling in the hidden form.This statement shows the false intention.

Slander is marked as the untrue defamatory statement .Other options are incorrect because abuse is statement containing abusive language, slang contains the informal language and defamation is the false claim .Thus the correct answer is slander.

In object-oriented development, why is it necessary to use drivers and stubs in testing?

Answers

Answer: In object-oriented approach for the development of operating system requires stub and driver as essential part for the creation of proper interaction of the object oriented components with the external system.They help in testing of the module.

Stub is the unit that acts as a piece of code which fills in the place of the missing section in the system. The functions of the system module is tested by stub .

Driver is the part that helps in citing the system modules under the testing conditions.It is the piece of code that creates the calling function simulation.

in c++, what happends when i add 1 to the RAND_MAX then take rand() deivded by (RAND_MAX+1)?if my purpose is to take out a random number within 0=< and =<1?

Answers

Explanation:

rand() function is used to generate random integers between the range 0 to RAND_MAX.So if we divide the the rand() function by RAND_MAX the value returned will be 0.

You cannot do RAND_MAX + 1 the compiler will give error integer overflown.

To generate an integer with a range.You have to do like this:

srand(time(0));

int a=-1*(rand() % (0 - 5245621) +1);

cout <<a;

This piece of code will return an integer within the range 0 to -5245622.

What should you do if you forget your root password for MySQL?
(a) Go to get a root canal.
(b) You have to re-install MySQL with a new password.
(c) You better hope you wrote it on a Post-It, because there is no way to recover or change the password.
(d) Call the GeekSquad to help.
(e) In Linux you can run MySQL in 'safe mode' (which doesn't require a password to login) to reset your password.

Answers

Answer:

E) in linux you can run MySQL in 'safe mode' (which doesn't require a password to login) to reset your password.

Answer:

(e) In Linux you can run MySQL in 'safe mode' (which doesn't require a password to login) to reset your password.

Explanation:

Which of the following does not make a good analysis class? (Points : 6) its name reflects its intent
it is crisp and models one specific element
has well define responsibilities
it has high cohesion
it has high coupling

Answers

Answer:it has high coupling

Explanation: Coupling is the property in the field of computer program that is defined as the functions ,data and  codes of the program are dependent on each other and cannot be changed independently if requires. Thus,high amount of coupling is not considered as good factor due to high interdependence. Loose coupling can be still permitted.

Other options are correct because name of the class should reflect the purpose and well defined responsibilities should be present, modeling of certain component and high cohesion means keeping similar functions togather is also required. So, the only bad factor is high coupling

In PumaMart system, why an initial offer is not necessary at the beginning of negotiation?

Answers

Answer:

 The modification factor decides each progression of property changed in the procedure of the negotiation. In the event that the progression is pretty much nothing, the client can't show signs of improvement arrangement result inside as far as possible.

In the specific arrangement of the negotiation round, if the half shops dismiss the new offering that is propose by the client specialist just because, it implies it is unreasonably forceful for the e-shops. The shopper will keep up the negotiation with "littler" change factors.

In many cases, the e-shop keeper accept the given offer and then, the negotiation agent built a big factor of adjustment.

What is your understanding of the difference between a stream cipher and a block cipher?

Answers

Answer:

In a stream cipher, the information is ciphered byte-by-byte.

In a block cipher, the information is ciphered block by block.

Explanation:

Suppose I have the following text:

Buffalo Bills New England Patriots

New York Jets Miami Dolphins

Each line is one byte, so, on the stream cipher, i am going to apply the ciphering algorithm on:

The letter B

The letter u

The letter f

Until

The letter s(of Miami Dolphins)

Now for the block cipher, i am saying that each line is a block, so the algorithm is going to be applied.

First on: Buffalo Bills New England Patriots

Then: New York Jets Miami Dolphins

Final answer:

A stream cipher processes input data bit by bit or byte by byte, generating a stream of encrypted output. A block cipher divides input data into fixed-length blocks and encrypts each block separately using a fixed encryption algorithm and a secret key.

Explanation:

A stream cipher and a block cipher are two different encryption techniques used in computer cryptography. The main difference between them lies in the way they encrypt data. A stream cipher processes the input message bit by bit or byte by byte, generating a stream of encrypted output. This stream is combined with the plaintext using a bitwise operation such as XOR to produce the ciphertext. Stream ciphers are typically used for real-time applications or when individual bits need to be encrypted and decrypted.

On the other hand, a block cipher divides the input message into fixed-length blocks, usually 64 or 128 bits, and encrypts each block separately. The blocks are encrypted using a fixed encryption algorithm and a secret key. Block ciphers are commonly used for securely encrypting large amounts of data in a fixed block size.

In MIPS architecture, the Program Counter is:

A register that stores the next instruction to be executed

A register that stores the address of the next instruction to be executed

A binary counter that counts how many instructions have been executed

A control circuit that steps through a sequence of instructions

A register that stores the current location in memory to read and write from

Answers

Answer: A register that stores the address of the next instruction to be executed

Explanation: Program counter is register of the CPU(central processing unit) .It contains the memory address of the instruction that is to be executed in next turn after the present instruction is executed.This is also known as the instruction pointer .The cycle followed by the counter is fetch ,decode and execute.

Other options are incorrect because it does not store next instruction,does not count number of instruction or stores the memory for reading and writing.It also does not act as a control circuit.

What are the 7 types of Bootstrap buttons?

Answers

Answer:

The 7 types of bootstrap buttons are as following:-

.btn-default

.btn-primary

.btn-success

.btn-info

.btn-warning

.btn-danger

.btn-link

Explanation:

These are the 7 types of different bootstrap buttons there is also one more type that is called simple button .btn  .

Default button is of white color.

Primary button is of blue color.

success button is of green color.

info button is of greenish blue color.

warning button is of orange color.

danger button is of red color.

link button is of no color.

.What is systemd? How is it used?

Answers

Answer:

 The systems is the type of the linux initialization system approach that basically include on demand features and used in tracking process in the linux control system as service manager.

The systemd also run or compile in terms of the user context and manage the additional system resources. The systemd file are basically used in the timer unit section to enable the individual unit in the particular timer section.

It basically provide various tools and the utilities that help in the various system tasks.    

__________ use a challenge response mechanism in which a server challenges a user with a number, which a user must then enter into a device to calculate the response number.

Answers

Answer: Authentication

Explanation:

 Authentication is the mechanism of the challenge response in which it basically allow the server to challenge the user with the number without revealing any password.

Then the user must enter that particular password to enter into the device for calculating the particular response number. Then it basically compute the given response by apply hash function in the server challenge that combine the users password.  

Final answer:

Two-factor authentication (2FA) tokens or one-time password (OTP) tokens use a challenge response mechanism to enhance security in multi-factor authentication systems. A server sends a challenge number to the user, who then inputs it into a device that calculates a response using a secret key and algorithm. This system provides added security beyond traditional login credentials.

Explanation:

Devices that use a challenge response mechanism where the server challenges a user with a number, and the user must then enter this number into a device to calculate a response number, are known as two-factor authentication (2FA) tokens or one-time password (OTP) tokens.

These tokens are often used in multi-factor authentication systems, providing an extra layer of security beyond just a username and password. When a user attempts to log in, the server sends a unique challenge, such as a nonce or a time-based number. The user enters this challenge into their 2FA or OTP device, which then uses a pre-shared secret key and an algorithm to generate a response. The user enters this response back into the system to authenticate.

Examples of such devices include hardware tokens, like RSA SecurID, which display a number that changes periodically and must be entered during login, and software tokens, which run on smartphones or other devices using apps like Authy.

What is the Java source filename extension? What is the Java bytecode filename extension?

Answers

Answer:

The extension of java source filename is .java and the extension of bytecode filename is .class

Explanation:

The java program is saved with the classname along with .java extension. The .java extension indicated that the particular file in java file.

Suppose we have a program  

public class Main1

{

public static void main(String[] args) {

 System.out.println("Hello:");

}

}

This program is saved as :Main1.java

To compile this program in command prompt we use javac Main1.java.

On compiling the java program it will be converted into byte code which has extension .class filename extension. So on compile, this program will be converted into Main1.class

How can encryption be used to ensure message integrity?

Answers

Answer: Encryption technique is the method for encoding of the information or confidential data which can only be used by the authorized user. The decryption of the message is done by the key that is provided to the authorized party.

Integrity is the property which makes sure that the data is secured and non accessible by the unauthorized party.Thus, encryption makes sure that data does not gets accessed by unauthorized unit that is assuring about the data integrity.

What is the financial aspect for a business as to what database software they will buy?

Answers

Answer:  Database software is bought on basis of the processing, cost, requirement etc for any particular . According to the financial perspective the database  software should have the following characteristics:-

Database software that has most accurate and main feature according to the business requirement is selected for buying and the others with extra features are not considered as more feature cost more amount  which is not needed.Database software which is still in progress to be built is pre-booked and money is invested on it because the price of the required software might increase after getting completed.Scalable database software should be bought so that it can extend according to need at low cost.

 

What is the difference between a bound control and an unbound control?

Answers

Answer: The differences between the unbound and the bound control are as follows:-

An unbound control is the control which has data source in field whereas bound control field's contain the data source.The components displayed by the unbound control are pictures, data, line etc. while numbers , text etc are displayed with the help of bound control.The values in the unbound control is not obtained from field but the values in the bound control is gained from the field or expression.

_____ _____ deals with the definitions properties of mathematical models of computation.

Answers

Answer: Theory of computation/Computation Theory/Automata Theory

Explanation: Automata theory is also known as the theory of computation.this theory describes about the simple machines in accordance with the computation logic.It is used in computer science field as well as mathematical field.

The function of the theory is to create the understanding of problem solving techniques and function.The functioning of the dynamic system which have the non-constant behavior  is the reason for the production of this theory.

Procedures do NOT reduce mistakes in a crisis.

True

False

Answers

Answer: False

Explanation: Procedure is the planning technique that is used for the defining the events or steps in a serial manner. The series of action requires to deal at the time of crisis is known as the crisis management procedure.

So ,if the procedure is made for the critical situation , it will contain the well managed steps along with the alertness towards handling the critical situation .The steps towards the precaution, avoidance of harm and tackling will reduce the mistakes in the crisis. Thus the statement given is false.

Other Questions
If atom X has an atomic mass of 12, and atom Y has an atomic mass of 1, what would be the mass of 4.18 moles of the compound X7Y11, in grams? Please report your answer to the nearest whole gram. How will i solve this equation, 3m/4 - m/12 = 7/8 step by step? Read these lines about the fish the speaker catches in Elizabeth Bishop'spoem "The Fish":Like medals with their ribbonsfrayed and wavering,a five-haired beard of wisdomWhich best describes the tone in these lines?A. RemorsefulOB. ScaredO C. HopefulD. Admiring Which of the following is not associated with one of the pillars of Islam? Renees car causes her $195 per month +9 cents per mile. How many miles can a dry so that her monthly car expenses are no more than $250? A survey of 510 adults aged 18-24 year olds was conducted in which they were asked what they did last Friday night. It found: 161 watched TV 196 hung out with friends 161 ate pizza 28 watched TV and ate pizza, but did not hang out with friends 29 watched TV and hung out with friends, but did not eat pizza 47 hung out with friends and ate pizza, but did not watch TV 43 watched TV, hung out with friends, and ate pizza How may 18-24 year olds did not do any of these three activities last Friday night? Problem Page Wright Company's employees earn $370 per day and are paid on Friday for a five-day work week. This year, December 31 is a Thursday. If the appropriate adjusting entry is not made at the end of the year, what will be the effect on: (a) Income statement accounts (overstated, understated, or no effect)? (b) Net income (overstated, understated, or no effect)? (c) Balance sheet accounts (overstated, understated, or no effect)? 9. We measure time in hours.Suppose 12 noon is represented by the integer 0.a) Which integer represents 1 P.M. the same day?b) Which integer represents 10 A.M. the same day?c) Which integer represents 12 midnight the same day?d) Which integer represents 10 P.M. the previous day?Describe the strategy you used to find the integers. Gandalf the Grey started in the Forest of Mirkwood at a point P with coordinates (3, 0) and arrived in the Iron Hills at the point Q with coordinates (5, 5). If he began walking in the direction of the vector v - 3i + 2j and changes direction only once, when he turns at a right angle, what are the coordinates of the point where he makes the turn? What is the combined length of all the pieces Meg measured? Write an equation using a variable to show your work. Lengths of wire1 - 3 inches2 - 5 inches3 - 6 inches3 - 7 inches1 - 9 inches Yousuf, a manager at a restaurant, has the ability to deal with numerous problems at once and provide effective solutions. He has the ability to map many problems into one network, and he makes decisions that benefit the organization in the short and the long run. Yousuf's effectiveness reveals that he most likely uses _______________ thinking. Find the domain and range, graph 6.) A kennel owner has 168 feet of fencing with whichto enclose a rectangular region. He wants to subdividethis region into three smaller rectangles of equallength. If the total area to be enclosed 832 ft-, what arethe possible dimensions of the region? To increase an amount by 7% what single multiplier would you use? a speeding car is travelling at a constant 30.0 m/s when it passes a stationary police car. If the police car delays for 1.00 s before starting, what must be the magnitude of the constant acceleration of the police car to catch the speeding car after the police car travels a distance of 300 m?(A) 6.00 m/s2(B) 3.00 m/s2(C) 7.41 m/s2(D) 1.45 m/s2(E) 3.70 m/s2 In how many ways can the digits 0,1,2,3,4,5,6,7,8,9 be arranged so that no prime number is in its original position?I get the answer 1348225 by subtracting the number of derangements with fixed points 4,3,2 and 1 from 10! (the number of ways to arrange the numbers with none fixed). Write an account of the Boston Massacre from the point of view of a British soldier involved in the event. A mass of 156.7g of Helium gas at an initial temperature of 35.73C and at an initial absolute pressure of 3.55 atm undergoes an isothermal expansion until its volume increases by a factor of 1.75. (a) What is the final pressure? (b) How much work is done on the gas? (c) How much heat does the gas absorb? (d) What is the change in the total internal energy of the gas? (a) Pa Answer part (a) (b) Joules Answer part (b) Joules Joules Answer part (C) Answer part (d) (d) Submit The disintegration of the Abbasid Caliphate most directly led to which of the following political developments in the Islamic world in the thirteenth century?A. The Russian conquest of Central Asia B. The rise of Turkic states C. The conversion of most of the Islamic world to Shia IslamD. The collapse of trade along the Silk Road networks What is NOT a sign of building conflict?Question 1 options:a) Non verbal signs like defensive body language or dirty looksb) Getting defensivec) Feeling jealousy or sadnessd) A high five