Retroviruses and double-stranded DNA viruses are the groups most likely to be oncogenic. Oncogenic viruses are viruses that can cause cancer in humans and animals. Examples include human papillomaviruses.
Give examples of two zoonotic diseases. Explain how these zoonotic d.pdfpoblettesedanoree498
Give examples of two zoonotic diseases. Explain how these zoonotic diseases can be transmitted.
Discuss the impact of malaria on environmental health. Provide one example of the economic
impact this disease has on the developing world.
Describe how vectors play a role in the transmission of disease.
Give an example of an emerging disease and another example of a re-emerging disease.
Solution
Major modern diseases such as
1. Ebola virus disease, 2 .Salmonellosis and 3 influenza .
1.Ebola virus disease, :
It also called Ebola hemorrhagic fever (EHF) or just Ebola, is a viral hemorrhagic fever of
people and different primates brought about by ebolaviruses.
Signs and indications ordinarily begin between two days and three weeks in the wake of getting
the infection with a fever, sore throat, solid torment, and migraines.
At that point, spewing, looseness of the bowels and rash typically take after, with diminished
capacity of the liver and kidneys.
2.salmonellosis
It is a disease caused by the Salmonella microscopic organisms.
The vast majority with salmonellosis create loose bowels, fever, heaving, and stomach issues 12
to 72 hours after disease.
Much of the time, the disease endures four to seven days, and a great many people recuperate
without treatment i
Transmission :Sullied nourishment, frequently having no bizarre look or smell
Poor kitchen cleanliness, particularly hazardous in institutional kitchens and eateries since this
can prompt to a huge flare-up .
Discharges from either wiped out or tainted yet clearly clinically sound individuals
Contaminated surface water and standing water, (for example, in shower hoses or unused water
distributors)
and
3 influenza ..
Create the variables, and methods needed for this classA DicePlay.pdfpoblettesedanoree498
Create the variables, and methods needed for this class:
A DicePlayer is a class that represents the player in a Craps game. A DicePlayer is a data class.
The data we need to manage (the fields or class variables) are the players name and how much
money the player has to bet.
Methods are needed to manage this data.
Solution
import java.util.Scanner; // inporting required packages
class DicePlayer
{
private String name; // creating requried variables
private double cash;
Scanner sc=new Scanner(System.in); // scanner variable to take i/p\'s
public void setName()
{
System.out.println(\"Enter the name of the player\ \");
name=sc.next(); // taking player name
}
public void setCash ()
{
System.out.println(\"Give the amount on the hand\ \");
cash=sc.nextDouble(); // taking cash
}
public String getName()
{
return name; // getting name when needed
}
public double getCash()
{
return cash; // getting cash when needed
}
public boolean addCash()
{
double add;
System.out.println(\"Give the amount to add\ \");
add=sc.nextInt();
if (add>0) // checking the taken value is non-negative
{
cash=cash+add; // if yes add it to cash
return true;
}
else
return false; // else retrun false
}
public boolean subCash()
{
double sub;
System.out.println(\"Give the amount to sub\ \");
sub=sc.nextInt();
if (sub>0 && sub.
Describe different flow control valves with figures. Include referenc.pdfpoblettesedanoree498
Describe different flow control valves with figures. Include references for the material and
figures.
Solution
DIFFERENT TYPES OF FLOW CONTROL VALVES
1. BALL VALVE
A ball valve is a form of quarter-turn valve which uses a hollow, perforated and pivoting ball to
control flow through it. It is open when the ball\'s hole is in line with the flow and closed when it
is pivoted 90-degrees by the valve handle. The handle lies flat in alignment with the flow when
open, and is perpendicular to it when closed, making for easy visual confirmation of the valve\'s
status.
Ball valves are durable, performing well after many cycles, and reliable, closing securely even
after long periods of disuse. These qualities make them an excellent choice for shutoff and
control applications, where they are often preferred to gates and globe valves, but they lack their
fine control in throttling applications.
The ball valve\'s ease of operation, repair, and versatility lend it to extensive industrial use,
supporting pressures up to 1000 bar and temperatures up to 752 °F (500 °C), depending on
design and materials used. Sizes typically range from 0.2 to 48 inches (0.5 cm to 121 cm). One
disadvantage of a ball valve is that they trap water in the center cavity while in the closed
position. In the event of a freeze, the sides can crack due to expansion of ice forming. Some
means of insulation or heat tape in this situation will usually prevent damage. Another option for
cold climates is the \"freeze tolerant ball valve\". This style of ball valve incorporates a freeze
plug in the side so in the event of a freeze up, the freeze plug ruptures, (acts as a sacrificial disk),
thus making for an easy repair. Now instead of replacing the whole valve, just screw in a new
freeze plug.
2.GATE VALVE
A gate valve, also known as a sluice valve, is a valve which opens by lifting a round or
rectangular gate/wedge out of the path of the fluid. The distinct feature of a gate valve is the
sealing surfaces between the gate and seats are planar, so gate valves are often used when a
straight-line flow of fluid and minimum restriction is desired. The gate faces can be parallel, but
are most commonly wedge-shaped. Gate valves are primarily used to permit or prevent the flow
of liquids, but typical gate valves shouldn\'t be used for regulating flow, unless they are
specifically designed for that purpose. Because of their ability to cut through liquids, gate valves
are often used in the petroleum industry. For extremely thick fluids, a specialty valve often
known as a knife gate valve is used to cut through the liquid. On opening the gate valve, the flow
path is enlarged in a highly nonlinear manner with respect to percent of opening. This means that
flow rate does not change evenly with stem travel. Also, a partially open gate tends to vibrate
from the fluid flow. Most of the flow change occurs near shutoff with a relatively high fluid
velocity causing gate and seat wear and eventual leakage if u.
Consider a sample with data values of 10, 20, 12, 17, and 16.Compute.pdfpoblettesedanoree498
Consider a sample with data values of 10, 20, 12, 17, and 16.Compute the z-score for each of the
five observations (to2 decimals).
Observed valuez-score1020121716
Solution
mean = (10+20+12+17+16)/5=15
standard deviation = 4 (based on the data)
Z-score = (X-mean)/standard deviationObserved ValueZ-score10(10-15)/4 =-1.2520(20-
15)/4=1.2512(12-15)/4=-0.7517(17-15)/4=0.516(16-15)/4=0.25.
Compare and contrast transmit and receive diversity. Describe how ea.pdfpoblettesedanoree498
Compare and contrast transmit and receive diversity. Describe how each diversity type lead to an
improvement in system performance.
Solution
Diversity refers to a technique for improving the transmission of a signal, by receiving and
processing multiple versions of the same transmitted signal. The multiple versions can be the
result of signals following different propagation paths, being transmitted at different times or
frequencies. In Transmit diversity, Spatial diversity is introduced into the signal by transmitting
through multiple antennas. The antennas are spaced far enough so that the signals emanating
from them can be assumed to undergo independent fading. In addition to diversity gain, antenna
gain can also be incorporated through channel state feedback. TD can improve the receiver
performance in the presence of flat fading. It reduces impact of fading by offering mutliple
copies of the digitally modulated waveform at the receiver, where the chance that all copies are
simultaneously in a fade is very small. In receiver diversity, the use of diversity at receiver
needs combining the outputs of statistically independent fading channels, in accordance with a
criterion that leads to improved receiver performance. Several techniques have been studied for
diversity combining. Some of these techniques are selection combining, maximal ratio, equal
gain and square law combining. When using diversity transmission and reception, the amount of
received signal improvement depends on the independence of the fading characteristics of the
signal as well as circuit outages and failures..
C++ Doubly-Linked ListsThe goal of the exercise is to implement a.pdfpoblettesedanoree498
C++: Doubly-Linked Lists
The goal of the exercise is to implement a class List of doubly- linked lists.
My goal is to implement the class in a file doubly-linked.cpp.
The class List implements lists using the following structures for list ele- ments:
struct Node { int val ;
Node next;
Node prev; };
Each Node contains a value (an integer) and two pointers: one meant to point to the next element
of the list and one meant to point to the previous element in the list. The class provides the
following methods that you need to implement:
• A constructor and a destructor, with no arguments;
• void insert(int n): insert an integer at the end of the list;
• void reverse(): reverse the list;
• void print(): print the list to cout in the same format as the input (i.e. integers separated by
spaces);
doubly-linked.h
#ifndef __dll__
#define __dll__
#include
using namespace std;
// Basic structure to store elements of a list
struct Node {
int val; // contains the value
Node * next; // pointer to the next element in the list
Node * prev; // pointer to the previous element in the list
};
// Class List
class List {
public:
List(void); // Constructor
~List(void); // Destructor
void insert(int n); // This should insert n in the list
void reverse(void); // This should reverse the list
void print(void); // This shoiuld print the list
private:
Node * first; // Pointer to the first (if any) element in the list
};
#endif
main.cpp
#include
#include \"doubly-linked.h\"
using namespace std;
int main(void){
List l;
int n;
while(cin >> n){
l.insert(n);
}
// Print list as read from cin
l.print();
// Reverse the list and print it
l.reverse();
l.print();
// Reverse again and print it
l.reverse();
l.print();
return 0;
}
Solution
#include
using namespace std;
/* Linked list structure */
struct list {
struct list *prev;
int data;
struct list *next;
} *node = NULL, *first = NULL, *last = NULL, *node1 = NULL, *node2 = NULL;
class linkedlist {
public:
/* Function for create/insert node at the beginning of Linked list */
void insrt_frnt() {
list *addBeg = new list;
cout << \"Enter value for the node:\" << endl;
cin >> addBeg->data;
if(first == NULL) {
addBeg->prev = NULL;
addBeg->next = NULL;
first = addBeg;
last = addBeg;
cout << \"Linked list Created!\" << endl;
}
else {
addBeg->prev = NULL;
first->prev = addBeg;
addBeg->next = first;
first = addBeg;
cout << \"Data Inserted at the beginning of the Linked list!\" << endl;
}
}
/* Function for create/insert node at the end of Linked list */
void insrt_end() {
list *addEnd = new list;
cout << \"Enter value for the node:\" << endl;
cin >> addEnd->data;
if(first == NULL) {
addEnd->prev = NULL;
addEnd->next = NULL;
first = addEnd;
last = addEnd;
cout << \"Linked list Created!\" << endl;
}
else {
addEnd->next = NULL;
last->next = addEnd;
addEnd->prev = last;
last = addEnd;
cout << \"Data Inserted at the end of the Linked list!\" << endl;
}
}
/* Function for Display Linked list */
void display() {
node = first;
cout << \"List of data in L.
Blood in the femoral artery will flow into what artery next Bl.pdfpoblettesedanoree498
Blood in the femoral artery will flow into what artery next?
Blood in the femoral artery will flow into what artery next?
Solution
Answer: popliteal artery
The popliteal artery branches off from the femoral artery. It is located in the knee and the back of
the leg. Its courses near the adductor canal and the adductor hiatus, distinctive open areas inside
the thigh. At its far end, it splits into the anterior and posterior tibial arteries..
Assume that 96 of ticket holders show up for an airline flight. If .pdfpoblettesedanoree498
Assume that 96% of ticket holders show up for an airline flight. If a plane seats 200 people, how
many tickets should be sold to make the chance of an overbooked flight (more ticket holders
show up for a flight than there are seats available) is at most 10%.
Solution
Say no. of tickets booked = x
Now only 0.96x will turn up
No. of seats = 200
Now these 0.96x people should get a seat with 90% probability
200 / (0.96x) >=0.9
200/0.864 >= x
x <=231.48
x = 231
Airline will make 231 reservations.
Give examples of two zoonotic diseases. Explain how these zoonotic d.pdfpoblettesedanoree498
Give examples of two zoonotic diseases. Explain how these zoonotic diseases can be transmitted.
Discuss the impact of malaria on environmental health. Provide one example of the economic
impact this disease has on the developing world.
Describe how vectors play a role in the transmission of disease.
Give an example of an emerging disease and another example of a re-emerging disease.
Solution
Major modern diseases such as
1. Ebola virus disease, 2 .Salmonellosis and 3 influenza .
1.Ebola virus disease, :
It also called Ebola hemorrhagic fever (EHF) or just Ebola, is a viral hemorrhagic fever of
people and different primates brought about by ebolaviruses.
Signs and indications ordinarily begin between two days and three weeks in the wake of getting
the infection with a fever, sore throat, solid torment, and migraines.
At that point, spewing, looseness of the bowels and rash typically take after, with diminished
capacity of the liver and kidneys.
2.salmonellosis
It is a disease caused by the Salmonella microscopic organisms.
The vast majority with salmonellosis create loose bowels, fever, heaving, and stomach issues 12
to 72 hours after disease.
Much of the time, the disease endures four to seven days, and a great many people recuperate
without treatment i
Transmission :Sullied nourishment, frequently having no bizarre look or smell
Poor kitchen cleanliness, particularly hazardous in institutional kitchens and eateries since this
can prompt to a huge flare-up .
Discharges from either wiped out or tainted yet clearly clinically sound individuals
Contaminated surface water and standing water, (for example, in shower hoses or unused water
distributors)
and
3 influenza ..
Create the variables, and methods needed for this classA DicePlay.pdfpoblettesedanoree498
Create the variables, and methods needed for this class:
A DicePlayer is a class that represents the player in a Craps game. A DicePlayer is a data class.
The data we need to manage (the fields or class variables) are the players name and how much
money the player has to bet.
Methods are needed to manage this data.
Solution
import java.util.Scanner; // inporting required packages
class DicePlayer
{
private String name; // creating requried variables
private double cash;
Scanner sc=new Scanner(System.in); // scanner variable to take i/p\'s
public void setName()
{
System.out.println(\"Enter the name of the player\ \");
name=sc.next(); // taking player name
}
public void setCash ()
{
System.out.println(\"Give the amount on the hand\ \");
cash=sc.nextDouble(); // taking cash
}
public String getName()
{
return name; // getting name when needed
}
public double getCash()
{
return cash; // getting cash when needed
}
public boolean addCash()
{
double add;
System.out.println(\"Give the amount to add\ \");
add=sc.nextInt();
if (add>0) // checking the taken value is non-negative
{
cash=cash+add; // if yes add it to cash
return true;
}
else
return false; // else retrun false
}
public boolean subCash()
{
double sub;
System.out.println(\"Give the amount to sub\ \");
sub=sc.nextInt();
if (sub>0 && sub.
Describe different flow control valves with figures. Include referenc.pdfpoblettesedanoree498
Describe different flow control valves with figures. Include references for the material and
figures.
Solution
DIFFERENT TYPES OF FLOW CONTROL VALVES
1. BALL VALVE
A ball valve is a form of quarter-turn valve which uses a hollow, perforated and pivoting ball to
control flow through it. It is open when the ball\'s hole is in line with the flow and closed when it
is pivoted 90-degrees by the valve handle. The handle lies flat in alignment with the flow when
open, and is perpendicular to it when closed, making for easy visual confirmation of the valve\'s
status.
Ball valves are durable, performing well after many cycles, and reliable, closing securely even
after long periods of disuse. These qualities make them an excellent choice for shutoff and
control applications, where they are often preferred to gates and globe valves, but they lack their
fine control in throttling applications.
The ball valve\'s ease of operation, repair, and versatility lend it to extensive industrial use,
supporting pressures up to 1000 bar and temperatures up to 752 °F (500 °C), depending on
design and materials used. Sizes typically range from 0.2 to 48 inches (0.5 cm to 121 cm). One
disadvantage of a ball valve is that they trap water in the center cavity while in the closed
position. In the event of a freeze, the sides can crack due to expansion of ice forming. Some
means of insulation or heat tape in this situation will usually prevent damage. Another option for
cold climates is the \"freeze tolerant ball valve\". This style of ball valve incorporates a freeze
plug in the side so in the event of a freeze up, the freeze plug ruptures, (acts as a sacrificial disk),
thus making for an easy repair. Now instead of replacing the whole valve, just screw in a new
freeze plug.
2.GATE VALVE
A gate valve, also known as a sluice valve, is a valve which opens by lifting a round or
rectangular gate/wedge out of the path of the fluid. The distinct feature of a gate valve is the
sealing surfaces between the gate and seats are planar, so gate valves are often used when a
straight-line flow of fluid and minimum restriction is desired. The gate faces can be parallel, but
are most commonly wedge-shaped. Gate valves are primarily used to permit or prevent the flow
of liquids, but typical gate valves shouldn\'t be used for regulating flow, unless they are
specifically designed for that purpose. Because of their ability to cut through liquids, gate valves
are often used in the petroleum industry. For extremely thick fluids, a specialty valve often
known as a knife gate valve is used to cut through the liquid. On opening the gate valve, the flow
path is enlarged in a highly nonlinear manner with respect to percent of opening. This means that
flow rate does not change evenly with stem travel. Also, a partially open gate tends to vibrate
from the fluid flow. Most of the flow change occurs near shutoff with a relatively high fluid
velocity causing gate and seat wear and eventual leakage if u.
Consider a sample with data values of 10, 20, 12, 17, and 16.Compute.pdfpoblettesedanoree498
Consider a sample with data values of 10, 20, 12, 17, and 16.Compute the z-score for each of the
five observations (to2 decimals).
Observed valuez-score1020121716
Solution
mean = (10+20+12+17+16)/5=15
standard deviation = 4 (based on the data)
Z-score = (X-mean)/standard deviationObserved ValueZ-score10(10-15)/4 =-1.2520(20-
15)/4=1.2512(12-15)/4=-0.7517(17-15)/4=0.516(16-15)/4=0.25.
Compare and contrast transmit and receive diversity. Describe how ea.pdfpoblettesedanoree498
Compare and contrast transmit and receive diversity. Describe how each diversity type lead to an
improvement in system performance.
Solution
Diversity refers to a technique for improving the transmission of a signal, by receiving and
processing multiple versions of the same transmitted signal. The multiple versions can be the
result of signals following different propagation paths, being transmitted at different times or
frequencies. In Transmit diversity, Spatial diversity is introduced into the signal by transmitting
through multiple antennas. The antennas are spaced far enough so that the signals emanating
from them can be assumed to undergo independent fading. In addition to diversity gain, antenna
gain can also be incorporated through channel state feedback. TD can improve the receiver
performance in the presence of flat fading. It reduces impact of fading by offering mutliple
copies of the digitally modulated waveform at the receiver, where the chance that all copies are
simultaneously in a fade is very small. In receiver diversity, the use of diversity at receiver
needs combining the outputs of statistically independent fading channels, in accordance with a
criterion that leads to improved receiver performance. Several techniques have been studied for
diversity combining. Some of these techniques are selection combining, maximal ratio, equal
gain and square law combining. When using diversity transmission and reception, the amount of
received signal improvement depends on the independence of the fading characteristics of the
signal as well as circuit outages and failures..
C++ Doubly-Linked ListsThe goal of the exercise is to implement a.pdfpoblettesedanoree498
C++: Doubly-Linked Lists
The goal of the exercise is to implement a class List of doubly- linked lists.
My goal is to implement the class in a file doubly-linked.cpp.
The class List implements lists using the following structures for list ele- ments:
struct Node { int val ;
Node next;
Node prev; };
Each Node contains a value (an integer) and two pointers: one meant to point to the next element
of the list and one meant to point to the previous element in the list. The class provides the
following methods that you need to implement:
• A constructor and a destructor, with no arguments;
• void insert(int n): insert an integer at the end of the list;
• void reverse(): reverse the list;
• void print(): print the list to cout in the same format as the input (i.e. integers separated by
spaces);
doubly-linked.h
#ifndef __dll__
#define __dll__
#include
using namespace std;
// Basic structure to store elements of a list
struct Node {
int val; // contains the value
Node * next; // pointer to the next element in the list
Node * prev; // pointer to the previous element in the list
};
// Class List
class List {
public:
List(void); // Constructor
~List(void); // Destructor
void insert(int n); // This should insert n in the list
void reverse(void); // This should reverse the list
void print(void); // This shoiuld print the list
private:
Node * first; // Pointer to the first (if any) element in the list
};
#endif
main.cpp
#include
#include \"doubly-linked.h\"
using namespace std;
int main(void){
List l;
int n;
while(cin >> n){
l.insert(n);
}
// Print list as read from cin
l.print();
// Reverse the list and print it
l.reverse();
l.print();
// Reverse again and print it
l.reverse();
l.print();
return 0;
}
Solution
#include
using namespace std;
/* Linked list structure */
struct list {
struct list *prev;
int data;
struct list *next;
} *node = NULL, *first = NULL, *last = NULL, *node1 = NULL, *node2 = NULL;
class linkedlist {
public:
/* Function for create/insert node at the beginning of Linked list */
void insrt_frnt() {
list *addBeg = new list;
cout << \"Enter value for the node:\" << endl;
cin >> addBeg->data;
if(first == NULL) {
addBeg->prev = NULL;
addBeg->next = NULL;
first = addBeg;
last = addBeg;
cout << \"Linked list Created!\" << endl;
}
else {
addBeg->prev = NULL;
first->prev = addBeg;
addBeg->next = first;
first = addBeg;
cout << \"Data Inserted at the beginning of the Linked list!\" << endl;
}
}
/* Function for create/insert node at the end of Linked list */
void insrt_end() {
list *addEnd = new list;
cout << \"Enter value for the node:\" << endl;
cin >> addEnd->data;
if(first == NULL) {
addEnd->prev = NULL;
addEnd->next = NULL;
first = addEnd;
last = addEnd;
cout << \"Linked list Created!\" << endl;
}
else {
addEnd->next = NULL;
last->next = addEnd;
addEnd->prev = last;
last = addEnd;
cout << \"Data Inserted at the end of the Linked list!\" << endl;
}
}
/* Function for Display Linked list */
void display() {
node = first;
cout << \"List of data in L.
Blood in the femoral artery will flow into what artery next Bl.pdfpoblettesedanoree498
Blood in the femoral artery will flow into what artery next?
Blood in the femoral artery will flow into what artery next?
Solution
Answer: popliteal artery
The popliteal artery branches off from the femoral artery. It is located in the knee and the back of
the leg. Its courses near the adductor canal and the adductor hiatus, distinctive open areas inside
the thigh. At its far end, it splits into the anterior and posterior tibial arteries..
Assume that 96 of ticket holders show up for an airline flight. If .pdfpoblettesedanoree498
Assume that 96% of ticket holders show up for an airline flight. If a plane seats 200 people, how
many tickets should be sold to make the chance of an overbooked flight (more ticket holders
show up for a flight than there are seats available) is at most 10%.
Solution
Say no. of tickets booked = x
Now only 0.96x will turn up
No. of seats = 200
Now these 0.96x people should get a seat with 90% probability
200 / (0.96x) >=0.9
200/0.864 >= x
x <=231.48
x = 231
Airline will make 231 reservations.
Although some male crab spiders find and mate with adult female spide.pdfpoblettesedanoree498
Although some male crab spiders find and mate with adult female spiders, others that find
immature females remain with them although the sub adult females are incapable of mating until
they become adults. This behavior would puzzle most evolutionary biologists because: a. The
genetic basis for this behavior would be very difficult to determine. b. Mating is instinctive in
spiders and therefore all males should behave the same, either mating with adult females only or
guarding sub adult females only. c. Males that guard sub adults cannot use the time to find
receptive females. d. One would think that immature female spiders should accept and store
sperm from males in order to permit good female-finding males to have time to find many mates.
Solution
The answer to this concept is ans (4)..one the female immature spider should store the sperms in
them for good female - findings males to have time to find many other...
7. At October 1, Smithson Enterprises reported owners equity of $.pdfpoblettesedanoree498
7. At October 1, Smithson Enterprises reported owner\'s equity of $35,000. During October no
additional investments were made and the company earned net income of $4.000. If owner\'s
equity at October 31 totals $32,000, what amount of owner d during the month? A) S0 rawings
was m B) $1.000
Solution
Amount of owner drawings were made during the month:
= $35,000 + $4,000 - $32,000
= $7,000.
5. A repeated measures analysis of variane shows, F(4,20)=14.56. How.pdfpoblettesedanoree498
5. A repeated measures analysis of variane shows, F(4,20)=14.56. How many repeated measures
were there? How many subjects?
Solution
5.
There are
k = df1 + 1 = 4 + 1 = 5 repeated measures [ANSWER]
********************
Meanwhile, there are
n = df2/(k-1) + 1
subjects, so,
n = 20/(5-1) + 1 = 6 subjects [ANSWER].
–PLS write program in c++ thanxLinked List Sorting and Reversing.pdfpoblettesedanoree498
–PLS write program in c++ thanx
Linked List Sorting and Reversing
Write a C++ using your own linked list class to manage a list of string elements. Besides the
basic operations expected of a linked list (add an element, remove an element, check for empty
list, report size (number) of elements in the list, and print out the content of the list), the linked
list class also needs to have a method called sort() and a method called reverse() the manipulate
the string elements. The sort method rearranges the elements in the list so they are sorted in
alphabetical order. The reverse method reverses the order of the elements of the list. Do NOT use
recursion to implement either of these operations. pls write program in c++ thanx
Solution
#include
#include
using namespace std;
class Node{ //class node
public:
string data;
Node* next;
void SetData(string aData) { data = aData; };
void SetNext(Node* aNext) { next = aNext; };
};
class List{ //class list
Node *head;
public:
List() { head = NULL; };
void addElement(string data);
void removeElement(string data);
int isEmpty(Node* temp);
int size();
void print();
void sort();
void reverse();
};
int List::isEmpty(Node* temp){ //method to check whether list is empty or not
if(temp!=NULL)
return 1;
else
return 0;
}
void List::addElement(string data){ //method to add
Node* newNode=new Node();
newNode->SetData(data);
newNode->SetNext(NULL);
Node* temp=head;
if(temp!=NULL)
{
while(temp->next!=NULL)
{temp=temp->next;}
temp->next=newNode;
}
else
head=newNode;
}
void List::removeElement(string data){ //method for delete
Node* temp=head;
Node *prev=head;
if(isEmpty(temp)==1)
{//prev=temp;
while(temp!=NULL)
{
if(temp->data==data)
{prev->next=temp->next;
temp->next=NULL;
}
else
{prev=temp;
temp=temp->next;
}
}
}
else
cout<<\"Nothing to delete as linked list is empty \"<next;
}
}
return count;
}
void List::print(){ //method for print
Node* temp=head;
if(isEmpty(temp)==1){
while(temp!=NULL)
{
cout<data<<\" \";
temp=temp->next;
}
}
}
int main()
{
List list;
list.addElement(\"anshu\");
list.addElement(\"anurag\");
list.addElement(\"how\");
list.addElement(\"are\");
list.addElement(\"you?\");
int count=list.size();
cout<<\"size of the linked list= \"<.
Write a Java program that calculates the distance between two points.pdfpoblettesedanoree498
Write a Java program that calculates the distance between two points when a user types the
coordinates.
Solution
DistBetPoints.java
import java.util.Scanner;//package for keyboard inputting
//distance = square root of [(a2-a1)squared + (b2-b1)squared]
public class DistBetPoints
{//main class
static double distance(double a1, double b1, double a2, double b2)
{
return Math.sqrt((a2-a1)*(a2-a1) + (b2-b1)*(b2-b1));
}
public static void main(String[] args)
{ //main function
double a2, a1, b2, b1;
double distance;
Scanner scan = new Scanner (System.in);
System.out.println(\"Enter the x coordinate for point 1: \");
a1 = scan.nextDouble();//keyboard inputting
System.out.println(\"Enter the y coordinate for point 1: \");
b1 = scan.nextDouble();//keyboard inputting
System.out.println(\"Enter the x coordinate for point 2: \");
a2 = scan.nextDouble();//keyboard inputting
System.out.println(\"Enter the y coordinate for point 2: \");
b2 = scan.nextDouble();//keyboard inputting
distance = distance(a1,b1,a2,b2);//calling function
System.out.println(\"The distance between the two points is \" + distance + \" .\");
}
}
output
Enter the x coordinate for point 1:
0
Enter the y coordinate for point 1:
0
Enter the x coordinate for point 2:
2
Enter the y coordinate for point 2:
2
The distance between the two points is 2.8284271247461903 ..
Which of the following light waves has the most amount of energyH.pdfpoblettesedanoree498
Which of the following light waves has the most amount of energy?
High frequency
Low frequency
long wavelength
light speed
Solution
At low frequency ,light waves show High amount of energy.
The different types of raditions present in light energy ,found in the photons. Photons are the
pockets of light energy. Radio waves have photons with low energy,microwave photons have
little more energy than radio waves, ..
What is the wobble position What is the consequence of its pres.pdfpoblettesedanoree498
What is the \'wobble\' position? What is the consequence of its presence?
Solution
Answer : During intercation between mRNA/codons and tRNA/anticodons, The third base of the
codon and the first base of the anticodon constitutes the wobble position.
Wobble Allows Some tRNAs to Recognize More than One Codon. This is due to the fact that
strict watson and crick base pairing rules applies only to the first two bases of the codon where as
third base tRNA can recognise more than one codon..
What is an advantage of having homologous chromosomes (compared to h.pdfpoblettesedanoree498
What is an advantage of having homologous chromosomes (compared to haploid cells that only
have a single copy of each gene)?
Solution
Humans, including many other organisms contain a double set of chromosomes in their genetic
material. The purpose and benefits of having a homologus chromosomes can be discussed as
below:
Thus, the above given explanations represent the benefits of having a homologous pair of
chromosomes in diploid organisms over haploids..
Unlike the biological species concept, the morphospecies concept rel.pdfpoblettesedanoree498
Unlike the biological species concept, the morphospecies concept relies on:
a. offspring.
phenotype.
physiology.
behavior.
a. offspring.b.
phenotype.c.
physiology.d.
behavior.
Solution
B). Phenotype
Biological species concept (BSC): According to the biological species concept, a biological
species is the one in which, organisms can have interbreeding and produce the viable offspring.
In contrast, the morphospecies concept relies on phenotype. The species are grouped according
to the similarities in their morphological features..
1.) Which macronutrient do we consume in large amounts, but which we.pdfpoblettesedanoree498
1.) Which macronutrient do we consume in large amounts, but which we don\'t use for energy
stores?
a.) Lipid
b.) Protein
c.) Carbohydrate
d.) Minerals
2.) There are no essential _________.
a.) amino acids
b.) fatty acids
c.) carbohydrates
d.) minerals
e.) vitamins
Solution
1). b). Protein
Proteins are taken in large quantities but are not used as direct energy stores. The primary
function of proteins is not energy production, they are the structural elements of muscles and
many other cellular structures. In the absence of carbohydrates and lipids, proteins are
breakdown to derive energy.
We generally take carbohydrates in higher quantities, excess glucose is stored as glycogen. But
glycogen is not the long term energy storage because glucose is water soluble. Lipids are water-
insoluble and they serve as long-term energy stores.
2). c.) carbohydrates
Essential nutrients are those that must be taken through food to meet the body\'s metabolic
requirements. No particular carbohydrate is considered essential..
11.1.2 Entered Answer Preview 28 28 128 128 At least one of the an.pdfpoblettesedanoree498
11.1.2 Entered Answer Preview 28 28 1/28 1/28 At least one of the answers above is NOT
correct (1 pt ind an equation for the parabola that has its vertex at the origin and focus F(0,7) f
your answer is in the form r2 Ay, then input here: A 28 if your answer is in the form y E Ar, then
input here A 1/28 Result correct In Correct
Solution
Please see for the given information, we get parabola as x^2=Ay, so x^2=28y is only answer for
this problem..
The systemic circuit delivers oxygenated blood to and returns blood t.pdfpoblettesedanoree498
The systemic circuit delivers oxygenated blood to and returns blood to the body organs, night
atrium lungs, right atrium lungs: left atrium body organs: left atrium lungs, right ventricle All of
the vessel names below refer to both an artery and a vein except femoral. gonadal. radial.
axillary. basilica. The common iliac artery branches off of the inferior vena cava. abdominal
aorta thoracic aorta. celiac trunk. pulmonary trunk. After ending the aim. the axillary artery
becomes the artery. radial ulnar brachial subclavian digital the vein is a superficial vein that
ascends along the medial side of the forearm. radial ulnar cephalic basilica brachial
Solution
Answers
4. A body organs , right atrium
System circulation carries oxygenated blood from the left ventricle , through the arteries , to the
capillaries in the tissues of the body . From the tissue capillaries the deoxygenated blood returns
through a system of veins to the right atrium of the heart .
5. E. basilic
6. B . Abdominal aorta
The Abdominal aorta divides to form the common iliac arteries in the lower abdomen , and these
vessels supply blood to the pelvic organs , glutenal region and legs . Each common iliac artery
descends a short distance and divides into an internal and an external branch.
7. C. Brachial
8. D. Basilic
The basilic vein is a large superficial vein of the upper limb that helps drain parts of the hand and
forearm . It originated on the medial (ulnar ) side of the dorsal venous network of the hand and
travels up the Base of the forearm , where it\'s course is generally visible through the skin or it
travels in the subcutaneous fat and fascia lying superficial to the muscle ..
8. Which of the following sentences defines adequately horizontal ge.pdfpoblettesedanoree498
8. Which of the following sentences defines adequately horizontal gene transfer?
a) Exchange of genetic information across species
b) Movement of genetic information via binary fission
c) Exchange of genetic information via sexual reproduction
d) Transmission of genetic information from ancestors to descendants
e) Exchange of genetic information via asexual reproduction
Solution
1. The correct answer is Option A. Horizontal gene transfer is defined as the movement of
genetic material between bacteria other than by descent in which information travels through the
generations as the cell divides. The bacterial species cannot divide sexually so there are other
methods like transformation, conjugation and transduction which are employed for horizontal
gene transfer..
Save 1.13 Quiz Quadrilaterals and Their Properties 1 Pool 3 Question.pdfpoblettesedanoree498
Save 1.13 Quiz: Quadrilaterals and Their Properties 1 Pool 3 Question 3 (1 point) Which group
of quadrilaterals has diagonals that are perpendicular? O all trapezoids O all parallelograms O all
rectangles all rhombuses Save 1.13 Quiz: Quadrilaterals and Their Properties 1 Pool 4
Solution
In Quadrilaterals The Kite, Square and the rhombus have diagnol which are perpendicular, and
squares and kites come from the family of rhombuses.
Therefore the answer is All rhombuses..
Salmonella is closely related to Escherichia. However, Salmonella ca.pdfpoblettesedanoree498
Salmonella is closely related to Escherichia. However, Salmonella can neither be infected by
lambda phage, nor can it be successfully transfected using lambda DNA. Therefore, this
organism is neither a susceptible, nor a permissive host to this virus. Explain the reason for this
failure. Please explain in detail.
Solution
It is true that Salmonella and Escherichia are the gram-negative bacteria but their genetic
architecture is different which causes distinct functional proteins for the specific functional. The
first step required to infect phage to bacteria is binding process, which comprises a precise
interaction between the host cell surface and the virus. However, the virus host interaction
critically differs amongst diverse systems. This can be mediated through various cell surface
receptors and co-receptors depends on specific virus and host. Like, j protein of lambda phage
interact with LamB surface protein of Escherichia coli. The LamB protein is an example of a
porin, also called maltoporin, due to its necessary action for growth on limited maltose. But these
receptors were absent on the surface of salmonella which restrict the lambda phage salmonella
interaction and further transfection of DNA. Few important bacteriophages are there which infect
the salmonella eg. Felix01, podophage P22 and phage epsilon15..
Part A According to theory of natural selection, what factor below co.pdfpoblettesedanoree498
Part A According to theory of natural selection, what factor below contributed to the current
variations in beak sizes of finch species on the Galapagos islands? the O Non-heritable variation
between individual was important for natural selection to work O Genetic drift alowed
beneficialtraits to spreadthroughout the population O Different finch populations needed to
change in order to survive, so benescialnewtrats arose O Finches dispersed to islands where their
beak sizes dosely matched awailable seedsizes O Seeds are a limited resource Submit My
Answers Give Up
Solution
Finches dispersed to the island where thier beak size is closely is closely mathed available seed
size.
larger beak resulted from ability to harvest rare, large seeds.
Part A c. Canis lupus
They also known as the timber wolf or western wolf..
In the context of SELECT subquery types, a is returned when an UPDAT.pdfpoblettesedanoree498
In the context of SELECT subquery types, a is returned when an UPDATE subquery is used.
list of values NULL single value virtual table
Solution
option A
subquery is a SELECT statement written within parentheses and nested inside another statement.
Subqueries can return different types of information:.
In gene therapy, how is the malfunctioning gene replaced No plagari.pdfpoblettesedanoree498
In gene therapy, how is the malfunctioning gene replaced? No plagarism!
Solution
Gene therapy is replacing defective genes with the genes having normal functionality. This
treatment can be done at different stages.Therapy done at earliest stage of life (embyonic stage)
is the most effective as it ensures gene replacement in whole lineage of cells having origin from
therapeutic cell.
Most common tool used for gene therapy are Viruses. These viruses are used as vector to carry
desirable gene. Viruses are disarmed by removal of their harmful genes .Therapeutic gene is
inserted in these viruses.
While inserting therapeutic genes it is ensured that genetic material of viruses that has coding to
control entry into host cells remains intact.
These viruses are then exposed to target cells with malfunctioned genes.These viruses then
transfer desired genes into the target cells.This step can be dne in situ or in vivo depending upon
tissue being treated.
Different types of viruses can be used for different mechanisms of DNA transfer.
Challenges in gene therapy:
1. To ensure right positioning of desirable gene into host cell.
2. Sometimes gene may be over expressed.
3. Wrong position of gene in host cell may trigger changes in expression of DNA in vicinity..
Identify one trend or force in each of the specified microenvironmen.pdfpoblettesedanoree498
Identify one trend or force in each of the specified microenvironments (the company, suppliers,
marketing intermediaries, competitors, publics, and customers) and describe how it would affect
\'your\' company. Example: Current CEO is retiring and the new CEO that has been selected as
the replacement has a different management style; what is the effect on the company?
Solution
The factors of microenvironment:-
1. The competitors- The competitive environment consist of certain basic things which every
firm has to take not of. No company howsoever large it may be does not enjoy monopoly. In the
original business world a company encounters various forms of competition.
For example, a Phillips TV has a competitors as LG, samsung, videocon, sony etc. And the
change in one company\'s policy affects the other in one way or the other.
2. Customers- According to Peter F. drucker, \" there is only one definition of business purpose,
that is to create customer\". The busines enterprise aims to earn profit through serving the
customer demand. It now thinks more in terms of profitable sale rather than more sales volume
for its stake. Today marketing of a fim begins and also ends with the customer.
From the company\'s ponit of view it is always better to have customer from various groups and
legions for that easily sustains demand for the company\'s product.
3. Suppliers:- Regarding the suppliers, the organisation can think of availing the required
material or labour according to its manufacturing programme. It can adopt such a purchase
policy which gives bargaining power to the organisation.
According to Michael Porter, \" the relationship between suppliers and the firms epitomises a
power equation between them. This equation is based on the industry conditions and the exent to
which each of them is dependent on the other.
Suppliers are either individuals, or business houses. They combined together, provide resources
that are needed by the company. Now the company necessarily should go for developing
specifications, searching for potential suppliers, identifying and analysing the suppliers and
thereafter choose those suppliers who offer best mix of quality, delivery, reliability, credit,
warranties and obviously low cost.
4. Public:- Literally word \' public\' refers to people in general. According to philip kotler \" A
public is any group that has an actual or potential interest in or impact on a company\'s ability to
achieve its objectives.\" The environmentalists, consumer protection groups, media persons and
local people are some of the well known examples of publics.
The company has a duty to satisfy the people at large along with competitors and the consumers.
It is an exercise which has a larger impact on the well being of the company for tomorrow\'s stay
and growth. Create goodwill among people, help to get a favourable response for a company.
5. Marketing intermediaries:- Market intermediaries are either individuals or business houses
who come to .
i have a code that runs, but it only lets the player to guess where .pdfpoblettesedanoree498
i have a code that runs, but it only lets the player to guess where the ships are(which is a one
player game with one board). is there a way some one can help turn this game into a player vs
computer game (with two boards one for player and one for computer) Please help me.
BattleShipGame.java
package battleship;
import java.util.ArrayList;
import java.util.Scanner;
public class BattleshipGame {
private Ocean ocean;
private boolean[][] availableSpot;
private Scanner sc;
public BattleshipGame() {
// define a new ocean and a new 2D array to store available coordinates
ocean = new Ocean();
availableSpot = new boolean[10][10];
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++){
availableSpot[i][j] = true;
}
}
}
/**
* prints the game menu and info
* //param select
*/
public void print(int select){
String info;
switch (select) {
case 1: info = \"Welcome to the World of Battleship!\";
break;
case 2: info = \"Enter coordinates to fire: \";
break;
case 3: info = \"Shots fired: \"+ocean.getShotsFired()+\", Ships sunk:
\"+ocean.getShipsSunk();
break;
case 4: info = \"Congratulations! You win!\";
break;
case 99: info = \"Invalid input. Please re-enter:\";
break;
case 100: info = \"--------------------------------------------\";
break;
case 101: info = \"\ ============================================\";
break;
default: info = \"Error selection\";
break;
}
System.out.println(info);
}
/**
* check if the input is valid
* //param input
* //return boolean
*/
public boolean checkValidInput(String input){
ArrayList numList = new ArrayList();
for (int i=0;i<10;i++){
numList.add(\"\"+i);
}
String[] coordinates = input.split(\" \");
//returns false if there are not 2 strings
if (coordinates.length!=2){
return false;
}
//returns false if any of the strings is not a single digit number
for (String str: coordinates){
if (numList.contains(str)==false){
return false;
}
}
//returns false if the coordinates have already been shot at
int row = Integer.parseInt(coordinates[0]);
int column = Integer.parseInt(coordinates[1]);
if (this.availableSpot[row][column]==false){
return false;
}
return true;
}
/**
* get the coordinates to shoot at from the String input
* //param input
* //return int[] coordinates
*/
public int[] getCoordinates(String input){
int[] coordinates = new int[2];
String[] strList = input.split(\" \");
int row = Integer.parseInt(strList[0]);
int column = Integer.parseInt(strList[1]);
coordinates[0] = row;
coordinates[1] = column;
return coordinates;
}
/**
* play the battleship game
*/
public void play(){
print(101);
print(1);
ocean.placeAllShipsRandomly();
boolean isGameOver = ocean.isGameOver();
sc = new Scanner(System.in);
//print the ocean and start the game
ocean.print();
print(3);
while (!isGameOver){
print(2);
String input = sc.nextLine();
//check if input is valid
while (!checkValidInput(input)){
print(99);
input = sc.nextLine();
}
//get coordinates and fire
int[] coordinates = getCoordinates(input);
int row = coordinates[0];
int column = coord.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
Although some male crab spiders find and mate with adult female spide.pdfpoblettesedanoree498
Although some male crab spiders find and mate with adult female spiders, others that find
immature females remain with them although the sub adult females are incapable of mating until
they become adults. This behavior would puzzle most evolutionary biologists because: a. The
genetic basis for this behavior would be very difficult to determine. b. Mating is instinctive in
spiders and therefore all males should behave the same, either mating with adult females only or
guarding sub adult females only. c. Males that guard sub adults cannot use the time to find
receptive females. d. One would think that immature female spiders should accept and store
sperm from males in order to permit good female-finding males to have time to find many mates.
Solution
The answer to this concept is ans (4)..one the female immature spider should store the sperms in
them for good female - findings males to have time to find many other...
7. At October 1, Smithson Enterprises reported owners equity of $.pdfpoblettesedanoree498
7. At October 1, Smithson Enterprises reported owner\'s equity of $35,000. During October no
additional investments were made and the company earned net income of $4.000. If owner\'s
equity at October 31 totals $32,000, what amount of owner d during the month? A) S0 rawings
was m B) $1.000
Solution
Amount of owner drawings were made during the month:
= $35,000 + $4,000 - $32,000
= $7,000.
5. A repeated measures analysis of variane shows, F(4,20)=14.56. How.pdfpoblettesedanoree498
5. A repeated measures analysis of variane shows, F(4,20)=14.56. How many repeated measures
were there? How many subjects?
Solution
5.
There are
k = df1 + 1 = 4 + 1 = 5 repeated measures [ANSWER]
********************
Meanwhile, there are
n = df2/(k-1) + 1
subjects, so,
n = 20/(5-1) + 1 = 6 subjects [ANSWER].
–PLS write program in c++ thanxLinked List Sorting and Reversing.pdfpoblettesedanoree498
–PLS write program in c++ thanx
Linked List Sorting and Reversing
Write a C++ using your own linked list class to manage a list of string elements. Besides the
basic operations expected of a linked list (add an element, remove an element, check for empty
list, report size (number) of elements in the list, and print out the content of the list), the linked
list class also needs to have a method called sort() and a method called reverse() the manipulate
the string elements. The sort method rearranges the elements in the list so they are sorted in
alphabetical order. The reverse method reverses the order of the elements of the list. Do NOT use
recursion to implement either of these operations. pls write program in c++ thanx
Solution
#include
#include
using namespace std;
class Node{ //class node
public:
string data;
Node* next;
void SetData(string aData) { data = aData; };
void SetNext(Node* aNext) { next = aNext; };
};
class List{ //class list
Node *head;
public:
List() { head = NULL; };
void addElement(string data);
void removeElement(string data);
int isEmpty(Node* temp);
int size();
void print();
void sort();
void reverse();
};
int List::isEmpty(Node* temp){ //method to check whether list is empty or not
if(temp!=NULL)
return 1;
else
return 0;
}
void List::addElement(string data){ //method to add
Node* newNode=new Node();
newNode->SetData(data);
newNode->SetNext(NULL);
Node* temp=head;
if(temp!=NULL)
{
while(temp->next!=NULL)
{temp=temp->next;}
temp->next=newNode;
}
else
head=newNode;
}
void List::removeElement(string data){ //method for delete
Node* temp=head;
Node *prev=head;
if(isEmpty(temp)==1)
{//prev=temp;
while(temp!=NULL)
{
if(temp->data==data)
{prev->next=temp->next;
temp->next=NULL;
}
else
{prev=temp;
temp=temp->next;
}
}
}
else
cout<<\"Nothing to delete as linked list is empty \"<next;
}
}
return count;
}
void List::print(){ //method for print
Node* temp=head;
if(isEmpty(temp)==1){
while(temp!=NULL)
{
cout<data<<\" \";
temp=temp->next;
}
}
}
int main()
{
List list;
list.addElement(\"anshu\");
list.addElement(\"anurag\");
list.addElement(\"how\");
list.addElement(\"are\");
list.addElement(\"you?\");
int count=list.size();
cout<<\"size of the linked list= \"<.
Write a Java program that calculates the distance between two points.pdfpoblettesedanoree498
Write a Java program that calculates the distance between two points when a user types the
coordinates.
Solution
DistBetPoints.java
import java.util.Scanner;//package for keyboard inputting
//distance = square root of [(a2-a1)squared + (b2-b1)squared]
public class DistBetPoints
{//main class
static double distance(double a1, double b1, double a2, double b2)
{
return Math.sqrt((a2-a1)*(a2-a1) + (b2-b1)*(b2-b1));
}
public static void main(String[] args)
{ //main function
double a2, a1, b2, b1;
double distance;
Scanner scan = new Scanner (System.in);
System.out.println(\"Enter the x coordinate for point 1: \");
a1 = scan.nextDouble();//keyboard inputting
System.out.println(\"Enter the y coordinate for point 1: \");
b1 = scan.nextDouble();//keyboard inputting
System.out.println(\"Enter the x coordinate for point 2: \");
a2 = scan.nextDouble();//keyboard inputting
System.out.println(\"Enter the y coordinate for point 2: \");
b2 = scan.nextDouble();//keyboard inputting
distance = distance(a1,b1,a2,b2);//calling function
System.out.println(\"The distance between the two points is \" + distance + \" .\");
}
}
output
Enter the x coordinate for point 1:
0
Enter the y coordinate for point 1:
0
Enter the x coordinate for point 2:
2
Enter the y coordinate for point 2:
2
The distance between the two points is 2.8284271247461903 ..
Which of the following light waves has the most amount of energyH.pdfpoblettesedanoree498
Which of the following light waves has the most amount of energy?
High frequency
Low frequency
long wavelength
light speed
Solution
At low frequency ,light waves show High amount of energy.
The different types of raditions present in light energy ,found in the photons. Photons are the
pockets of light energy. Radio waves have photons with low energy,microwave photons have
little more energy than radio waves, ..
What is the wobble position What is the consequence of its pres.pdfpoblettesedanoree498
What is the \'wobble\' position? What is the consequence of its presence?
Solution
Answer : During intercation between mRNA/codons and tRNA/anticodons, The third base of the
codon and the first base of the anticodon constitutes the wobble position.
Wobble Allows Some tRNAs to Recognize More than One Codon. This is due to the fact that
strict watson and crick base pairing rules applies only to the first two bases of the codon where as
third base tRNA can recognise more than one codon..
What is an advantage of having homologous chromosomes (compared to h.pdfpoblettesedanoree498
What is an advantage of having homologous chromosomes (compared to haploid cells that only
have a single copy of each gene)?
Solution
Humans, including many other organisms contain a double set of chromosomes in their genetic
material. The purpose and benefits of having a homologus chromosomes can be discussed as
below:
Thus, the above given explanations represent the benefits of having a homologous pair of
chromosomes in diploid organisms over haploids..
Unlike the biological species concept, the morphospecies concept rel.pdfpoblettesedanoree498
Unlike the biological species concept, the morphospecies concept relies on:
a. offspring.
phenotype.
physiology.
behavior.
a. offspring.b.
phenotype.c.
physiology.d.
behavior.
Solution
B). Phenotype
Biological species concept (BSC): According to the biological species concept, a biological
species is the one in which, organisms can have interbreeding and produce the viable offspring.
In contrast, the morphospecies concept relies on phenotype. The species are grouped according
to the similarities in their morphological features..
1.) Which macronutrient do we consume in large amounts, but which we.pdfpoblettesedanoree498
1.) Which macronutrient do we consume in large amounts, but which we don\'t use for energy
stores?
a.) Lipid
b.) Protein
c.) Carbohydrate
d.) Minerals
2.) There are no essential _________.
a.) amino acids
b.) fatty acids
c.) carbohydrates
d.) minerals
e.) vitamins
Solution
1). b). Protein
Proteins are taken in large quantities but are not used as direct energy stores. The primary
function of proteins is not energy production, they are the structural elements of muscles and
many other cellular structures. In the absence of carbohydrates and lipids, proteins are
breakdown to derive energy.
We generally take carbohydrates in higher quantities, excess glucose is stored as glycogen. But
glycogen is not the long term energy storage because glucose is water soluble. Lipids are water-
insoluble and they serve as long-term energy stores.
2). c.) carbohydrates
Essential nutrients are those that must be taken through food to meet the body\'s metabolic
requirements. No particular carbohydrate is considered essential..
11.1.2 Entered Answer Preview 28 28 128 128 At least one of the an.pdfpoblettesedanoree498
11.1.2 Entered Answer Preview 28 28 1/28 1/28 At least one of the answers above is NOT
correct (1 pt ind an equation for the parabola that has its vertex at the origin and focus F(0,7) f
your answer is in the form r2 Ay, then input here: A 28 if your answer is in the form y E Ar, then
input here A 1/28 Result correct In Correct
Solution
Please see for the given information, we get parabola as x^2=Ay, so x^2=28y is only answer for
this problem..
The systemic circuit delivers oxygenated blood to and returns blood t.pdfpoblettesedanoree498
The systemic circuit delivers oxygenated blood to and returns blood to the body organs, night
atrium lungs, right atrium lungs: left atrium body organs: left atrium lungs, right ventricle All of
the vessel names below refer to both an artery and a vein except femoral. gonadal. radial.
axillary. basilica. The common iliac artery branches off of the inferior vena cava. abdominal
aorta thoracic aorta. celiac trunk. pulmonary trunk. After ending the aim. the axillary artery
becomes the artery. radial ulnar brachial subclavian digital the vein is a superficial vein that
ascends along the medial side of the forearm. radial ulnar cephalic basilica brachial
Solution
Answers
4. A body organs , right atrium
System circulation carries oxygenated blood from the left ventricle , through the arteries , to the
capillaries in the tissues of the body . From the tissue capillaries the deoxygenated blood returns
through a system of veins to the right atrium of the heart .
5. E. basilic
6. B . Abdominal aorta
The Abdominal aorta divides to form the common iliac arteries in the lower abdomen , and these
vessels supply blood to the pelvic organs , glutenal region and legs . Each common iliac artery
descends a short distance and divides into an internal and an external branch.
7. C. Brachial
8. D. Basilic
The basilic vein is a large superficial vein of the upper limb that helps drain parts of the hand and
forearm . It originated on the medial (ulnar ) side of the dorsal venous network of the hand and
travels up the Base of the forearm , where it\'s course is generally visible through the skin or it
travels in the subcutaneous fat and fascia lying superficial to the muscle ..
8. Which of the following sentences defines adequately horizontal ge.pdfpoblettesedanoree498
8. Which of the following sentences defines adequately horizontal gene transfer?
a) Exchange of genetic information across species
b) Movement of genetic information via binary fission
c) Exchange of genetic information via sexual reproduction
d) Transmission of genetic information from ancestors to descendants
e) Exchange of genetic information via asexual reproduction
Solution
1. The correct answer is Option A. Horizontal gene transfer is defined as the movement of
genetic material between bacteria other than by descent in which information travels through the
generations as the cell divides. The bacterial species cannot divide sexually so there are other
methods like transformation, conjugation and transduction which are employed for horizontal
gene transfer..
Save 1.13 Quiz Quadrilaterals and Their Properties 1 Pool 3 Question.pdfpoblettesedanoree498
Save 1.13 Quiz: Quadrilaterals and Their Properties 1 Pool 3 Question 3 (1 point) Which group
of quadrilaterals has diagonals that are perpendicular? O all trapezoids O all parallelograms O all
rectangles all rhombuses Save 1.13 Quiz: Quadrilaterals and Their Properties 1 Pool 4
Solution
In Quadrilaterals The Kite, Square and the rhombus have diagnol which are perpendicular, and
squares and kites come from the family of rhombuses.
Therefore the answer is All rhombuses..
Salmonella is closely related to Escherichia. However, Salmonella ca.pdfpoblettesedanoree498
Salmonella is closely related to Escherichia. However, Salmonella can neither be infected by
lambda phage, nor can it be successfully transfected using lambda DNA. Therefore, this
organism is neither a susceptible, nor a permissive host to this virus. Explain the reason for this
failure. Please explain in detail.
Solution
It is true that Salmonella and Escherichia are the gram-negative bacteria but their genetic
architecture is different which causes distinct functional proteins for the specific functional. The
first step required to infect phage to bacteria is binding process, which comprises a precise
interaction between the host cell surface and the virus. However, the virus host interaction
critically differs amongst diverse systems. This can be mediated through various cell surface
receptors and co-receptors depends on specific virus and host. Like, j protein of lambda phage
interact with LamB surface protein of Escherichia coli. The LamB protein is an example of a
porin, also called maltoporin, due to its necessary action for growth on limited maltose. But these
receptors were absent on the surface of salmonella which restrict the lambda phage salmonella
interaction and further transfection of DNA. Few important bacteriophages are there which infect
the salmonella eg. Felix01, podophage P22 and phage epsilon15..
Part A According to theory of natural selection, what factor below co.pdfpoblettesedanoree498
Part A According to theory of natural selection, what factor below contributed to the current
variations in beak sizes of finch species on the Galapagos islands? the O Non-heritable variation
between individual was important for natural selection to work O Genetic drift alowed
beneficialtraits to spreadthroughout the population O Different finch populations needed to
change in order to survive, so benescialnewtrats arose O Finches dispersed to islands where their
beak sizes dosely matched awailable seedsizes O Seeds are a limited resource Submit My
Answers Give Up
Solution
Finches dispersed to the island where thier beak size is closely is closely mathed available seed
size.
larger beak resulted from ability to harvest rare, large seeds.
Part A c. Canis lupus
They also known as the timber wolf or western wolf..
In the context of SELECT subquery types, a is returned when an UPDAT.pdfpoblettesedanoree498
In the context of SELECT subquery types, a is returned when an UPDATE subquery is used.
list of values NULL single value virtual table
Solution
option A
subquery is a SELECT statement written within parentheses and nested inside another statement.
Subqueries can return different types of information:.
In gene therapy, how is the malfunctioning gene replaced No plagari.pdfpoblettesedanoree498
In gene therapy, how is the malfunctioning gene replaced? No plagarism!
Solution
Gene therapy is replacing defective genes with the genes having normal functionality. This
treatment can be done at different stages.Therapy done at earliest stage of life (embyonic stage)
is the most effective as it ensures gene replacement in whole lineage of cells having origin from
therapeutic cell.
Most common tool used for gene therapy are Viruses. These viruses are used as vector to carry
desirable gene. Viruses are disarmed by removal of their harmful genes .Therapeutic gene is
inserted in these viruses.
While inserting therapeutic genes it is ensured that genetic material of viruses that has coding to
control entry into host cells remains intact.
These viruses are then exposed to target cells with malfunctioned genes.These viruses then
transfer desired genes into the target cells.This step can be dne in situ or in vivo depending upon
tissue being treated.
Different types of viruses can be used for different mechanisms of DNA transfer.
Challenges in gene therapy:
1. To ensure right positioning of desirable gene into host cell.
2. Sometimes gene may be over expressed.
3. Wrong position of gene in host cell may trigger changes in expression of DNA in vicinity..
Identify one trend or force in each of the specified microenvironmen.pdfpoblettesedanoree498
Identify one trend or force in each of the specified microenvironments (the company, suppliers,
marketing intermediaries, competitors, publics, and customers) and describe how it would affect
\'your\' company. Example: Current CEO is retiring and the new CEO that has been selected as
the replacement has a different management style; what is the effect on the company?
Solution
The factors of microenvironment:-
1. The competitors- The competitive environment consist of certain basic things which every
firm has to take not of. No company howsoever large it may be does not enjoy monopoly. In the
original business world a company encounters various forms of competition.
For example, a Phillips TV has a competitors as LG, samsung, videocon, sony etc. And the
change in one company\'s policy affects the other in one way or the other.
2. Customers- According to Peter F. drucker, \" there is only one definition of business purpose,
that is to create customer\". The busines enterprise aims to earn profit through serving the
customer demand. It now thinks more in terms of profitable sale rather than more sales volume
for its stake. Today marketing of a fim begins and also ends with the customer.
From the company\'s ponit of view it is always better to have customer from various groups and
legions for that easily sustains demand for the company\'s product.
3. Suppliers:- Regarding the suppliers, the organisation can think of availing the required
material or labour according to its manufacturing programme. It can adopt such a purchase
policy which gives bargaining power to the organisation.
According to Michael Porter, \" the relationship between suppliers and the firms epitomises a
power equation between them. This equation is based on the industry conditions and the exent to
which each of them is dependent on the other.
Suppliers are either individuals, or business houses. They combined together, provide resources
that are needed by the company. Now the company necessarily should go for developing
specifications, searching for potential suppliers, identifying and analysing the suppliers and
thereafter choose those suppliers who offer best mix of quality, delivery, reliability, credit,
warranties and obviously low cost.
4. Public:- Literally word \' public\' refers to people in general. According to philip kotler \" A
public is any group that has an actual or potential interest in or impact on a company\'s ability to
achieve its objectives.\" The environmentalists, consumer protection groups, media persons and
local people are some of the well known examples of publics.
The company has a duty to satisfy the people at large along with competitors and the consumers.
It is an exercise which has a larger impact on the well being of the company for tomorrow\'s stay
and growth. Create goodwill among people, help to get a favourable response for a company.
5. Marketing intermediaries:- Market intermediaries are either individuals or business houses
who come to .
i have a code that runs, but it only lets the player to guess where .pdfpoblettesedanoree498
i have a code that runs, but it only lets the player to guess where the ships are(which is a one
player game with one board). is there a way some one can help turn this game into a player vs
computer game (with two boards one for player and one for computer) Please help me.
BattleShipGame.java
package battleship;
import java.util.ArrayList;
import java.util.Scanner;
public class BattleshipGame {
private Ocean ocean;
private boolean[][] availableSpot;
private Scanner sc;
public BattleshipGame() {
// define a new ocean and a new 2D array to store available coordinates
ocean = new Ocean();
availableSpot = new boolean[10][10];
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++){
availableSpot[i][j] = true;
}
}
}
/**
* prints the game menu and info
* //param select
*/
public void print(int select){
String info;
switch (select) {
case 1: info = \"Welcome to the World of Battleship!\";
break;
case 2: info = \"Enter coordinates to fire: \";
break;
case 3: info = \"Shots fired: \"+ocean.getShotsFired()+\", Ships sunk:
\"+ocean.getShipsSunk();
break;
case 4: info = \"Congratulations! You win!\";
break;
case 99: info = \"Invalid input. Please re-enter:\";
break;
case 100: info = \"--------------------------------------------\";
break;
case 101: info = \"\ ============================================\";
break;
default: info = \"Error selection\";
break;
}
System.out.println(info);
}
/**
* check if the input is valid
* //param input
* //return boolean
*/
public boolean checkValidInput(String input){
ArrayList numList = new ArrayList();
for (int i=0;i<10;i++){
numList.add(\"\"+i);
}
String[] coordinates = input.split(\" \");
//returns false if there are not 2 strings
if (coordinates.length!=2){
return false;
}
//returns false if any of the strings is not a single digit number
for (String str: coordinates){
if (numList.contains(str)==false){
return false;
}
}
//returns false if the coordinates have already been shot at
int row = Integer.parseInt(coordinates[0]);
int column = Integer.parseInt(coordinates[1]);
if (this.availableSpot[row][column]==false){
return false;
}
return true;
}
/**
* get the coordinates to shoot at from the String input
* //param input
* //return int[] coordinates
*/
public int[] getCoordinates(String input){
int[] coordinates = new int[2];
String[] strList = input.split(\" \");
int row = Integer.parseInt(strList[0]);
int column = Integer.parseInt(strList[1]);
coordinates[0] = row;
coordinates[1] = column;
return coordinates;
}
/**
* play the battleship game
*/
public void play(){
print(101);
print(1);
ocean.placeAllShipsRandomly();
boolean isGameOver = ocean.isGameOver();
sc = new Scanner(System.in);
//print the ocean and start the game
ocean.print();
print(3);
while (!isGameOver){
print(2);
String input = sc.nextLine();
//check if input is valid
while (!checkValidInput(input)){
print(99);
input = sc.nextLine();
}
//get coordinates and fire
int[] coordinates = getCoordinates(input);
int row = coordinates[0];
int column = coord.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Normal Labour/ Stages of Labour/ Mechanism of LabourWasim Ak
Normal labor is also termed spontaneous labor, defined as the natural physiological process through which the fetus, placenta, and membranes are expelled from the uterus through the birth canal at term (37 to 42 weeks
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
What are oncogenic viruses Which of the following groups of viruses.pdf
1. What are oncogenic viruses? Which of the following groups of viruses are most likely to be
oncogenic? Circle all that apply. Retroviruses (single stranded RNA + reverse transcriptase)
Double stranded RNA viruses Single-stranded DNA viruses Double-stranded DNA viruses
Solution
5a)IOncogenic vrisuses are the viruses which are usually suspected of causing cancer humans
and animals .The Examples is human papillomaviruses
b) a and b because retrovirus and double stranded DNA are oncogenic here.