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

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

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)

Expert Answer


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.

Document1 - Word Design Mailings Home Insert Layout References File

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

Graph - Word Insert Design Layout References Maili SmartArt Store Chart tures Online Shapes My Add-ins Screenshot Pictures Re

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.

phpFi5l06.png

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.

phpn3FKvY.png

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)

php2gUWt9.png

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.

2ader TT Equation A 2 Symbol oter A Text =ge Number Box de Built-in Simple Text Box Simple Simple text box with the default f

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).

Bring Forward 0.6 Send Backward Position Wrap 0.74 Text Selection Pane Arrange Size Format Shape Text Options Shape Options

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:

2.2 2.1

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:

Word Drawing Tools Tell me... ces Mailings Review View Format Shape Fill Shape Outline Shape Effects 1IA Text Direction A Qui

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

2,2 2.1 Velocity (m/s)

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.

Layout References Mailings Rev | SmartArt Store | Chart Shapes IMy Add-ins Screenshot Recently Used Shapes OOAZZ2 Lines Sz771phpFUWfzv.png

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.

Solid fill Gradient fill Picture or texture fill Pattern fill Line No line Solid line Gradient line Color Iransparency 0% 3.5

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:

Format Shape Fill ONo fill Solid fill Gradient fill Picture or texture fill Pattern fill Line No line Solid line Gradient lin

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

A

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.

Expert Answer


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)

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

def removeTriplicateLetters (string): output # Iterate over the input string from 0th position to (length of string-3) i = 0

If there are any doubts, comment down here. Нарру Learning..!! We are right here to help you PLEASE give an UPVOTE I Have Put

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 . . .

