Write a C++ program that determines if a given string is a palindrome. A palindrome is a word or phrase that reads the same backward as forward. Blank, punctuation marks and capitalization do not count in determining palindromes. Here is some examples of palindromes:

Radar
Too hot to hoot
Madam!I'm adam

Answers

Answer 1

A C++ program to determine if a given string is a palindrome involves converting the string to the same case, removing non-alphanumeric characters, and then checking if the string is equal to its reverse. Below is a sample code that performs these steps:

#include

#include

#include

#include

bool isPalindrome(const std::string& str) {

   std::string sanitized;

   for (char ch : str) {

       if (std::isalnum(ch))

           sanitized += std::tolower(ch);

   }

   std::string reversed = sanitized;

   std::reverse(reversed.begin(), reversed.end());

   return sanitized == reversed;

}

int main() {

   std::string input;

   std::cout << "Enter a string to check if it is a palindrome: ";

   std::getline(std::cin, input);

   bool result = isPalindrome(input);

   if(result) {

       std::cout << "The string is a palindrome." << std::endl;

   } else {

       std::cout << "The string is not a palindrome." << std::endl;

   }

   return 0;

}

In the above program, the function isPalindrome takes a string and creates a sanitized copy by iterating over each character, checking if it is alphanumeric (ignoring spaces and punctuation), and converting it to lowercase. After constructing the sanitized string, it creates a reversed version and compares the two. The main function reads a string from the user, calls the isPalindrome function, and outputs the result.


Related Questions

What is Software Testing ? How many types of testing we mayutilize for a component using CBSE approach ?

Answers

Answer:

Software testing is defined as, it the process of evaluation of the functionality of the system software application to check whether the software met the specified requirement or not and also used to identify defects which ensured that the product is free from all defects in order to produce the quality products.

Types of testing we may utilize for a component using CBSE approach are:

As, CBSE stands for the component based software engineering where  programmers should design and implemented software components in such a way that many different program can reuse them.

Unit testing Integration testing System testing

True of False - use T or FThe Exception class can be extended.

Answers

Answer:

T

Explanation:

java.lang.Exception class can be extended. That is you can define subclasses for the Exception class. In fact all out of the box Exception classes in Java like java.io.IOException, java.lang.NumberFormatException, javax.jms.JMSException extend the base class java.lang.Exception or its subclasses. The subclassing is valid because Exception class is not declared as a final class.

Answer:

true

Explanation:

What is the cause of thrashing?How does the systemdetect thrashing.Once it detects thrashing what can the system doto eliminate this problem

Answers

Answer:

Thrashing :- It is a situation when the system most of it's time is handling page faults, but the actual work done by CPU is very less.

Thrashing is caused by when a process is allocated too few number of frames, then there will be continuous page faults.The actual Utilization of CPU is very less.

Thrashing detection can be done by the system by determining the CPU Utilization as compared to degree of multi programming if it comes out to be less then there is thrashing.

Thrashing can be eliminated by decreasing the Degree of multi programming.

ebay employs the _____ auction mechanism.

A. forward

B. reverse

C. dutch

D. proprietary ebay

Answers

Answer:

A. Foward

Explanation:

ebay employs the forward auction mechanism.

A magnetic disk has an average seek time of 8 ms. The transferrate is 50 MB/sec. The

disk rotates at 10,000 rpm and the controller overhead is 0.3msec. Find the average time to read or write 1024 bytes.

Answers

Answer:

11.32milisec.

Explanation:

Average seek time = 8ms

transfer rate = 50MB/sec

disk rotate = 10000 rpm

controller overhead = 0.3 msec

Average time = ?

Average time is the addition of the seek time, transfer time, rotation time and ontroller overhead

[tex]Average\,time = Seek\,time+Rotation\,time+Transfer\,time+Controller\,overhead[/tex]

now, find the rotation time,

Rotation time is the time at which half rotation is made.

[tex]Rotation\,time=\frac{0.5}{rotation\,per\,second}[/tex]

