3.4 code practice question 2 edhesive

Answers

Answer 1
???????????????????
Answer 2
Is there more to this question??

Related Questions

what is the best plugin for subscription sites?

Answers

Answer:

Explanation:

MemberPress. MemberPress is a popular & well-supported membership plugin. ...

Restrict Content Pro. ...

Paid Memberships Pro. ...

Paid Member Subscriptions. ...

MemberMouse. ...

iThemes Exchange Membership Add-on. ...

Magic Members. ...

s2Member.

What is the hamming distance between the following bits? Sent
bits: 101100111, Received bits: 100111001
Select one: 5. Or 3 or 6 or4​

Answers

I think

the hamming distance between the following bits its 5

Factory Design Pattern Assignment This assignment will give you practice in using the Factory/Abstract Factory Design Pattern. You are going to create a Terraforming program. What does terraform mean

Answers

Answer:

Terraform is an open-source infrastructure as code software tool that enables you to safely and predictably create, change, and improve infrastructure.

You want a cable that could be used as a bus segment for your office network. The cable should also be able to support up to 100 devices. Which cable should you use?

A.
RG-6
B.
RG-8
C.
RG-58U
D.
RG-59

Answers

Answer: C

Explanation:

A line beginning with a # will be transmitted to the programmer’s social media feed.

A.
True

B.
False

Answers

Answer:

True?

Explanation:

Answer:

The answer is false.

Explanation:

A “#” doesn’t do that in Python.

Write a MIPS assembly language program that prompts for a user to enter a series of floating point numbers and calls read_float to read in numbers and store them in an array only if the same number is not stored in the array yet. Then the program should display the array content on the console window.
Consult the green sheet and the chapter 3 for assembly instructions for floating point numbers. Here is one instruction that you might use:
c.eq.s $f2, $f4
bc1t Label1
Here if the value in the register $f2 is equals to the value in $f4, it jumps to the Label1. If it should jump when the value in the register $f2 is NOT equals to the value in $f4, then it should be:
c.eq.s $f2, $f4
bc1f Label1
To load a single precision floating point number (instead of lw for an integer), you might use:
l.s $f12, 0($t0)
To store a single precision floating point number (instead of sw for an integer), you might use:
s.s $f12, 0($t0)
To assign a constant floating point number (instead of li for an integer), you might use:
li.s $f12, 123.45
To copy a floating point number from one register to another (instead of move for an integer), you might use:
mov.s $f10, $f12
The following shows the syscall numbers needed for this assignment.
System Call System Call System Call
Number Operation Description
2 print_float $v0 = 2, $f12 = float number to be printed
4 print_string $v0 = 4, $a0 = address of beginning of ASCIIZ string
6 read_float $v0 = 6; user types a float number at keyboard; value is store in $f0
8 read_string $v0 = 8; user types string at keybd; addr of beginning of string is store in $a0; len in $a1
------------------------------------------
C program will ask a user to enter numbers and store them in an array
only if the same number is not in the array yet.
Then it prints out the result array content.
You need to write MIPS assembly code based on the following C code.
-------------------------------------------
void main( )
{
int arraysize = 10;
float array[arraysize];
int i, j, alreadyStored;
float num;
i = 0;
while (i < arraysize)
{
printf("Enter a number:\n");
//read an integer from a user input and store it in num1
scanf("%f", &num);
//check if the number is already stored in the array
alreadyStored = 0;
for (j = 0; j < i; j++)
{
if (array[j] == num)
{
alreadyStored = 1;
}
}
//Only if the same number is not in the array yet
if (alreadyStored == 0)
{
array[i] = num;
i++;
}
}
printf("The array contains the following:\n");
i = 0;
while (i < arraysize)
{
printf("%f\n", array[i]);
i++;
}
return;
}
Here are sample outputs (user input is in bold): -- note that you might get some rounding errors
Enter a number:
3
Enter a number:
54.4
Enter a number:
2
Enter a number:
5
Enter a number:
2
Enter a number:
-4
Enter a number:
5
Enter a number:
76
Enter a number:
-23
Enter a number:
43.53
Enter a number:
-43.53
Enter a number:
43.53
Enter a number:
65.43
The array contains the following:
3.00000000
54.40000153
2.00000000
5.00000000
-4.00000000
76.00000000
-23.00000000
43.52999878
-43.52999878
65.43000031

Answers

Explanation:

Here if the value in the register $f2 is equals to the value in $f4, it jumps to the Label1. If it should jump when the value in the register $f2 is NOT equals to the value in $f4, then it should be

write the C program
The function turn_to_letter decides on the letter grade of the student according to the table below from the visa and final grades sent into it and returns it, write it together with a main function which the turn_to_letter function is called and prints the letter equivalent on the screen. -Success score = 40% of midterm + 60% of final,
-F for the success score below 50, D for between 50 and 59, C for between 60 and 69, B for between 70 and 79, A for 80 and above.

Answers

Answer:

The program in C is as follows:

#include <stdio.h>