ISLAVE.dvd SW public class Person { 26 private String firstName; private String lastName; private int age; 27 29e public Pers71 72 A73e public String toString() { 74 return firstName++lastName +,++age +years old; 75} 76 77e public boolean equPart 1 Write the Java code from the Person class created in the pre-lab. Write a driver (test) program named PersonDriver thao 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 Smit
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.

Expert Answer


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

<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.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.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.

Expert Answer


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:

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,

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; //

else temp_count = 1; prev = list[i]; if(temp_count > count) count = temp_count; mode = list[i]; //Now, we have all the five v

The screenshot of the output is given below:

Min = 4 Max = 80 Mean = 26.799999 Median = 14.500000 Mode = 5

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:

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; re

The screenshot of the output is given below:

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

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:

1 #include <stdio.h> 3 int main() int i, previ, prev2, next = 1; prev1 = 0; prev2 = 1; printf(%d, %d, , prev1, prev2); whil

The screenshot of the output is given below:

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

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 . . .

Figure should be similar to the home Path of Light Yoga Studio See Chapter 2 for an introduction to the Path of Light Yoga St

Website Case Study 387 Hands-On Practice Case Study Task 1: Create a Folder. Create a folder called yoga7. Copy all of the fi

2. Code the following new styles within the media query: a. Configure a body element selector with margin and padding set to

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

index.html:

Path of Light Yoga Studio

<li>ca hrefalasses.h tml>Classes< /a></li> <li><a hreftachedule.html>Schedule</a>< /1i> <li><a hrefcontact.html>Contact<

yoga.css:

CAUserskimbelDesktoplyoga6lyoga.css- Notepad++ View Encoding Language Settings Tools Macro Run Plugins Window Search File Edi

yoga cas X 39 nav a 40 text-decoration: none; 41 font-weight: bold; padding: 1em; display: block; text-align: center; color:

yoga.cas X 74 padding-right: 2em; display: block; 75 76 77 E.floatleft 79 78 float: left; 80 margin-right: 4em; 82 Efooter 83

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.

Figure should be similar to the home Path of Light Yoga Studio See Chapter 2 for an introduction to the Path of Light Yoga Studio case study. Figure 2.42 shows a site map for the Path of Light Yoga Studio website. In this case study, you will configure the website to display on mobile devices using the single-col- umn layout shown in Figure 7.17. You will code media queries for mobile styles; modify the current desktop styles, and update the Home, Classes, and Schedule pages. Use the Chapter 6 Path of Light Yoga Studio website as a starting point for this case study. When you are finished, the website will look the same (see Figure 6.58) in desktop browsers. The mobile display should be similar to Figure 7.45 or 7.46. You have seven tasks in this case study: 1. Create a new folder for this Path of Light Yoga Studio case study. 2. Modify the Home page to include a viewport meta tag and an updated header area.. 3. Modify the Classes page to be consistent with the Home page. 4. Modify the Schedule page to be consistent with the Home page. 5. Modify the desktop styles in yoga.css. 6. Modify yoga.css and code a media query for tablet device display. 7. Modify yoga.css and code a media query for smartphone device display. Path of Light Yoga Studio Path of Light Yoga Studio Home Classes Hoe Classes Schedle Schedule Contac Contact Find Your Inner Light Find Your Inner Light ofug wher Path of Light Yoga Sudo provides all levels of yoga practice in a trangul peacefu enronment Whether you are new to yoga or an experienced practitioner, our dedicated instructors can develop a practioe to meet your needs Lat your inner ight shine at the Path Of Light Yoga Studie md Me o Hatha Vinyasa and Restorative Yoga Classes Dropins welcome Mats, blocks and blankets provided Relax in our Serenity Lounge before or after your clas es 4 Figure 7.45 The smartphone display Figure 7.46 Atest of the new tablet (or high- resolution smartphone) display in a desktop browser Website Case Study 387 Hands-On Practice Case Study Task 1: Create a Folder. Create a folder called yoga7. Copy all of the files from your Chapter 6 yoga6 folder into the yoga7 folder. Task 2: Modify the Home Page. Open index.html in a text editor. Edit the code as follows: 1. Configure a viewport meta tag that configures the width to the device-width and sets the initial-scale to 1.0. 2. The home page displays a phone number in the contact information area. Wouldn’t it be handy if a person using a smartphone could click on the phone number to call the company? You can make that happen by using tel: in a hyperlink. Configure a hyperlink assigned to an id named mobile that contains the phone number as shown below de”mobile” hret- ” tel: 888-555-5555″>888-555-5555</a> But wait a minute, a telephone link could confuse those visiting the site with a desktop browser. Code another phone number directly after the hyperlink, Code a span ele- ment assigned to an id named desktop around the phone number as shown below <apan id-“desktop” >888-555-5555</span> Don’t worry about the two phone numbers that are now on the page. You’ll configure CSS in Tasks 5 and 7 to show the appropriate phone number (with or without the tele- phone link) to your website visitors. Save the index.html file. It should look similar to the web page shown in Figure 6.58 (except for temporarily displaying two phone numbers) when displayed in a desktop browser. Remember that validating your HTML can help you find syntax errors. Test and correct this page before you continue. Task 3: Modify the Classes Page. Open classes.html in a text editor. Add the viewport meta tag in a manner consistent with the home page. Remove the height and width attributes from the img tag. Save and test your new classes.html page in a browser. Use the HTML validator to help you find syntax errors. Task 4: Modify the Schedule Page. Open schedule.html in a text editor. Add the viewport meta tag in a manner consistent with the home page. Remove the height and width from the img tag. Save and test your new schedule.html page in a browser. Use the HTML vali- dator to help you find syntax errors lask 5: Modify the Desktop CSS. Open yoga.css in a text editor. Remember the telephone rumber hyperlink you created in Task 2? Configure the CSS for the phone number display as shown below: 4mobile display: none: desktop display: inline: Task 6:Configure the Tablet CSS. Open yoga.css in a text editor. Edit the style rules as follows Save the yoga.css file. Use the CSS validator to help you find syntax errors. 1. Code a media query to select for typical tablet device viewport size. such as bedia only screen and (max-width: 1024px) 2. Code the following new styles within the media query: a. Configure a body element selector with margin and padding set to 0. b. Configure a wrapper id selector. Set the width to 100 %, min-width to 0, 0, and padding to O c. Configure the header element selector. Set top padding to 1px. d. Configure the nav element selector. The mobile layout uses a single column. Set the Displa before your Figur shou quu float to none, width to auto, and left padding to 2em. e. Configure the nav a selector. Set padding to 0.2em, left margin to 0.3em, float to We See left, and width to 23%. . Configure the main element selector. Set top and bottom padding to 2.5em, left and right padding to lem, margin to 0, 90 % font size, and clear all floats. g Configure the #hero img selector. Code a style declarations to set the width to 100 % and the height to auto. stuc out moc На h. Configure the h2, h3, p, and dl element selectors. Set the left and right padding to 2 i. Configure the main ul selector. Set left margin to 2em. j. Configure the floatleft class with 2em left margin and lem bottom margin, k.Configure the clear class with 2em left padding Save the yoga.css file. Use the CSS validator to help you find syntax errors. Task 7: Configure the Mobile CSS. Open yoga.css in a text editor. Note that any device with a screen max-width of 1024 pixels or less will apply the styles you coded in Task 6. In this task you will code additional styles needed for smaller devices. Edit the style rules as follows 1. Code a media query to select for typical smartphone device viewport size, such as emedia only all and (nax-width: 768px) 2. Code the following new styles within the media query: a. Configure an hl element selector. Set the font size to 2em, top padding to 0.25em left padding to 1.5em and width to 85%. Also configure centered text. b. Configure the anchor tags in the navigation area. Configure a style rule for the nav a selector. Set padding to 0.5em, width to 45%, float to left, minimum width to 6em, and left margin to 0.5em. c. Configure the main element selector. Set top padding to 0. d. Configure the floatleft class selector. Set the float property to none. Set dispiay none. e. Configure the #hero selector. Set display to none. f. Configure the footer element selector. Set padding to 0.5em and margin to 0 g. Remember the telephone number hyperlink you created in Task 2? Configure the CSS for the phone number display as shown below 4mobile display: inline: # desktop display: none: Save the yoga.css file. Use the CSS validator to help you find syntax errors <li>ca href”alasses.h tml>Classes< /a></li> <li><a hreft”achedule.html”>Schedule</a>< /1i> <li><a href”contact.html”>Contact</a></1i> 21 22 23 24 </ul> 25 </nav> 26 main> 27 <img areyogamat.jpg” alt”yoga mat”> <h2>Yoga Classes</h2 <dl> 28 29 <dt><atrongGentle Hatha Yoga</strong</dt <dd>Intended for beginners and anyone wishing a grounded foundation in the practice of yoga, this 60 minute class of poses and slow movement foouses on asana (proper alignment and posture), pranayama (breath work), and guided medi tation to foster your mind and body connection. </dd> 30 31 32 33 34 <dt><atrongvinyasa Yoga/strong/dt> <dd Although designed for internediate to advanced studenta, beginners are weloone to sanple this 60 minute class that foousess on breath-synchronized movement ámdeshryou will inhale and exhale as </dd 35 36 37 30 <dtcatrong Restorative Yoga/strongs/dt <ddThin 90 minute olass features very alow movement and long pose that are supported by a chair or wall. This calming restorative experience is suitable for students of any level of experience. This praction </dd 39 40 41 be a perfect way to helpP rehabilitate an injury 42 43 </d1> 44 </mains 45 <footer Copyright &oopy 2018 Path of Light Yogabr ca hrete”nailtoikngrosn.edu>kngroaatunog.adu/ </tooter 46 47 40 49 </div </body L</html 50 51 52 53 UTE Windows (CR LE Ln 25 Col19 Sel:010 length: 196 lines5 Hper Text Markup Language filei CAUserskimbelDesktoplyoga6lyoga.css- Notepad++ View Encoding Language Settings Tools Macro Run Plugins Window Search File Edit yoga.css X box-sizing: border-box; margin: 0; EP, ol, ul, h2, h3, h4, h5, h6, dl, dt, dd{ 6 7 margin: lem; } .clear clear: both;} 10 11 Ebody 12 background-color: #f0£0f0; color: #101010; 13 14 font-family: Verdana, Arial, sans-serif; 15 16 17 Eheader( 18 background-color: #9BC1C2; background-image: url (lilyheader.jpg) background-position: right; background-repeat: no-repeat; height: 150px; 19 20 21 22 23 24 25 26 padding-top: 50px; padding-left: 2em; 27 28 29 30 31 nav ( 32 float: left; width: 160px font-weight: bold; padding: 0; 33 34 35 36 Cascade Style Sheets File yoga cas X 39 nav a 40 text-decoration: none; 41 font-weight: bold; padding: 1em; display: block; text-align: center; color: #101010 ; 42 43 44 45 border-bot tom: 3px outset #CCCCCC; 46 47 margin-bottom: 1em; 48 49 Bnav a:link 50 51 color: #3F2860; 52 53 Enav a:visited{ color: #497777 54 55 56 57 Enav a:hover( 58 59 color: #A26100; 60 61 border:3px inset #333; 62 63 Enav ul ( list-style-type: none; margin: 0; padding: 0; 64 65 E.studio ( 68 69 70 71 67 font style: italic; Emain 72 73 margin-left: 170px; padding-top: lem; badding riglht: 2em; 74 Cascade Style Sheets File D AD ND KD 66 yoga.cas X 74 padding-right: 2em; display: block; 75 76 77 E.floatleft 79 78 float: left; 80 margin-right: 4em; 82 Efooter 83 font-size: .60em background-color: # 9BC1C2; font-style: italic; text-align: center; padding: lem; 84 85 86 87 88 89 90 91 E#wrapper 92 background-color: #F5F5F5; 93 margin-left: auto; margin-right: auto; width: 80% ; min-width: 1200px; 94 95 96 97 L) max-width: 1480px; 98 99 100 E.addr ( 101 102 103 font-size: 14px; padding: 8px; L) 104 105 206 207 108 #mobile (di splay: none: ) #cesktop (di splay: inline;) File CO CO CO CO CO CO CO CO CO OY O 0 0Y oY Show transcribed image text Figure should be similar to the home Path of Light Yoga Studio See Chapter 2 for an introduction to the Path of Light Yoga Studio case study. Figure 2.42 shows a site map for the Path of Light Yoga Studio website. In this case study, you will configure the website to display on mobile devices using the single-col- umn layout shown in Figure 7.17. You will code media queries for mobile styles; modify the current desktop styles, and update the Home, Classes, and Schedule pages. Use the Chapter 6 Path of Light Yoga Studio website as a starting point for this case study. When you are finished, the website will look the same (see Figure 6.58) in desktop browsers. The mobile display should be similar to Figure 7.45 or 7.46. You have seven tasks in this case study: 1. Create a new folder for this Path of Light Yoga Studio case study. 2. Modify the Home page to include a viewport meta tag and an updated header area.. 3. Modify the Classes page to be consistent with the Home page. 4. Modify the Schedule page to be consistent with the Home page. 5. Modify the desktop styles in yoga.css. 6. Modify yoga.css and code a media query for tablet device display. 7. Modify yoga.css and code a media query for smartphone device display. Path of Light Yoga Studio Path of Light Yoga Studio Home Classes Hoe Classes Schedle Schedule Contac Contact Find Your Inner Light Find Your Inner Light ofug wher Path of Light Yoga Sudo provides all levels of yoga practice in a trangul peacefu enronment Whether you are new to yoga or an experienced practitioner, our dedicated instructors can develop a practioe to meet your needs Lat your inner ight shine at the Path Of Light Yoga Studie md Me o Hatha Vinyasa and Restorative Yoga Classes Dropins welcome Mats, blocks and blankets provided Relax in our Serenity Lounge before or after your clas es 4 Figure 7.45 The smartphone display Figure 7.46 Atest of the new tablet (or high- resolution smartphone) display in a desktop browser
Website Case Study 387 Hands-On Practice Case Study Task 1: Create a Folder. Create a folder called yoga7. Copy all of the files from your Chapter 6 yoga6 folder into the yoga7 folder. Task 2: Modify the Home Page. Open index.html in a text editor. Edit the code as follows: 1. Configure a viewport meta tag that configures the width to the device-width and sets the initial-scale to 1.0. 2. The home page displays a phone number in the contact information area. Wouldn’t it be handy if a person using a smartphone could click on the phone number to call the company? You can make that happen by using tel: in a hyperlink. Configure a hyperlink assigned to an id named mobile that contains the phone number as shown below de”mobile” hret- ” tel: 888-555-5555″>888-555-5555 But wait a minute, a telephone link could confuse those visiting the site with a desktop browser. Code another phone number directly after the hyperlink, Code a span ele- ment assigned to an id named desktop around the phone number as shown below 888-555-5555 Don’t worry about the two phone numbers that are now on the page. You’ll configure CSS in Tasks 5 and 7 to show the appropriate phone number (with or without the tele- phone link) to your website visitors. Save the index.html file. It should look similar to the web page shown in Figure 6.58 (except for temporarily displaying two phone numbers) when displayed in a desktop browser. Remember that validating your HTML can help you find syntax errors. Test and correct this page before you continue. Task 3: Modify the Classes Page. Open classes.html in a text editor. Add the viewport meta tag in a manner consistent with the home page. Remove the height and width attributes from the img tag. Save and test your new classes.html page in a browser. Use the HTML validator to help you find syntax errors. Task 4: Modify the Schedule Page. Open schedule.html in a text editor. Add the viewport meta tag in a manner consistent with the home page. Remove the height and width from the img tag. Save and test your new schedule.html page in a browser. Use the HTML vali- dator to help you find syntax errors lask 5: Modify the Desktop CSS. Open yoga.css in a text editor. Remember the telephone rumber hyperlink you created in Task 2? Configure the CSS for the phone number display as shown below: 4mobile display: none: desktop display: inline: Task 6:Configure the Tablet CSS. Open yoga.css in a text editor. Edit the style rules as follows Save the yoga.css file. Use the CSS validator to help you find syntax errors. 1. Code a media query to select for typical tablet device viewport size. such as bedia only screen and (max-width: 1024px)
2. Code the following new styles within the media query: a. Configure a body element selector with margin and padding set to 0. b. Configure a wrapper id selector. Set the width to 100 %, min-width to 0, 0, and padding to O c. Configure the header element selector. Set top padding to 1px. d. Configure the nav element selector. The mobile layout uses a single column. Set the Displa before your Figur shou quu float to none, width to auto, and left padding to 2em. e. Configure the nav a selector. Set padding to 0.2em, left margin to 0.3em, float to We See left, and width to 23%. . Configure the main element selector. Set top and bottom padding to 2.5em, left and right padding to lem, margin to 0, 90 % font size, and clear all floats. g Configure the #hero img selector. Code a style declarations to set the width to 100 % and the height to auto. stuc out moc На h. Configure the h2, h3, p, and dl element selectors. Set the left and right padding to 2 i. Configure the main ul selector. Set left margin to 2em. j. Configure the floatleft class with 2em left margin and lem bottom margin, k.Configure the clear class with 2em left padding Save the yoga.css file. Use the CSS validator to help you find syntax errors. Task 7: Configure the Mobile CSS. Open yoga.css in a text editor. Note that any device with a screen max-width of 1024 pixels or less will apply the styles you coded in Task 6. In this task you will code additional styles needed for smaller devices. Edit the style rules as follows 1. Code a media query to select for typical smartphone device viewport size, such as emedia only all and (nax-width: 768px) 2. Code the following new styles within the media query: a. Configure an hl element selector. Set the font size to 2em, top padding to 0.25em left padding to 1.5em and width to 85%. Also configure centered text. b. Configure the anchor tags in the navigation area. Configure a style rule for the nav a selector. Set padding to 0.5em, width to 45%, float to left, minimum width to 6em, and left margin to 0.5em. c. Configure the main element selector. Set top padding to 0. d. Configure the floatleft class selector. Set the float property to none. Set dispiay none. e. Configure the #hero selector. Set display to none. f. Configure the footer element selector. Set padding to 0.5em and margin to 0 g. Remember the telephone number hyperlink you created in Task 2? Configure the CSS for the phone number display as shown below 4mobile display: inline: # desktop display: none: Save the yoga.css file. Use the CSS validator to help you find syntax errors
ca href”alasses.h tml>Classes Schedule Contact 21 22 23 24 25 26 main> 27 Yoga Classes

Expert Answer


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

I need a website with successful login page andregistration page

Expert Answer


index.php:

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

<a href=”http://localhost/chegg/login.php”>Login</a>|
<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));
}