convert rotation per minute to rotation per second.

[tex]rps=\frac{10000}{60}[/tex]

substitute in the above formula.

[tex]Rotation\,time=\frac{0.5}{\frac{10000}{60} }=0.003sec[/tex]

or 3milisec

now, find the transfer time by formula:

[tex]Transfer\,time=\frac{Number\,of \,read\,or\,write\,bytes}{transfer\,rate}[/tex]

so, read or write bytes is 1024

[tex][tex]Transfer\,time=\frac{1024}{50*10^{6} }=0.02milisec[/tex][/tex]

The average time is:

[tex][tex]Average\,time= 8+3+0.02+0.3=11.32milisec[/tex][/tex]

What are the first and the last physical memory addressesaccessible using
the following segment values?
a) 1000
b) 0FFF
c) 0001
d) E000
e) 1002

Answers

Answer

For First physical memory address,we add 00000 in segment values.

For Last physical memory address,we add 0FFFF in segment values.

NOTE-For addition of hexadecimal numbers ,you first have to convert it into binary then add them,after this convert back it in hexadecimal.

a)1000

For First physical memory address, we add 00000 in segment value

We add 0 at the least significant bit while calculating.

          10000 +00000 = 10000 (from note)

For Last physical memory address,We add 0 at the least significant bit while calculating.

   we add 0FFFF in segment value

           10000 +0FFFF =1FFFF    (from note)

b)0FFF

For First physical memory address,we add 00000 in segment value

We add 0 at the least significant bit while calculating.

     0FFF0 +00000=0FFF0 (from note)

For Last physical memory address,We add 0 at the least significant bit while calculating.

   we add 0FFFF in segment value

           0FFF0 +0FFFF =1FFEF (from note)

c)0001

For First physical memory address,we add 00000 in segment value

We add 0 at the least significant bit while calculating.

     00010 +00000=00010 (from note)

For Last physical memory address,We add 0 at the least significant bit while calculating.

   we add 0FFFF in segment value

           00010 +0FFFF =1000F (from note)

d) E000

For First physical memory address,we add 00000 in segment value

 We add 0 at the least significant bit while calculating.

    E0000 +00000=E0000 (from note)

For Last physical memory address,We add 0 at the least significant bit while calculating.

   we add 0FFFF in segment value

           E0000 +0FFFF =EFFFF (from note)

e) 1002

For First physical memory address,we add 00000 in segment value

 We add 0 at the least significant bit while calculating.

    10020 +00000=10020  (from note)

For Last physical memory address,We add 0 at the least significant bit while calculating.

   we add 0FFFF in segment value

           10020 +0FFFF =2001F (from note)

please exaplain to me, how people, Software andHardware relates specifically to
1. LANs
2. WANs

Answers

Answer:

No Answer

Explanation:

LAN : Local Area Network

Used to connect all the computers with in a building or some limited distance

so that people can share data  and applications between different computers

useful for Intranet applications

WAN: Wide Area Network

used to cover large geographical area. it is network of networks. useful for computer networking.In short a WAN connects several LAN

What do you mean by preemptive and nonpreemptive multitasking and multithreading ?

Answers

Answer:

Preemptive multitasking is the operating system that control the processor by not involving in task cooperation and preemptive is the process of controlling the task. On the other hand, preemptive multi threading is the parallel processing system in which the execution of the thread is preemptive.

Non-preemptive multitasking is the process in which the processor are never involves with the task and it is used for many window applications. Whereas, in non preemptive multi threading when a thread are given control then, it continues run until it can control the blocks.

T F A stub is a dummy function that is called instead of the actual function it

represents.

Answers

Answer: True, stub function is a dummy function that is called instead of actual function.

Explanation: A stub function is a function which has the name , parameters of a function but is used for production of the dummy output which is in correct form. It is put in a function so that it becomes convenient when a function is called it can be tested before it is completely written which saves the execution of wrong code.Therefore the given statement is true.

