## (Solved) : Need Use Ruby Complete Following Steps 1 Research Select Api 2 Find Load Appropriate Gem P Q41351289 . . .

you need to use Ruby and complete the following steps

1) research and select an API.

2. Find and load the appropriate GEM package to use. Reviewdocumentation on the API GEM package.

3) Apply for API keys if needed

4) Test and connect to the API. Display the searchedresults.

## (Solved) : Need Step Step Directions Make Graph Word Needs Vertical Standard Deviation Bars Error Bar Q41334486 . . .

I need step by step directions on how to make thisgraph in word. it needs to have vertical standard deviation bars.the error bars are two standard deviations in length and centeredabout the average. it needs to have letters, not numerical dataacross the x axis. Thank you!

3 2.9 2.8 2,4 2.2 2.1 A D E1 E2 2 0 8 Method Yelocity (m/s) Show transcribed image text 3 2.9 2.8 2,4 2.2 2.1 A D E1 E2 2 0 8 Method Yelocity (m/s)

I am assuming you are using MS Word 2016 onWindows/Linux. Even in its previous versions, the stepswould be quite similar(if not same at all). If you are aMac User, please use approrpiate key combinationfor Copy-paste and Saving thework wherever required(rest of the instruction will staythe same).

Below are the steps that you have to follow:

1. Open MS Word in your PC. It will automatically opens a newdocument. You can also go to File -> New -> BlankDocument to open a new Document.

2. Save the Document with some name(This step is crucial at allstatges so that you don’t lose your changes). Click on thefloppy button at the topmost left corner.

3. Now we are all set for the graph drawing. We will first usethe Straight Line(without arrows) from the InputMenu. Check below snapshot for reference

Select the first straight line icon in that menu and draw invertically by dragging the mouse. Repeat this to draw a horizontalline as well. This will complete your Y and X axes respectively.After this step, you would see something like this.

4. In this step we will focus at Y-axis. Again, we will use thesame straight line feature to draw 10 small ticks to divide theY-axis(for the numbers 2, 2.1, 2.2…till 3). To speed things up,we will draw one small horizontal tick and will do copy paste 10times(Click on the line to select it, do Ctrl+C followed byCtrl+V), so it will show up like this on the canvas.

Adjust the lines by using arrow keys or just select by mouse anddrag them to align along the Y-axis. I am showing here 5 ticks forexample (please note that you can extend it for 10 ticks)

5. Now, we will fill the numbers against those ticks. For this,we will use TextBox feature of MS Word. Go toInsert-> Text Box-> Simple Text box.

Click on Simple Text box. Right click it and click on FormatShape from the menu. As shown below, you have to select the“No Line” button so that the text box has noborder. Now inside the text box, we can write the number (forexample – 2.1 as shown below).

Once this is done, drag the Text box besides the lowesthorizontal tick. You can again copy paste the text box 10 times andwrite further numbers in each textboxes. Adjust them accordingly,like show below:

6. As we have caliberated the Y-axis as desired, now is thetimet to name the Y-axis (Velocity (m/s)). Forthis same text box approach from Step 5, Type in the text “Velocity(m/s)”. and click on Format -> Text Direction->Rotate All text 270 degress to make it vertical. Followthe picture below:

Again, make this text box “No line” (as shown in Format Shapesection in Step 5) and drag it behind the Y-axis.

Congratulations, you are done with the Y-axis!

7. We will focus on X-axis now. From theInsert->Shapes->Basic Shapes/Rectangles, wewill choose Diamond andRectangle.

Using the mouse, you can make it as small as you wish them tobe. Now we will proceed to draw one of the pictures against thelabel “A”.

For this, use the lines and line with Arrow. Use Format Shapefeature to make it a little thick (Increase/decreasewidth as per your choice) as shown below. You can changecolor of the lines as well to Black.

Set the rectangle and the diamond created previouslyappropriately in the shape. You can also use Ovaland the Multiply Shape in similar manner, andadjust them accordingly.