login.php:

<!DOCTYPE html >
<html>
<head>
<title>LOGIN FORM</title>
<link rel=”stylesheet” type=”text/css”href=”style.css”>
</head>
<body id=”body_bg”>
<div align=”center”>

<h3>LOGIN FORM</h3>
<form id=”login-form” method=”post” action=”authen_login.php”>
<table border=”0.5″ >
<tr>
<td><label for=”user_id”>UserName</label></td>
<td><input type=”text” name=”user_id”id=”user_id”></td>
</tr>
<tr>
<td><labelfor=”user_pass”>Password</label></td>
<td><input type=”password” name=”user_pass”id=”user_pass”></input></td>
</tr>
          
<tr>
             
<td><input type=”submit” value=”Submit” />
<td><input type=”reset” value=”Reset”/>
             
</tr>
</table>
</form>
       </div>
</body>
</html>

authen_login.php:

<!DOCTYPE html >
<html>
<head>
<title>LOGIN FORM</title>
<link rel=”stylesheet” type=”text/css”href=”style.css”>
</head>
<body id=”body_bg”>
<div align=”center”>

<h3>LOGIN FORM</h3>
<form id=”login-form” method=”post” action=”authen_login.php”>
<table border=”0.5″ >
<tr>
<td><label for=”user_id”>UserName</label></td>
<td><input type=”text” name=”user_id”id=”user_id”></td>
</tr>
<tr>
<td><labelfor=”user_pass”>Password</label></td>
<td><input type=”password” name=”user_pass”id=”user_pass”></input></td>
</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>
<head>
<meta charset=”utf-8″>
<title>Registration</title>
<link rel=”stylesheet” href=”styles.css” />
</head>
<body>
<?php
require(‘db_connect.php’);
if (isset($_REQUEST[‘username’])){
$username = stripslashes($_REQUEST[‘username’]);
$password = stripslashes($_REQUEST[‘password’]);
$query = “INSERT into `user_login` (username, password)
VALUES (‘$username’, ‘$password’)”;
$result = mysqli_query($connection,$query);
if($result){
echo “<script type=’text/javascript’>
alert(‘Registration successful’);
window.location= ‘index.php’;
</script>”;
}
}
?>
<div align=”center”>