Elevating privileges to those of an administrator is also called ___________________ escalation.

Answers

Answer: Privilege

Explanation:

Privilege escalation is type of intrusion attack whereby the attacker gain access into the system with the privileges of that of an administrator. This may be due to programming errors or any type of bug in the system. This attack is extremely dangerous because the attack can change the environment of the system as it gets the administrator rights and access.

What happens when a returntype, even void, is specified as a constructor in Java?

Answers

Answer:

If a returntype is added to a constructor method in Java, it ceases to be a constructor and behaves like an ordinary class method with the same name as class name.

Explanation:

If a returntype is added to a constructor method in Java, it ceases to be a constructor and behaves like an ordinary class method with the same name as class name.

Constructors are special methods which are used for initializing the object. Constructors do not have a return type. If we add a return type to the constructor method , it does not play any role during object initialization and can be involved like any other object method.

---------------- is an operating systems ability to be easily enhanced over time

a) performance

b) portability

c) reliability

d) extensibility

Answers

Answer: Extensibility

Explanation:

Extensibility is one of the features which can be easily enhanced over time. As the term extensibility refers to the addition of new features and adding more features to the present modules. This does not change the internal organisation of the earlier modules in fact they add new and more improved features to the present.

Is the Internet a LAN or a WAN?

give the answer at least five line for one question

Answers

Answer:

Internet is a WAN (wide are network)

Explanation:

Great question, it is always good to ask away and get rid of any doubts that you may be having.

The Internet is a worldwide interconnected network with computers acting as nodes around the world. Communicating and sharing information between one another. LAN and WAN are connection types for the Internet.

LAN is a Local Area Network, which interconnects local computer nodes physically using Ethernet cables. Which are then connected to the internet itself.

WAN are wide area networks, which are usually interconnected through public communication services such as telephone cable.

Therefore the Internet is a WAN (wide are network)

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

Given a is 3, b is 4, and c is 5, what is the value of the expression
--a * (3 + b) / 2 - c++ * b?

Answers

Answer:

--a * (3 + b) / 2 - c++ * b = -13

Explanation:

First we have to evaluate (3+b) = 7

As a=3, so "--a" will be 2.

So we need to evaluate "--a * (3 + b) / 2" and as we know * and / has same precedence we have to follow left association.

So in "--a * (3 + b) / 2", "--a * (3 + b)" = 2*7 is evaluated first that is 14. then [tex]\frac{14}{2}[/tex] = 7.

Now in "c++*b" as c is post-incremented, so it will take 5 rather than 6.

So c++*b = 5 *4 = 20.

Now --a * (3 + b) / 2 - c++ * b = 7-20 = -13

Once the logical expression at the start of a while loop is false, the statements after the end statement are

executed.



True or False?

Answers

Answer:

True

Explanation:

the while loop is used to execute the statement again and again unti the condition is true. Once the condition is False, the program control terminate the while loop and execute the next statement after the while loop.

for example:

int i=0;

while(i<5)

{

i++;

}

cout<<i<<endl;

one the code execute the while loop run 5 times and in the 6th times the condition become False then program control moves to print statement.

What is the effect of this program?
#define MAX 50
int a[MAX], i, j, temp;
for(i = 0; i < MAX / 2; + + i)
{
temp = a[i];
a[i] = a[MAX - i -1];
a[MAX - i - 1] =temp;
}
A. Arranges the elements of array a inascending order
B. Counts the numbers of elements of agreater than its first element
C. Reverses the numbers stored in thearray
D. Puts the largest value in the last arrayposition
E. None of the above

Answers

Answer:

The answer is (C)

Let’s run the algorithm on a small input to see the working process.

Let say we have an array {3, 4, 1, 5, 2, 7, 6}. MAX = 7