If things done right, it will show up like below:

Select the textbox and Type A inside it. Place the text boxright below the above shape. Select everything and drag it to theright place.

8. Repeat Step 7 (Just select all shapes in step 7 and docopy-paste) and adjust it as you wish. Also mark it with label“B” and so on till “E2”.

9. We are still left with X-axis numbers, that is 0 and 8. Usetwo textboxes, type 0 and 8 in each and place them accordingly.

10. The X-axis has to be labelled as “Method“.Again text box will come handy.

11. In this step, we will cover the graph with parallel lines toX and Y axes, Click on the X-axis line, copy paste it and drag itto the top. Do the same with Y-axis line but drag that to the rightcorner. Adjust them so that they become a rectangle.

12. Last but not the least, the entire graph has to be coveredin a canvas. So, click on a Rectangle Shape, makeit big enough to surround the entire graph. Don’t forget to keepthe borders of the rectangle visible.

That’s it. Your graph is complete on MS word.

Thank you.

Document1 – Word Design Mailings Home Insert Layout References File Graph – Word Insert Design Layout References Maili SmartArt Store Chart tures Online Shapes My Add-ins Screenshot Pictures Recently Used Shapes EOOOAZZ04 Lines SIZ77,2 2216 Rectangles Basic Shapes ΟΔΝΔΔ 10 rL Block Arrows Equation Shapes Flowchart A VaD Stars and Banners Callouts OP OP OY A New Drawing Canvas 8) T We were unable to transcribe this imageWe were unable to transcribe this imageWe were unable to transcribe this image2ader TT Equation A 2 Symbol oter A Text =ge Number Box de Built-in Simple Text Box Simple Simple text box with the default formatting Bring Forward 0.6″ Send Backward Position Wrap 0.74″ Text Selection Pane Arrange Size Format Shape Text Options Shape Options Fill No fill Solid fill Gradient fill Picture or texture fill Pattern fill Color 2.1 Iransparency 0% Line No line Solid line Gradient line 2.2 2.1 Word Drawing Tools Tell me… ces Mailings Review View Format Shape Fill Shape Outline Shape Effects 1IA Text Direction A Quick Styles A WordArt Styles АВС Horizontal Rotate all text 90 Rotate all text 270 lIA Text Direction Options.. Velocity (m/s) АВС АВС 2,2 2.1 Velocity (m/s) Layout References Mailings Rev | SmartArt Store | Chart Shapes IMy Add-ins Screenshot Recently Used Shapes OOAZZ2 Lines Sz7712, 310 Rectangles DOD Basic Shapes OALO0 B (10 12 Block Arrows We were unable to transcribe this imageSolid fill Gradient fill Picture or texture fill Pattern fill Line No line Solid line Gradient line Color Iransparency 0% 3.5 pt Width Compound type Format Shape Fill ONo fill Solid fill Gradient fill Picture or texture fill Pattern fill Line No line Solid line Gradient line Color Iransparency 0% 0.5 pt Width Compound type Dash type Cap type Flat Join type Miter Begin Arrow type Begin Arrow size End Arrow type End Arrow size A

## (Solved) : Need Write Function Meets Following Requirements Python Function Name Removetriplicatelett Q41386899 . . .

I need to write a function that meets the following requirementsin Python.

Function name: removeTriplicateLetters()

Number of parameters: 1 string parameter where all letters arelowercase

Return value: return the modified string

Goal: Iterate over the string and remove any triplicated letters(e.g. “byeee mmmy friiiennd” becomes “bye my friennd”). You mayassume any immediate following same letters are a triplicate.

SOURCE CODE:*Please follow the comments to better understand the code.**Please look at the Screenshot below and use this code to copy-paste.***The code in the below screenshot is neatly indented for better understanding.def removeTriplicateLetters(string): output = ” # Iterate over the input string from 0th position to (length of string-3) i = 0 while i < len(string) – 3: # Add that character to output output += string[i] # Check if triplicate if string[i] == string[i + 1] == string[i + 2]: i += 3 else: i += 1 # Check for last 2 letters if not string[-1]==string[-2]==string[-3]: output+=string[-3:] return output# TESTstring = “byeee mmmy friiiennd”output = removeTriplicateLetters(string)print(“The OUTPUT is: “, output)

-================

$=========================================================== If\, there \,are \,any \,doubts,\, comment\, down \,here.\,\,\, \,We \,are\, right\, here\, to \,help\, you.\, \,\,\\{\color{Blue}Happy\,\, Learning..!!}\\\\ {\color{Red} PLEASE\,\,give \,\,an \,\,{\color{Blue} UPVOTE}\,\, I\,\,Have \,\,Put\,\,a \,\,lot\,\,of\,\,EFFORT\,\,in\,\,solving\,\,Your\,\,Problem.}\,\, \,It \,really\, Boosts \,us..!! \\ {\color{Red} PLEASE\,\,give \,\,an \,\,{\color{Blue} UPVOTE}\,\, I\,\,Have \,\,Put\,\,a \,\,lot\,\,of\,\,EFFORT\,\,in\,\,solving\,\,Your\,\,Problem.}\,\,, \,It \,really\, Boosts \,us..!! \\ ===========================================================$

def removeTriplicateLetters (string): output # Iterate over the input string from 0th position to (length of string-3) i = 0 while i < len (string) # Add that character to output 2 4 3: output += string [i] # Check if triplicate if string[i] i += 3 7 string[i 2] string[i1]= 10 11 12 13 14 15 else: i += 1 # Check for last 2 letters if not string[-1]==string[-2]==string[-3]: output+=string [ -3 : ] 16 17 return output 18 19 #TEST string = “byeee mmmy friiiennd” output print(“The OUTPUT is: “, output) 20 21 22 23 removeTriplicateLetters (string) 24 Run: remove triplicatrsx /home/praveen_kumar/PycharmP roj ects/untitled1/venv/bin/python “/home/praveen_kumar The OUTPUT is: bye my friennd Process finished with exit code 0 If there are any doubts, comment down here. Нарру Learning..!! We are right here to help you PLEASE give an UPVOTE I Have Put a lot of EFFORT in solving Your Problem. It really Boosts us..!! PLEASE give an UPVOTE I Have Put a lot of EFFORT in solving Your Problem., It really Boosts us..!!

## (Solved) : Need Work Persondriverjava Created Personjava Please Use Solve Persondriverjava Code Must Q41354691 . . .

You only need to work on PersonDriver.java. I have created thePerson.java; Please use it to solve PersonDriver.java.
Your code must be in java form.ISLAVE.dvd SW public class Person { 26 private String firstName; private String lastName; private int age; 27 29e public Person() { this.firstName – firstName; 0.31 this.lastName= lastName; this.age – age; 33 } 34 37e public String getFirstName() { return firstName; 39} 38 42 43e public void setFirstName(String firstName) { this.firstName – firstName; 45 } 47 48 49e public String getLastName() { 50 return lastName; 51 ) 52 54 55e public void setLastName(String lastName) { 56 this.lastName = lastName; 57 58 59 61e public int getAge() { 62 return age; 63 } 71 72 A73e public String toString() { 74 return firstName+””+lastName +”,”+””+age +”years old”; 75} 76 77e public boolean equals(Person P) { 78 if(this.firstName.equals(P.getFirstName())&&this.lastName.equals(P.getLastName())) { 79 return true; 80 else 81 return false; 86 87 88 89 90 Part 1 Write the Java code from the Person class created in the pre-lab. Write a driver (test) program named PersonDriver that does the following • Gets a first name, last name, and age from the user • Creates a Person object using that data • Gets another first name, last name, and age from the user • Creates a second Person object using that data Uses the equals method to determine if the two objects have the same name. Messages need to use the toString method to print the values of each object with the appropriate messages as follows. The toString should print the values of the instance variables in the form: firstName lastName, age years old. For example: Sue Smith who is 32 should print: Sue Smith, 32 years old o If they have the same name print: Sue Smith, 32 years old and Sue Smith, 32 years old have the same name • If they have different names print: Sue Smith, 32 years old and George Smith, 34 years old have different names Determines whether the two people represented by the two objects are the same age or indicates whether the first one is older or younger than the second one. Messages need to use the toString method to print the values of each object with the appropriate messages as follows: o If they are the same age Sue Smith, 32 years old and o Sue Smith, 32 years old are the same age If the first is older than the second Sue Smith, 36 years old is older George Smith, 34 years old • If the first is younger than the second Sue Smith, 32 years old is younger George Smith, 34 years old Run the program several times with varying test cases to determine that it works correctly in all cases. Show transcribed image text ISLAVE.dvd SW public class Person { 26 private String firstName; private String lastName; private int age; 27 29e public Person() { this.firstName – firstName; 0.31 this.lastName= lastName; this.age – age; 33 } 34 37e public String getFirstName() { return firstName; 39} 38 42 43e public void setFirstName(String firstName) { this.firstName – firstName; 45 } 47 48 49e public String getLastName() { 50 return lastName; 51 ) 52 54 55e public void setLastName(String lastName) { 56 this.lastName = lastName; 57 58 59 61e public int getAge() { 62 return age; 63 }
71 72 A73e public String toString() { 74 return firstName+””+lastName +”,”+””+age +”years old”; 75} 76 77e public boolean equals(Person P) { 78 if(this.firstName.equals(P.getFirstName())&&this.lastName.equals(P.getLastName())) { 79 return true; 80 else 81 return false; 86 87 88 89 90
Part 1 Write the Java code from the Person class created in the pre-lab. Write a driver (test) program named PersonDriver that does the following • Gets a first name, last name, and age from the user • Creates a Person object using that data • Gets another first name, last name, and age from the user • Creates a second Person object using that data Uses the equals method to determine if the two objects have the same name. Messages need to use the toString method to print the values of each object with the appropriate messages as follows. The toString should print the values of the instance variables in the form: firstName lastName, age years old. For example: Sue Smith who is 32 should print: Sue Smith, 32 years old o If they have the same name print: Sue Smith, 32 years old and Sue Smith, 32 years old have the same name • If they have different names print: Sue Smith, 32 years old and George Smith, 34 years old have different names Determines whether the two people represented by the two objects are the same age or indicates whether the first one is older or younger than the second one. Messages need to use the toString method to print the values of each object with the appropriate messages as follows: o If they are the same age Sue Smith, 32 years old and
o Sue Smith, 32 years old are the same age If the first is older than the second Sue Smith, 36 years old is older George Smith, 34 years old • If the first is younger than the second Sue Smith, 32 years old is younger George Smith, 34 years old Run the program several times with varying test cases to determine that it works correctly in all cases.

Please change your constructor as Person(String firstName,String lastName, int age). You only have defined defaultconstructor and you are reassigning the member variables tothemselves and not user specified values.
Your Person class should have 2 constructors
public Person(){
firstName = “”;
lastName = “”;
age = 0;
}

public Person (String firstName, String lastName, intage){
this.firstName = firstName;
this.lastName = lastName;
this.age = age;
}

Person.java
—-

public class Person {
private String firstName;
private String lastName;
private int age;

public Person(){
firstName = “”;
lastName = “”;
age = 0;
}

public Person(String firstName, String lastName, intage) {
super();
this.firstName = firstName;
this.lastName = lastName;
this.age = age;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}

public boolean equals(Person p){
if(this.firstName.equals(p.firstName) &&this.lastName.equals(p.lastName))
returntrue;
else
returnfalse;
}

public String toString(){
return firstName +” ” + lastName +”, ” + age + ” years old”;
}

}

PersonDriver.java
—–
import java.util.Scanner;

public class PersonDriver {
public static void main(String[] args) {
String fname, lname;
int age;
Person p1, p2;
Scanner input = newScanner(System.in);
System.out.println(“Enter detailsfor Person p1”);
System.out.print(“First Name:”);
fname = input.next();
System.out.print(“Last Name:”);
lname = input.next();
System.out.print(“Age: “);
age = input.nextInt();
p1 = new Person(fname, lname,age);

System.out.println(“Enter detailsfor Person p2”);
System.out.print(“First Name:”);
fname = input.next();
System.out.print(“Last Name:”);
lname = input.next();
System.out.print(“Age: “);
age = input.nextInt();
p2 = new Person(fname, lname,age);

if(p1.equals(p2))
System.out.println(p1 + ” and ” + p2 + ” have the samename”);
else
System.out.println(p1 + ” and ” + p2 + ” have differentnames”);

if(p1.getAge() <p2.getAge())
System.out.println(p1 + ” is younger than ” + p2);
else if(p1.getAge() ==p2.getAge())
System.out.println(p1 + ” and ” + p2 + ” are the same age”);
else
System.out.println(p1 + ” is older than ” + p2);

}
}

<terminated> PersonDriver (Java Application] E:Program FilesJavajdk-11.0.1binjavaw.exe Enter details for Person p1 First Name: Sue Last Name: Smith Age: 32 Enter details for Person p2 First Name: George Last Name: Smith Age: 34 Sue Smith, 32 years old and George Smith, 34 years old have different names Sue Smith, 32 years old is younger than George Smith, 34 years old

## (Solved) : Need Three Different Programs Need See Explainations Please Q41345628 . . .

These need to be in three different programs, and I need tosee how to do it with explainations please.
ACTIVITY In this lab, you will build a C program that will calculate and display the following: Min. Max, Mean, Median, Mode. The list of numbers you will use 80,53,12,9,5,17,5,63,20,4. ACTIVITY In this lab, you will build a C program that will generate a list of prime numbers from 101 to 2. ACTIVITY In this lab, you will build a C program that will generate a sequence of Fibonacci numbers up to 317811. Show transcribed image text ACTIVITY In this lab, you will build a C program that will calculate and display the following: Min. Max, Mean, Median, Mode. The list of numbers you will use 80,53,12,9,5,17,5,63,20,4.
ACTIVITY In this lab, you will build a C program that will generate a list of prime numbers from 101 to 2.
ACTIVITY In this lab, you will build a C program that will generate a sequence of Fibonacci numbers up to 317811.

Question 1.

The C code for the 1st question is given below. See thescreenshots given at the end for better visualization of thecode.

#include <stdio.h>

int main()

{

int list[] = {80, 53, 12, 9, 5, 17, 5,63, 20, 4};

int n, i, j, min, max, mode, sum,temp, prev, count, temp_count;

float mean, median;

n = 10; //Length of list

min = max = list[0]; //Assume thefirst number to be both minimum and maximum

sum = list[0]; //The ‘sum’ variablewill store the sum of all the numbers in the list

for(i=1; i<n; i++)

{

if(list[i] > max)

max = list[i];

if(list[i] < min)

min = list[i];

sum += list[i];

}

//Now, we have the min and max values.We are left with mean, median, and mode.

mean = (float)sum / n; //Mean is theaverage of all the numbers

//For mode and median, we first needto sort the list

//The below code sorts the given listin ascending order using the Bubble sort (easiest) method

for(i=0; i<n-1; i++)

for(j=0; j<n-1-i; j++)

if(list[j] > list[j+1])

{

temp = list[j];

list[j] = list[j+1];

list[j+1] = temp;

}

//Now, our list is sorted.

//The below code finds the median ofthe list

if(n%2 != 0) //if n is odd

median = list[n/2];

else //if n is even

median = (float)(list[n/2] + list[n/2- 1]) / 2;

//The below code finds the mode of thelist

prev = list[0];

count = 1;

temp_count = 1;

mode = list[0];

for(i=1; i<n; i++)

{

if(list[i] == prev)

temp_count++;

else

{

temp_count = 1;

prev = list[i];

}

if(temp_count > count)

{

count = temp_count;

mode = list[i];

}

}

//Now, we have all the five values.Let’s print them.

printf(“Min = %dn”, min);

printf(“Max = %dn”, max);

printf(“Mean = %fn”, mean);

printf(“Median = %fn”, median);

printf(“Mode = %dn”, mode);

return 0;

}

Let us now understand the above code in detail.

• The list array contains all the numbers mentioned inthe question.
• The variable n represents the length of the list. Forthis question, n=10.
• We initially assume the first number of the list to be bothminimum and maximum.
• The variable sum is used to store the sum of all thenumbers in the list. This sum will be used to calculate the mean ofthe given numbers since mean is equal to the average of thenumbers.
• Now, iterating over the list using a for loop, we findthe max and min numbers and also calculate the sum of all thenumbers.
• Now, mean = (sum of all the numbers) / (total number ofnumbers)
• At this point, we have the min, max, andmean values. We are left with median andmode.
• For calculating and median and mode, we first need to sort thelist in either ascending or descending order. So, we sort the listusing the simplest sorting algorithm, i.e., Bubble sort, inascending order. (The choice of the sorting algorithm issubjective.)
• After sorting the list, we find the median using thefact that it is the center-most element of the sorted list. If thenumber of elements in the list is even, the median is equal to theaverage of the two center-most elements.
• The mode is the element that appears the most numberof times in the list. Thus, to find the mode, we find the number ofoccurrences of each element in the list and then take the elementwith the maximum number of occurrences. This gives themode.
• Now, the program prints all the calculated values.

The screenshots of the code are given below:

The screenshot of the output is given below:

Question 2.

The C code for the 2nd question is given below. See thescreenshots given at the end for better visualization of thecode.

#include <stdio.h>

#include <math.h>

int isPrime(int n)

{

int i;

for(i=2; i<=sqrt(n); i++)

if(n%i == 0)

return 0;

return 1;

}

int main()

{

int i;

for(i=101; i>=2; i-=2)

{

if(isPrime(i) == 1)

printf(“%d, “, i);

}

printf(“%d”, 2);

return 0;

}

Let us now understand the above code in detail.

• We start the loop from 101 and decrement the iterator till 2 asgiven in the question. The iterator is decremented by 2 instead of1 because we know that except 2, all the even numbers arenon-prime. So, there is no point in checking the even numbers.
• The isPrime(int n) method checks whether the givenparameter n is prime or not. If it is prime, it returns 1.Else, it returns 0.
• If the function returns 1, it means that the number is primeand thus we print the number.
• In the last, we print 2 since it is not covered in the loop butit is also a prime number.

The screenshot of the code is given below:

The screenshot of the output is given below:

Question 3.

The C code for the 3rd question is given below. See thescreenshots given at the end for better visualization of thecode.

#include <stdio.h>

int main()

{

int i, prev1, prev2, next = 1;

prev1 = 0;

prev2 = 1;

printf(“%d, %d, “, prev1, prev2);

while(1)

{

next = prev1 + prev2;

if(next >= 317811)

{

printf(“%d “, next);

break;

}

printf(“%d, “, next);

prev1 = prev2;

prev2 = next;

}

return 0;

}

Let us now understand the above code in detail.

• The first two numbers of a Fibonacci sequence are always 0 and1. From now onwards, the next number is the sum of the previous twonumbers and so on.
• Thus, we have taken two variables prev1 andprev2 denoting the first two numbers (0 and 1)respectively.
• The next variable denotes the next number in thesequence, which is the sum of the previous two numbers (prev1 andprev2).
• We will run the while loop until the next number isgreater than or equal to 317811 as asked in the question.
• After calculating the next number, the prev2becomes prev1 and the next becomesprev2.

The screenshot of the code is given below:

The screenshot of the output is given below:

Hope it helped. If you have any doubts or queries, please feelfree to ask in the comments section. If it helped in any way,please consider giving a thumbs-up as it takes a lot of time andeffort to write such detailed answers.

1 2 #include <stdio.h> int main() int list[] = {80, 53, 12, 9, 5, 17, 5, 63, 20, 4}; int n, i, j, min, max, mode, sum, temp, prev, count, temp_count; float mean, median; n = 10; //Length of list min = max = list[@]; //Assume the first number to be both minimum and maximum sum = list[@]; //The ‘sum’ variable will store the sum of all the numbers in the list for(i=1; i<n; i++) if(list[i] > max) max = list[i]; if(list[i] < min) min = list[i]; sum += list[i]; //Now, we have the min and max values. We are left with mean, median, and mode. mean = (float)sum/n; //Mean is the average of all the numbers //For mode and median, we first need to sort the list //The below code sorts the given list in ascending order using the Bubble sort (easiest) method for(i=0; i<n-1; i++) for(j=0; j<n-1-i; j++) if(list[j] > list[j+1]) temp = list[j]; list[j] = list[j+1]; list[j+1] = temp; //Now, our list is sorted. //The below code finds the median of the list if(n%2 != 0) //if n is odd median = list[n/2]; else //if n is even median = (float) (list[n/2] + list[n/2 – 1]) / 2; //The below code finds the mode of the list prev = list[@]; count = 1; temp_count = 1; mode = list[@]; for(i=1; i<n; i++) if(list[i] == prev) temp_count++; else temp_count = 1; prev = list[i]; if(temp_count > count) count = temp_count; mode = list[i]; //Now, we have all the five values. Let’s print them. printf(“Min = %dn”, min); printf(“Max = %dn”, max); printf(“Mean = %fn”, mean); printf(“Median = %fn”, median); printf(“Mode = %dn”, mode); return 0; 78 } Min = 4 Max = 80 Mean = 26.799999 Median = 14.500000 Mode = 5 1 2 #include <stdio.h> #include <math.h> 4 int isPrime(int n) 5- { int i; for(i=2; i<=sqrt(n); i++) if(n%i == 0) return 0; return 1; 11 } 12 13 int main() 14- { int i; 15 16 for(i=101; i>=2; i–2) if(isPrime(i) == 1) printf(“%d, “, i); 23 24. } printf(“%d”, 2); return 0; 101.97.99, 83.79,73,71,67,61,59,53,47,43,41,37, 31.29.23.19.17, 13.11.7.5.3.2 1 #include <stdio.h> 3 int main() int i, previ, prev2, next = 1; prev1 = 0; prev2 = 1; printf(“%d, %d, “, prev1, prev2); while(1) next = prev1 + prev2; if(next >= 317811) printf(“%d “, next); break; printf(“%d, “, next); prev1 = prev2; prev2 = next; 20 return 0; 23 } 10,1,1,2,3,5,8,13,21,34,55,89, 144,233,377,610,987, 1597, 2504,4181,6765.10946.1771, 28657,46368,75025.1 21393.196418,317811

## (Solved) : Need Tasks 2 3 5 7 Completed Indexhtml Path Light Yoga Studio Yogacss Need New Edited Code Q41427746 . . .

I just need Tasks: 2,3,5, and 7 completed

index.html:

Path of Light Yoga Studio

yoga.css:

I just need the new (edited) codes for the index.html,classes.html, and yoga.css. I have the images and everything elsethat I need in a folder on my computer, so I just needed help withthe codes so that I can update the files in the folder.

ca href”alasses.h tml>Classes Schedule Contact 21 22 23 24 25 26 main> 27 Yoga Classes

## (Solved) : Need Website Successful Login Page Registration Page Q41415347 . . .

I need a website with successful login page andregistration page

index.php:

<!DOCTYPE html>
<html>
<body>
<h2>Index</h2>

<ahref=”http://localhost/chegg/register.php”>Register</a>

</body>
</html>

db_connect.php:

<?php
\$connection = mysqli_connect(‘localhost’, ‘root’, ”);
if (!\$connection){
die(“Database Connection Failed” .mysqli_error(\$connection));
}
\$select_db = mysqli_select_db(\$connection, ‘chegg’);
if (!\$select_db){
die(“Database Selection Failed” . mysqli_error(\$connection));
}

<!DOCTYPE html >
<html>
<body id=”body_bg”>
<div align=”center”>

<table border=”0.5″ >
<tr>
<td><input type=”text” name=”user_id”id=”user_id”></td>
</tr>
<tr>
</tr>

<tr>

<td><input type=”submit” value=”Submit” />
<td><input type=”reset” value=”Reset”/>

</tr>
</table>
</form>
</div>
</body>
</html>

<!DOCTYPE html >
<html>
<body id=”body_bg”>
<div align=”center”>

<table border=”0.5″ >
<tr>
<td><input type=”text” name=”user_id”id=”user_id”></td>
</tr>
<tr>
</tr>

<tr>

<td><input type=”submit” value=”Submit” />
<td><input type=”reset” value=”Reset”/>

</tr>
</table>
</form>
</div>
</body>
</html>

register.php:

<!DOCTYPE html>
<html>
<meta charset=”utf-8″>
<title>Registration</title>
<body>
<?php
require(‘db_connect.php’);
\$result = mysqli_query(\$connection,\$query);
if(\$result){
echo “<script type=’text/javascript’>
window.location= ‘index.php’;
</script>”;
}
}
?>
<div align=”center”>

<h3>Registration FORM</h3>
<form name=”registration” action=”” method=”post”>
<table border=”0.5″ >
<tr>
</tr>
<tr>
</tr>

<tr>

<td><input type=”submit” name=”submit” value=”Register”/>

</tr>
</table>
</form>
</body>
</html>

output:

These are simple registration and login pages. for better sitewe need to add validations.

## (Solved) : Network Design Security 6 18 Points Asked Consult Network Security Small Health Clinic S Q41428536 . . .

A. The purpose of the DMZ is to let the untrusted users enabledto the internet and let them away from the organization network.Thus in this way, we can enable the internet for our guests as wellwithout compromising the security for our office networkcomputers.

B. No one firewall is not sufficient for this case, we need tohave one more firewall in order to protect the payroll computer sothat it is not accessible by the office computers which can be doneby adding one more firewall in front of the payroll computer.

C. In this exploit the DNS entries are changed in order to letthe office computers land to the wrong address. Thus the IP addressconversion of the webpage will be different than the original oneand thus the user will be landing to the wrong address.
In order to prevent this from happening again, the organizationshould create own DNS server and serve the office computers onlythe required entries and disregard the remaining entries. This willhelp the organization computers to not go to the otheraddresses.

D. a. An attacker can get connected to the local network andthen it can use the Bluetooth attack in order to install and runthe malicious program on the user’s computer.

Being a Cheggexpert, I am obliged to do only four subparts of a question at atime.
I hope you understand.
Thanks

## (Solved) : New Employee Came Office Today Network Administrator Gave Ip Address Printer Gave Last Mon Q41422756 . . .

A new employee came into our office today. The NetworkAdministrator gave her the same IP address for the printer that shegave me last month. Was the server IP address assigned Staticallyor Dynamically?

The Printer IP address is assigned statically. Since the network administrator gave the same address that was used last month, implies that ip adrress is fixed. This will happen when the IP address are assigned Statically.

## (Solved) : Network Trivia 2 Points Ill Advised Look Directly End Fibre Optic Cable 3 Points Explain D Q41386476 . . .

Network Trivia

1. (2 points) Why is it ill-advised to look directly into the endof a fibre optic cable?

2. (3 points) Explain the differences between symmetric andasymmetric encryption?

3. (2 points) Why is flow control important at all levels of thenetwork stack?