<h3>Registration FORM</h3>
<form name=”registration” action=”” method=”post”>
<table border=”0.5″ >
<tr>
<td><label for=”user_id”>UserName</label></td>
<td><input type=”text” name=”username”placeholder=”Username” required /></td>
</tr>
<tr>
<td><labelfor=”user_pass”>Password</label></td>
<td><input type=”password” name=”password”placeholder=”Password” required /></td>
</tr>
          
<tr>
             
<td><input type=”submit” name=”submit” value=”Register”/>
             
</tr>
</table>
</form>
</body>
</html>

output:

= chegg Home Share File View 1 This PC > Local Disk (C:) > xampp > htdocs > chegg Name Date modified Type Size 1 KB 1 KB authSeque G basic p <> Create 3 localh la localh M Activat < → c Apps Need G basic r S What i l ocalhost/chegg/index.php New Tab

+ C → Apps localhost/chegg/register.php New Tab Q (16) Home - Quora O ☆ TO OOO Paused (145) YouTube C Expert Q&A | Cheg. Into€ X → Apps localhost/chegg/register.php New Tab Q (16) Home - Quora On ☆ GOOOOOO Paused . (145) YouTube C Ex localhost says R+ c localhost/chegg/login.php New Tab Q (16) Home - Quora O Apps (145) YouTube C Expert Q&A Cheg... Into the Wild 2007... LOGlocalhost/chegg/authen_login.php O O O O OO O Paused New Tab Q (16) Home - Quora (145) YouTube C localhost says Login Credent

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