Now for i=0,  i < 7/2, here we exchange the value at ith index with value at (MAX-i-1)th index. So the array becomes {6, 4, 1,  5, 2, 7, 3}. //value at 0th index =3 and value at (7-0-1)th index is 6. Then for i=1, i < 7/2, the value at index 1 and (7-1-1)=5 are swapped. So the array becomes {6, 7, 1,  5, 2, 4, 3}. Then for i=2, i < 7/2, the value at index 2 and (7-2-1)=4 are swapped. So the array becomes {6, 7, 2,  5, 1, 4, 3}. Then for i=3, i not < 7/2, so stop here. Now the current array is {6, 7, 2,  5, 1, 4, 3} and the previous array was{3, 4, 1, 5, 2, 7, 6}.

Explanation:

So from the above execution, we got that the program reverses the numbers stored in the array.

Final answer:

The provided program reverses the numbers stored in the array by swapping elements from the start of the array with their corresponding elements at the end until it reaches the middle of the array. The correct answer is C. Reverses the numbers stored in the array.

Explanation:

The effect of the provided program is that it reverses the numbers stored in the array a. It uses a for-loop to swap elements symmetrically from the start and end of the array towards the middle. Specifically, for each iteration of the loop, it takes an element from the beginning part of the array (indexed by i) and swaps it with the corresponding element from the end of the array (indexed by MAX - i - 1).

The correct choice from the given options is:

C. Reverses the numbers stored in the array

This code does not arrange the elements in ascending order, count elements, or specifically move the largest value to the last position, so options A, B, and D are incorrect.

Write a C++ code that will read a line of text and echo the line with all uppercase letters deleted. Assume the maximum length of the text is 80 characters. Example input/output is shown below.

Input:

Today is a great day!

Output:

oday is a great day!

Answers

Answer:

#include<bits/stdc++.h>

using namespace std;

int main()

{

   string st;

   getline(cin,st);

   int i=0;

   while(i<st.length())

   {

       if(isupper(st[i]))

       {

           st.erase(st.begin()+i);

           continue;

       }

       i++;

   }

   cout<<st<<endl;

   return 0;

}

Explanation:

I have included the file bits/stdc++.h which include almost most of the header files necessary.

For taking the input as a string line getline is used.

For checking the upper case isupper() function is used. cctype header file contains this function.

For deleting the character erase function is used.

Where (what memory location) is the data read from for the following code:

ORG $3000
LDAA #$C2

Answers

Answer: ORG $3000 tell us that we want to load the program from the address $3000.

LDAA #$C2 tell us to load the value contained in the address present in the register C2 into the accumulator.

Explanation:

ORG instruction in  microprocessor does not have a fixed address. It tell us where to begin the execution of the program by loading into a starting address space. It does not uses fixed addressing

LDAA instruction uses indirect addressing by placing the value from the address present in the register. Here  the address is contained in register C2.

True / False
. Fixed length instruction sets are generally slower to execute than variable-length instruction sets.

Answers

Answer: False

Explanation:

Fixed length instructions are faster than variable length instruction because the fixed length instruction uses one clock cycle for their instruction whereas variable instruction takes more than one clock cycle. As RISC uses fixed length instruction and its CPI(cycles per instruction) is less compared to CISC which uses variable length instructions.

So fixed length instruction sets are faster than variable length instruction.

Whichmultiplexing technique involves signals composed of lightbeams?

1 TDM

2 FDM

3 WDM

4 None of theabove

Answers

Answer:

3.WDM

Explanation:

WDM ( wavelength division multiplexing ) involves signals composed of light beams WDM is used in communication where fibers are used it is used for multiplexing of number of carrier signals  which are made of optical fibers by using different wavelength of laser light it has different wavelength so this WDM is used for signals composed of light beams it has property of multiplexing of signal

If we compare the push function of the stack with the insertFirst function for general lists, we see that the algorithms to implement these operations are similar.

True

False

Answers

Answer:

True

Explanation:

Algorithm for push function

The method of placing data on a stack is called a push operation.

It involves these steps −