char turn_to_letter(double score){

   char lettergrade = 'A';

   if(score>=80){        lettergrade = 'A';    }

   else if(score>=70){        lettergrade = 'B';    }

   else if(score>=60){        lettergrade = 'C';    }

   else if(score>=50){        lettergrade = 'D';    }

   else{lettergrade = 'F';}

   return lettergrade;

}

int main(){

   int midterm, final;

   double score;

   printf("Midterm: ");    scanf("%d", &midterm);

   printf("Final: ");    scanf("%d", &final);  

   score = 0.4 * midterm + 0.6 * final;

   printf("Score: %lf\n", score);

   printf("Letter Grade: %c",turn_to_letter(score));

   return 0;

}

Explanation:

The function begins here

char turn_to_letter(double score){

This initializes lettergrade to A

   char lettergrade = 'A';

For scores above or equal to 80, grade is A

   if(score>=80){        lettergrade = 'A';    }

For scores above or equal to 70, grade is B

   else if(score>=70){        lettergrade = 'B';    }

For scores above or equal to 60, grade is C

   else if(score>=60){        lettergrade = 'C';    }

For scores above or equal to 50, grade is D

   else if(score>=50){        lettergrade = 'D';    }

Grade is F for other scores

   else{lettergrade = 'F';}

This returns the letter grade

   return lettergrade;

}

The main begins here

int main(){

This declares the midterm and final scores as integer

   int midterm, final;

This declares the total score as double

   double score;

These get input for midterm score

   printf("Midterm: ");    scanf("%d", &midterm);

These get input for final score

   printf("Final: ");    scanf("%d", &final);  

This calculates the total score

   score = 0.4 * midterm + 0.6 * final;

This prints the calculated total score

   printf("Score: %lf\n", score);

This calls the turn_to_letter function and prints the returned letter grade

   printf("Letter Grade: %c",turn_to_letter(score));

   return 0;

}

Which line of code will use the overloaded multiplication operation?

class num:
def __init__(self,a):
self.number = a

def __add__(self,b):
return self.number + 2 * b.number

def __mul__(self, b):
return self.number + b.number

def __pow__(self, b):
return self.number + b.number

# main program
numA = num(5)
numB = num(10)

Which line of code will use the overloaded multiplication operation?

class num:
def __init__(self,a):
self.number = a

def __add__(self,b):
return self.number + 2 * b.number

def __mul__(self, b):
return self.number + b.number

def __pow__(self, b):
return self.number + b.number

# main program
numA = num(5)
numB = num(10)

a) product = numA * numB
b) product = numA.multiply(numB)
c) product = numA.mul(numB

Answers

For multiplication one: product = numA * numB

For the addition: result = numA + numB

got 100 on this ez

(searched all over internet and no one had the answer lul hope this helps!)

Answer: First option: product = numA * numB

second option-numA + numB

Explanation:

a) Why is eavesdropping done in a network?
b) Solve the following using checksum and check the data at the
receiver:
01001101
00101000​

Answers

Answer:

An eavesdropping attack is the theft of information from a smartphone or other device while the user is sending or receiving data over a network.

Missing: checksum ‎01001101 ‎00101000

Page Setup options are important for printing a PowerPoint presentation a certain way. The button for the Page Setup dialog box is found in the
File tab.
Home tab.
Design tab.
Slide Show tab.

Answers

Answer: Design tab

Explanation:

The page setup simply refers to the parameters which are defined by a particular user which is vital in knowing how a printed page will appear. It allows user to customize the page layout. The parameters include size, page orientation, quality of print,margin etc.

It should be noted that page setup options are vital for printing a PowerPoint presentation in a certain way and the button for the Page Setup dialog box can be found in the design tab.

Which of the following best explains how an analog audio signal is typically represented by a computer?
a. An analog audio signal is measured at regular intervals. Each measurement is stored as a sample, which is represented at the lowest level as a sequence of bits.
b. An analog audio signal is measured as a sequence of operations that describe how the sound can be reproduced. The operations are represented at the lowest level as programming instructions.
c. An analog audio signal is measured as input parameters to a program or procedure. The inputs are represented at the lowest level as a collection of variables.
d. An analog audio signal is measured as text that describes the attributes of the sound. The text is represented at the lowest level as a string.

Answers

Answer:

A. An analog audio signal is measured at regular intervals. Each measurement is stored as a sample, which is represented at the lowest level as a sequence of bits.

Explanation:

I took the test

is used for finding out about objects, properties and methods​

Answers

Answer:

science

Explanation:

This program exercise #4 wants the user to write a program in python that contains a list of movies titles, years and movie rating. You will need to display a menu option that allows the user to list all of the movies, add a movie, delete a movie and exit out of the program. This will be done using lists and the functions to add an element to a list and how to delete an element to a list. The program should be written utilizing functions in python for the main function, the display_menu function, the delete function, the add function and the list movie function. You can place this all in one python file or include them in various python files that include them into the main program. Let me know if you have any questions with this exercise. Output Screen: COMMAND MENU list - List all movies add - Add a movie del - Delete a movie exit - Exit program Command List: list 1. Monty Python and the Holy Grail, 1979, R 2. On the Waterfront, 1954, PG 3. Cat on a Hot Tim Roof, 1958, R Command: add Name: Gone with the Wind Year: 1939 Rating: PG Gone with the Wind was added.