= chegg Home Share File View 1 This PC > Local Disk (C:) > xampp > htdocs > chegg Name Date modified Type Size 1 KB 1 KB authen_login db_connect index login register 27-Oct-19 4:55 AM 27-Oct-19 4:00 AM 27-Oct-19 4:54 AM 27-Oct-19 3:54 AM 27-Oct-19 4:57 AM PHP File PHP File PHP File PHP File PHP File 1 KB 1 KB 2 KB A Videos Local Disk (C:) Dev Disk Documentation hadoop-2.8.4 Hortanwork Intel MagicPlusMini MinGW msys64 PerfLogs prasanth Seque G basic p <> Create 3 localh la localh M Activat < → c Apps Need G basic r S What i l ocalhost/chegg/index.php New Tab Q (16) Home – Quora (145) YouTube C Expert Q&A | Cheg… Into the Wild a Index Login Register + C → Apps localhost/chegg/register.php New Tab Q (16) Home – Quora O ☆ TO OOO Paused (145) YouTube C Expert Q&A | Cheg. Into the Wild 2007… Registration FORM User Name Username Password Password Register € X → Apps localhost/chegg/register.php New Tab Q (16) Home – Quora On ☆ GOOOOOO Paused . (145) YouTube C Ex localhost says Registration successful ОК + c localhost/chegg/login.php New Tab Q (16) Home – Quora O Apps (145) YouTube C Expert Q&A Cheg… Into the Wild 2007… LOGIN FORM User Name Password Submit Reset localhost/chegg/authen_login.php O O O O OO O Paused New Tab Q (16) Home – Quora (145) YouTube C localhost says Login Credentials verified OK

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