Check that the stack is complete.  If the stack is complete, it will cause an error .   Increases top to point next empty room if the stack is not complete.   Adds the data component to the place of the stack where top is pointing. Success returns.

Algorithm for Insertfirst function

Create a new Link with provided data. Point New Link to old First Link. Point First Link to this New Link.

As we can see that in both algorithms ,we are inserting data to a new nodes and incrementing/pointing to a new node for inserting data.Both algorithms uses the same approach.

A while loop's body can contain multiple statements, as long as they are enclosed in braces



True False

Answers

Answer:

True

Explanation:

while loop is used to execute the statement again and again until the condition is true. if condition False program terminate the while loop and start execute the statement outside the loop.

syntax:

initialize;

while(condition)

{

  statement 1;

  statement 2;

   to

  statement n;

}

we can write multiple statement within the braces. their is no limit to write the statement within the body of the while loop.

while terminate only when condition false

vertical exchanges are typically used only to buy and sell materials required for an organization's support activities ( True or false)

Answers

Answer:

Vertical exchanges are typically used only to buy and sell materials required for an organization's support activities- False

This statement is false.

public class Myfile { public static void main (String[] args) { String biz = args[1]; String baz = args[2]; String rip = args[3]; System.out.println("Arg is " + rip); } } Select how you would start the program to cause it to print: Arg is 2 A. java Myfile 222 B. java Myfile 1 2 2 3 4 C. java Myfile 1 3 2 2 D. java Myfile 0 1 2 3

Answers

Answer:

java MyFile 1 3 2 2

Explanation:

Option is is the correct answer, whatever we pass as commadD line arguments can be accessed using String array args by passing index

Array indexes starts with zero, in our case when we say

java MyFile 1 3 2 2

its going to be store like args[0] = 1, args[1] = 3, args[2] = 2, args[3] = 2

now we are saying  System.out.println("Arg is " + rip);

it means its going to print Args is with value of rip i.e. 2 (rip=args[3])

True of False - use T or F An abstract class can be extended by another abstract class.

Answers

Answer:

T

Explanation:

an abstract class can be extended by another.the abstract class which is extending should be implemented by another class

Why has the PCM sampling time beenset at 125 microseconds?

Answers

Answer Explanation:c

PCM( pulse code modulation) is a process for transmitting the analog data from one place to other place the signal which are used in pulse code modulation are binary that is only 0 and 1 using PCM all forms of analog data can be form including voice music etc.

to obtain pcm an analog signal is sampled at regular time interval the sampling rate is very high as compared to the frequency used by analog signal. the instant amplitude of analog signal at each sampling is being closer to the nearest several specific earlier levels.this process is called tantalization. in this the number of level is power of 2 so the sampling time is set as 125 microseconds.

A ____ is a structure that allows repeated execution of a block of statements.

a.
loop control

b.
loop

c.
body

d.
Boolean expression

Answers

Answer:

loop

Explanation:

Loop is the one which is used to execute the specific statement again and again until the condition is true.

In the programming, there are 3 basic loop used.

1. for loop

Syntax:

for(initialization, condition, increment/decrement)

{

  statement;

}

the above statement execute until the condition in the for loop true when it goes to false, the loop will terminate.

2. while loop

Syntax:

initialization;

while(condition)

{

  statement;

increment/decrement;

}

it is work same as for loop and the increment/decrement can be write after or before the statement.

3. do while

syntax:

initialization;

do

{

   statement;

   increment/decrement;

}while(condition);

here, the statement execute first then, it check the condition is true or not.

so, if the condition is false it execute the statement one time. this is different with other loops.

Final answer:

A loop is a structure that allows repeated execution of a block of statements in programming. It is controlled by a condition that, when false, will terminate the loop to prevent an infinite loop.

Explanation:

The correct answer to the question is b. loop. A loop is frequently used in programming to allow the repeated execution of a block of statements until a specified condition is met. Loops are a form of conditional control flow that can drastically alter the execution path of a program.