Answers

Answer:

The program in Python is as follows:

def display_menu(titles,years,ratings):

   for i in range(len(titles)):

       print(str(i+1)+". "+titles[i]+", "+str(years[i])+", "+str(ratings[i]))

   

def delete(titles,years,ratings):

   del_item = input("Movie: ")

   if del_item in titles:

       print(del_item,"was deleted")

       index = titles.index(del_item)

       titles.pop(index)

       years.pop(index)

       ratings.pop(index)

   return(titles,years,ratings)

   

def add(titles,years,ratings):

   title = input("Title: ")

   year = int(input("Year: "))

   rating = int(input("Ratings: "))

   print(title,"was added")

   titles.append(title)

   years.append(year)

   ratings.append(rating)

   

   return(titles,years,ratings)

titles = []

years = []

ratings = []

print("COMMAND MENU list\nlist - List movies\nadd - Add movie del\ndel - Delete movie exit\nexit - Exit program")

menu = (input("Command List: "))

while(menu.lower() == "list" or menu.lower() == "add" or menu.lower() == "del"):

   if menu.lower() == "list":

       display_menu(titles,years,ratings)

   elif menu.lower() == "add":

       titles, years, ratings = add(titles,years,ratings)

   elif menu.lower() == "del":

       titles, years, ratings = delete(titles,years,ratings)

   menu = (input("Command List: "))

   elif menu.lower() == "exit":

       break

print("Exited!!!")

Explanation:

See attachment for complete program where comments are used to explain some lines of the program

Other Questions
salva's face bore the deep scars of his Dinka tradition and set him apart because his mark was different from the Nuer tribe. True or False factor completely; 3x^2+4x-7 A piecewise function is given. Find f(-4) What is the approximate volume? A recipe calls for 1/2 of a teaspoon of sugar for every 15 cookies. If you are going to make 75 cookies for a party, how many teaspoon of sugar will you use. The perimeter of a square is 12x - 8. Which of the following is the length ofone side of the square? The manager of a fleet of automobiles is testing two brands of radial tires and assigns one tire of each brand at random to the two rear wheels of eight cars and runs the cars until the tires wear out. The data (in kilometers) follow. Find a 99% confidence interval on the difference in the mean life.Car Brand 1 Brand 21 36663 338662 43509 418293 36240 355004 32100 319505 37210 380156 48360 478007 38200 378108 33500 33215a) Calculate SD =b) Calculate a 99% two-sided confidence interval on the difference in mean life.c) Which brand would you prefer? (brand 1/ no difference /brand 2)_____ Who is the destroyer God? Hoda is creating a report in Access using the Report Wizard. Which option is not available for adding fields using the wizard?TablesQueriesReportsAll are available options. Use PEMDAS to evaluate the expression 7 x 6 + 8 16 4. The Treaty of Versailles *a. Adhered strictly to the Fourteen Pointsb. Achieved a workable peacec. Was satisfactory to the majority of German citizensd. Humiliated and devastated the Germans militarily and economically wha the MIDPOINT of (-6, 8) and (6, -7) Bears stop coming to a river ecosystem where they have been eating many fish each day. The fish the bears eat normally eat smaller fish, which eat plants along the river bottom.What happens to the ecosystem?Both the larger and the smaller fish populations grow quickly but then die out because the plant life is insufficient for them all to eat.The larger fish population will drop first, and the smaller fish population will grow quickly. The plants will die off because too many of the smaller fish are eating them. The larger fish population explodes at first, and the smaller fish population begins to drop. Eventually, the river runs out of smaller fish so larger fish die out, and the plant population grows. The smaller fish population begins to eat more plants and to grow. The larger fish have more food to eat so their population is able to grow, too. The "R" in TARGET stands for Group of answer choicesreason.recent.relate.response. Which expression BEST completes the sentence below correctly? The children have had an enjoyable holiday in the island, but they have to leave now; _________________________. A travel broadens the mind B all good things must come to an end C home is where the heart is D something is better than nothing An engineer is designing a fountain that shoots out drops of water. The nozzle from which the water is launched is 3 meters above the ground. It shoots out a drop of water at a vertical velocity of 14 meters per second. Function h models the height in meters, h, of a drop of water t seconds after it is shot out from the nozzle. The function is defined by the equation h(t)=5t2+14t+3. How many seconds until the drop of water hits the ground? Determine if each pair of triangles is congruent. If so, write the congruencestatement and explain how you know the triangles are congruent. Just answer the question in the picture. It's just math vocab! DO NOT answer for points OR SPAM LINKS!!! I will REPORT! Factorise using the sum and product method with all the steps!British curriculum No links or websites please ! How many grams are there in 1.8055 x 10^25 molecules of sodium sulfate? Hint: Convert to moles first