Network Design and Security 6 ..................... .............. 18 points You have been asked to consult on the network se

Network Design and Security 6 ………………… ………….. 18 points You have been asked to consult on the network security of the small health clinic shown in the diagram below. All computers in the clinic are on the same Local Area Net- work (LAN), which uses a small cisco router to connect to the Internet. The medical record database is stored on a dedicated linux computer also on the LAN, and is ac- cessed by all the office computers except the payroll computer. A WiFi Network is used by employees to access the LAN with their cell phones, and to provide a guest network for patients. The fishtank is not on any network, but a manufacturer supplied cellphone APP is used to monitor its temperature by staff. The clinic also supports a public web server which is used for patient appointments, to advertise times for Flu shots and other public announcements. Office Fishtank with Bluetooth Thermometer Medical Record Database Local Area Network for Clinic Firewall Office Computers Payrol Computer Internal Web Server Public Web Server DMZ (a) (2 points) What is the purpose of the Demilitarized Zone(DMZ)? (b) (2 points) Is one firewall sufficient? (c) (4 points) The clinic’s WWW address was recently used in a phishing attack, after attackers altered its public DNS record via a DNS cache poisoning exploit. Explain what happened, and how the clinic could prevent this from happening again. (d) The Blueborne(CVE-2017-1000251) attack, announced in September 2017, allows an attacker to install and run malicious code on affected bluetooth devices without any interaction with the user. The attack has been sucessfully demonstrated on all major computer and mobile phone platforms, and many other bluetooth devices. The attack can also propagate itself to other bluetooth devices. Assume that none of the Bluetooth devices in the Clinic have been patched. i. (2 points) Explain how an attacker on the Guest network could probe for local bluetooth devices. ii. (4 points) Explain all the steps in a plausible attack that uses the office fishtank to attack the payroll computer and extract data to a visitor’s laptop. (e) (4 points) Given that the Cisco router provides support for Virtual Lans (VLAN), draw and label a diagram showing how to reorganise the network to provide better security for the payroll computer. You may add additional named devices if you wish, and should provide a brief explanation for the reasons for your changes. Show transcribed image text Network Design and Security 6 ………………… ………….. 18 points You have been asked to consult on the network security of the small health clinic shown in the diagram below. All computers in the clinic are on the same Local Area Net- work (LAN), which uses a small cisco router to connect to the Internet. The medical record database is stored on a dedicated linux computer also on the LAN, and is ac- cessed by all the office computers except the payroll computer. A WiFi Network is used by employees to access the LAN with their cell phones, and to provide a guest network for patients. The fishtank is not on any network, but a manufacturer supplied cellphone APP is used to monitor its temperature by staff. The clinic also supports a public web server which is used for patient appointments, to advertise times for Flu shots and other public announcements. Office Fishtank with Bluetooth Thermometer Medical Record Database Local Area Network for Clinic Firewall Office Computers Payrol Computer Internal Web Server Public Web Server DMZ (a) (2 points) What is the purpose of the Demilitarized Zone(DMZ)? (b) (2 points) Is one firewall sufficient? (c) (4 points) The clinic’s WWW address was recently used in a phishing attack, after attackers altered its public DNS record via a DNS cache poisoning exploit. Explain what happened, and how the clinic could prevent this from happening again. (d) The Blueborne(CVE-2017-1000251) attack, announced in September 2017, allows an attacker to install and run malicious code on affected bluetooth devices without any interaction with the user. The attack has been sucessfully demonstrated on all major computer and mobile phone platforms, and many other bluetooth devices. The attack can also propagate itself to other bluetooth devices. Assume that none of the Bluetooth devices in the Clinic have been patched. i. (2 points) Explain how an attacker on the Guest network could probe for local bluetooth devices. ii. (4 points) Explain all the steps in a plausible attack that uses the office fishtank to attack the payroll computer and extract data to a visitor’s laptop. (e) (4 points) Given that the Cisco router provides support for Virtual Lans (VLAN), draw and label a diagram showing how to reorganise the network to provide better security for the payroll computer. You may add additional named devices if you wish, and should provide a brief explanation for the reasons for your changes.

Expert Answer


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?

Expert Answer


The Printer IP address is assigned statically. Since the network administrator gave the same address that was used last month

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.