For instance, a while-loop will continue to execute so long as its condition remains True. If the condition evaluates to False, the loop terminates and control is passed to the statements that follow. During each iteration within the loop, it is essential to modify some variables, such as the iteration variable, to ensure the loop does not continue indefinitely, potentially leading to an infinite loop.

Develop a C++ program that simulates a user creating/entering a new password into a system.
You may presume that the username is irrelevant to complete this program.

Have the program ask the user to enter a proposed password as a string.

Validate that the password meets the following criteria:

Password must be at least ten characters long
Password must contain at least one uppercase letter
Password must contain at least one lowercase letter

Answers

C++ program for Validating password

#include <iostream>

#include<cstring>

using namespace std;

int main()//driver function

{

char password[100];//declaring variables password

int lower=0,upper=0,flag=1;

cout<<"Enter the password\n";//taking input

cin>>password;

int length = strlen(password);//finding length

for(int i=0;i<length;i++)

{

if(password[i]>=65&&password[i]<=90)/*checking string must contain at least one uppercase letter */

{

upper=1;

}

if(password[i]>=97&&password[i]<=122)/*Checking string must contain at least one uppercase letter*/

{

lower=1;

}

}

if(length<10)//checking that string length should be less than 10

{

flag=0;

cout<<"Password must be at least ten characters long\n";

}

if(upper==0)

{

flag=0;

cout<<"Password have to be at least one uppercase letter\n";

}

if(lower==0)

{

flag=0;

cout<<"Password have to be at least one lowercase letter\n";    

}

if(flag==1)//if all condition turns out to true,printing Valid Password  

{

cout<<"Valid Password";

}

}

Output

Enter the password  

 Ayushyadav

  Valid Password

Enter the password  

  Ayush

Password must be at least ten characters long

 Enter the password

anmolyadav

Password have to be at least one uppercase letter

ANMOLVIJWANI

Password have to be at least one lowercase letter

Write a program to display a message telling the educational level of a student based on their number of years of school. The user should enter a number indicating the number of years of school, and the program should then print the corresponding message given below. Be sure to use named constants rather than any numbers other than 0 in this program.

Answers

Answer:

#include <iostream>

using namespace std;

int main()

{

   int years;

   cout<<"enter the number of years of school: ";

   cin>>years;

   cout<<"The educational level is: "<<years<<endl;

}

Explanation:

First include the library iostream in c++ program for input/output.

then create the main function and declare the variable.

after that, display the message by using cout instruction for asking the user to enter the value.

then, cin instruction store the value in the declare variable.

finally, display the message with corresponding value.

Final answer:

The provided Python program prompts for a score between 0.0 and 1.0, validates the input, and then outputs the corresponding grade or an error message if the input is not a number or out of range.

Explanation:

Here is a Python program that prompts for a score between 0.0 and 1.0, checks whether the score is in the valid range, and then prints the corresponding grade based on the score provided:

# Define named constants for grade thresholds
GRADE_A = 0.9
GRADE_B = 0.8
GRADE_C = 0.7
GRADE_D = 0.6
try:
   score = float(input('Enter a score between 0.0 and 1.0: '))
   if score < 0.0 or score > 1.0:
       print('Error: Score is out of range.')
   elif score >= GRADE_A:
       print('A')
   elif score >= GRADE_B:
       print('B')
   elif score >= GRADE_C:
       print('C')
   elif score >= GRADE_D:
       print('D')
   else:
       print('F')
except ValueError:
   print('Error: Please enter a numeric input.')
The program uses try and except blocks to handle non-numeric inputs gracefully, outputting an error message in such cases. Depending on the score entered by the user, the appropriate grade is printed using comparison operations against the named constants defining grade thresholds.

There is no reason to put comments in our code since we knew what we were doing when we wrote it. TRUE

Answers

Answer:

False: There are reasons to put comments in our code. We should have the habit of that.

Explanation:

sometimes when we start to debug our program due to some error in execution, we don't recognize properly which code we have written for what purpose.if we distribute the code to others as a team, others get the intention of our code more clearly due to comments.The code can be reused taking it's sections to form an other program, where the comments has a vital role.
Other Questions
At one instant, a 19.0-kg sled is moving over a horizontal surface of snow at 4.50 m/s. After 7.80 s has elapsed, the sled stops. Use a momentum approach to find the magnitude of the average friction force acting on the sled while it was moving. A student wanted to look at germination of five different seeds in vermiculite (a soil additive). He planted the seeds in identical containers and left them together in full sunlight. He gave each seed the same amount of water and charted the germination of each seed type. What is the independent variable in this experiment? (a) vermiculite (b) germination rate (c) seed type (d) light (e) amounts of water For a line on a graph to represent an object increasing its speed, the line must showA) an increasingly steeper slope B) a negative slopeC) a positive slope that is becoming more horizontal D) a positive slope when combined with alcohol some over the counter drugs can: 19. x + x = 6the grafFactors:Solution(s): plz help me plz plz plz What is the range of the given function?{(-2, 0), (-4,-3), (2, -9), (0,5), (-5, 7)}{x|x = -5, -4,-2, 0, 2){yly = -9, -3, 0,5,7){x|x= -9,-5, 4, -3, -2, 0,2 5,7}{yly = -9, -5, -4 -3 -2,0, 2, 5, 7} which species biological calssification translates to the goddess of hairy shellfish and was first discovered in the pacific ocean in 2005 convert -3 degree to farenheit A NiCd battery uses nickel and cadmium to produce a potential difference. Using these equations, answer the following questions. I. 2NiO(OH) (s) + 2H 2O (l) + 2 e - 2Ni(OH) 2 (s) + 2 OH (aq) II. Cd (s) + 2OH (aq) Cd(OH) 2 (s) + 2e III. Cd (s) + 2NiO(OH) (s) + 2 H 2O (l) 2 Ni(OH) 2 (s) + Cd(OH) 2 (s) Which equation represents the whole chemical reaction within the galvanic cell? I II III I and II What value of b will cause the system to have an infinitenumber of solutions?= 6x b3 + 1/2y=-3a) 2b) 4c)6d)8 Cavendish prepared hydrogen in 1766 by the novel method of passing steam through a red-hot gun barrel: 4H2 O(g) + 3Fe(s) Fe3 O4 (s) + 4H2 (g) (a) Outline the steps necessary to answer the following question: What volume of H2 at a pressure of 745 torr and a temperature of 20 C can be prepared from the reaction of 15.O g of H2O? (b) Answer the question. In 1789, the French nobility tried tooutvote the Third Estate. The ThirdEstate then established the NationalAssembly. What are these events anexample of?A.CausationB.Correlation The function whose graph is shown below has the following characteristics.Two relative minimaTwo relative maximaTrueFalse Which is equivalent to (10)^(3/4)x? Iridium Corp. has spent $ 3.2 billion over the past decade developing a satellite-based telecommunication system. It is currently trying to decide whether to spend an additional $ 352 million on the project. The firm expects that this outlay will finish the project and will generate cash flow of $ 15.1 million per year over the next 5 years. A competitor has offered $ 460 million for the satellites already in orbit. Classify the firm's outlays as sunk costs or opportunity costs, and specify the incremental cash flows. A uniform plank is 8-m long and weighs 99 N. It is balanced on a sawhorse at its center. An additional 182 N weight is now placed on the left end of the plank. To keep the plank balanced, it must be moved what distance (in m) to the right? Round your answer to the nearest tenth. Chris is about to do an experiment to measure the density of water at several temperatures. His teacher has him prepare and sign a safety contract before beginning the experiment. Which item is most likely part of the safety contract? We want to form a committee consisting of 3 men and 3 women, from a group of 8 women and 6 men. How many possible ways are there to form the committee if: After inserting (or deleting) a node from an AVL tree, the resulting binary tree does not have to be an AVL tree.TrueFalse