2. A room has one door and two windows, and it needs to be painted. Assume that 1 gallon of paint can paint 120 square feet; that the door is 8ft x 5ft and the windows are each 2ft x 3ft. (You will not paint the door or windows.) Write a program called Lab 1-2B to ask the user for the length, width & height of the room; then calculate 1) total square footage of walls to be painted and the 2) amount of paint needed. Then print both values with labels. C#

Answers

Answer 1

Answer:

// code in C#.

using System;

class WallPaint {

 static void Main()

 {

 //variables

     double l,w,h;

     double win_area,door_area;

     double amount_gallon;

     Console.WriteLine("enter length of room:");

     // read the length of room

    l= Convert.ToDouble(Console.ReadLine());

    Console.WriteLine("enter width of room:");

    // read the width of room

    w= Convert.ToDouble(Console.ReadLine());

    Console.WriteLine("enter height of room:");

    // read the height of room

    h= Convert.ToDouble(Console.ReadLine());

    Console.WriteLine("enter amount of a gallon:");

    // read the amount of a gallon

    amount_gallon= Convert.ToDouble(Console.ReadLine());

    // find the area of both window

     win_area=2*(2*3);

     // area of door

     door_area=8*5;

     // total area of all walls

     double tot_room_area=2*(l*h)+2*(w*h);

     // area to be painted

     double paint_area=tot_room_area-(win_area+door_area);

     // gallos of paint required

     double no_gallon=paint_area/120;

     // total amount of paint

     double tot_amount=no_gallon*amount_gallon;

     // print the area to be painted

     Console.WriteLine("total square footage of walls to be painted : "+paint_area);

     // print amount of paint

     Console.WriteLine("total amount of paint is: "+tot_amount);

   

   

 }

}

Explanation:

Read the length, width and height of the room from user.Read the amount of paint  per gallon from user.Calculate the total area of all the walls.Calculate the area or window and door.Then find the area to be painted by subtracting window and door  area from total wall area.Then find the number of gallon of paint required to paint  all the area.Then calculate the total amount of the paint.

Output:

enter length of room:                                                                                                      

10                                                                                                                        

enter width of room:                                                                                                      

8                                                                                                                          

enter height of room:                                                                                                      

12                                                                                                                        

enter amount of a gallon:                                                                                                  

15                                                                                                                        

total square footage of walls to be painted : 380                                                                          

total amount of paint is: 47.5

Answer 2

This detailed guide explains how to calculate the total square footage of walls to be painted and the required amount of paint using a C# program. It covers how to account for the dimensions of a room, door, and windows, and then converting these into an area to be painted. This procedure is carried out step-by-step in the following C# code example.

To determine the total square footage of walls to be painted and amount of paint needed, we'll write a C# program. The program will:

Ask the user for the length, width, and height of the room.Calculate the total square footage of the walls by subtracting the area of the door and windows from the overall area of the wall.Based on the area that needs to be painted and the paint's coverage capabilities, calculate the required amount of paint.Here is a step-by-step example in C#:using System;

class Program
{
   static void Main()
   {
       // Variables for room dimensions
       Console.Write("Enter the room's length in feet: ");
       double length = Convert.ToDouble(Console.ReadLine());
       Console.Write("Enter the room's width (in feet): ");
       double width = Convert.ToDouble(Console.ReadLine());
       Console.Write("Enter height of the room (in feet): ");
       double height = Convert.ToDouble(Console.ReadLine());

       // Calculate total wall area
       double totalWallArea = 2 * height * (length + width);

       // Area of door
       double doorArea = 8 * 5;

       // Area of two windows
       double windowArea = 2 * (2 * 3);

       // Net wall area to be painted
       double paintableArea = totalWallArea - doorArea - windowArea;

       // Amount of paint needed
       double paintNeeded = paintableArea / 120;

       // Display result
       Console.WriteLine($"Total square footage to be painted: {paintableArea} sq ft");
       Console.WriteLine($"Amount of paint needed: {paintNeeded} gallons");
   }
}

Assuming you have correctly entered the dimensions, this program calculates the total square footage to be painted and the amount of paint needed accurately.


Related Questions

Assume you have taken another square picture with the 25-megapixel digital camera discussed in the previous question. This time around you decide to view the picture on your computer screen that can display 2000 pixels by 1000 pixels. What fraction of the image is viewable on the screen? Tnoo

Answers

Answer:

8% of the picture

Explanation:

Given:

Square picture pixels = 25 MP

Pixels that can be displayed by the computer = 2000 pixels by 1000 pixels

or

Pixels that can be displayed by the computer = 2000000 pixels

Now,

The fraction of picture viewable on the screen = [tex]\frac{\textup{2MP}}{\textup{25MP}}[/tex]

or

The fraction of picture viewable on the screen = 0.08

or

The fraction of picture viewable on the screen = 8% of the picture

Use the find command to display all files owned by the user guru

Answers

Answer:

find * -user guru

Explanation:

find is the command to search in files and the flag -user allow search by the owner of the file

the symbol * is a regular expression that means all the files

Example

find * -user guru

find all the files owned by the user guru

Write a C++ program that stores the integers 50 and 100 in variables and stores the sum of these two in a variable named total. Display the total on the screen.

Answers

Answer:

Following are the program in c++

#include <iostream> // header file

using namespace std; // namespace

int main() // main function

{

int a=50,b=100,total; // variable declaration

total=a+b; // sum of the two variable a and b

cout<<"The total is:"<<total; // display total

return 0;

}

Output:The total is:150

Explanation:

In this program we have declared two variable i.e "a" and "b" of int type which store the value 50 and 10 respectively.After that we adding these two variable and store the sum in total variable finally display the total

The ________ maps the software architecture created in design to a physical system architecture that executes it. (Points : 3) architectural diagram
sequence diagram
deployment diagram
state chart diagram

Answers

Answer:Deployment diagram

Explanation: Deployment diagram is the diagram that is used for displaying the hardware parts upon which the software architecture works.The main purpose of the diagram is showing the function and operations taking place through the deployment of the software system with the hardware.

These diagrams are made up of the nodes , interface, artifacts and other components. Other given options are incorrect because architectural diagram is for designing of the architecture of a system,sequence diagram is used for the sequential order display of system components and  state chart diagram is the diagram that shows the status of the parts of the operating system.

Therefore, the correct option is deployment diagram.

What is the reason of non-deterministic (indeterminate) behavior of concurrent programs?

Answers

Answer: Concurrent programs are the programs that execute at the same point of time. They are simultaneous in nature with other concurrent programs.They are executed with the help of threads  to achieve the concurrency without the issue of scheduling. They are consider long running programs.

The program that has the low execution time compared with all other programs gets executed first.If the case of no progress is seen then another thread is executed.This type of execution gives the non- deterministic situation in which the possibility of leading completion of any particular program cannot be determined.

What is a relationship? A one-to-many relationship

Answers

Answer:

In the database, a relationship is the situation where one foreign key table are basically get references from the other primary key table.

The relationship basically allow relational database to splitting and storing the data into different tables.

One to many relationship is one of the type of the relationship. The one to many relationship is basically define as when the record in the table are associate with the one and more records in the another table.

Examine the class definition. How many members does it contain?

class clockType
{
public:
void setTime(int, int, int);
void getTime() const;
void printTime() const;
bool equalTime(const clockType&) const;
private:
int hr;
int min;
int sec;
};
(Points : 5) 7
3
4
None of the above

Answers

Answer:

7

Explanation:

The class clockType consists of three member variables marked as private:

int hr; int min; int sec;

It also contains four public member functions:

void setTime(int, int, int); void getTime() const; void printTime() const; bool equalTime(const clockType&) const;

So in total it contains seven members. The member variables constitute attributes or state of the object while the member functions represent possible operations on the object.

Convert the binary number into a hexadecimal number.

Answers

Explanation:

A binary number is converted to hexadecimal number by making a group of 4 bits from the binary number given.Start making the group from Least Significant Bit (LSB) and start making group of 4 to Most Significant (MSB) or move in outward direction.If the there are less than 4 bits in last group then add corresponding zeroes to the front and find the corresponding hexadecimal number according to the 4 bits.For example:-

for this binary number 100111001011011.

100  1110 0101  1011

There is one bits less in the last group so add 1 zero(0) to it.

0100  1110  0101  1011

  4        E        5        B

100111001011011 = 4E5B

101011.1010

0010   1011  .   1010

  2          B           A

=2B.A

Convert (65.125)10 to octal.

Answers

Answer:

101.1

Explanation:

Keep in mind that octal has 8 numbers

Step 1: Split your number in 2 parts (integer part and decimal part):

integer part 65decimal part 0.125

Step 2: Convert the decimal part. For this step you need to multiply your decimal part and 8 (8 correspond the octal base) and get the integer part until you need it:

      0.125 * 8 =  1

So your decimal part correspond to number 1 in octal = (1)8

Step 3: Convert integer part: for this step you need to divide your integer part by 8 until you can and get the remainder

      65 / 8 = 8 remainder 1

        8 / 8 = 1 remainder 0

         1 / 8 = 0 remainder 1

Step 4: join the remainders from bottom to top and get the integer part

            101

Step 5: join the integer part and the decimal part to get the octal convertion

              101.1

Define and implement a method that takes a string array as a parameter and returns the length of the shortest and the longest strings in the array

Answers

Answer:

#HERE IS CODE IN PYTHON

#function to find length of shortest and longest string in the array

def fun(list2):

   #find length of shortest string

   mn=len(min(list2))

   #find length of longest string

   mx=len(max(list2))

   #return both the value

   return mn,mx

#array of strings

list2 = ['Ford', 'Volvo', 'BMW', 'MARUTI','TATA']

# call the function

mn,mx=fun(list2)

#print the result

print("shortest length is:",mn)

print("longest length is:",mx)

Explanation:

Create an array of strings.Call the function fun() with array as parameter. Here min() function will find the minimum string among all the strings of array and then len() function will find its length and assign to "mn". Similarly max() will find the largest string and then len() will find its length and assign to "mx". Function fun() will return "mn" & "mx".Then print the length of shortest and longest string.

Output:

shortest length is: 3

longest length is: 5

Final answer:

The problem involves writing a Java method to find the lengths of the shortest and longest strings in an array. The method iterates through each string to update and find the minimum and maximum lengths. It returns these lengths as an integer array.

Explanation:

To tackle the problem of finding the lengths of the shortest and longest strings in an array, we'll use a programming approach. Let's assume we are using Java for this solution. The method will iterate through the array, comparing the lengths of each string to find the minimum and maximum lengths.

Here is a simple Java method that accomplishes this:

public static int[] findShortestAndLongestStringLen(String[] array) {
   if (array == null || array.length == 0) return new int[] {-1, -1}; // Handle empty or null array    
   int minLength = Integer.MAX_VALUE;
   int maxLength = Integer.MIN_VALUE;
   for (String str : array) {
       if (str.length() < minLength) {
           minLength = str.length();
       }
       if (str.length() > maxLength) {
           maxLength = str.length();
       }
   }
   return new int[] {minLength, maxLength};
}

This method initializes two variables, minLength and maxLength, with the maximum and minimum values an integer can have, respectively. It iterates through each string in the array, updating these values based on the length of each string. Finally, it returns an array of two integers: the shortest length found (minLength) and the longest (maxLength).

What are the testing levels?

Answers

Answer:

There are different levels of the testing that are:

Unit testing:

 The unit testing basically test the individual components in the software testing. It is the small testable part in the software that is used for testing.

Integration testing:

 It basically test the integrated components in the software testing. The integration testing evaluate the specific requirement and functionality of the system.

System testing:  

  The system testing involve with the process of testing the entire system in the software testing. It basically evaluate the entire system and its specific requirement in the software system testing.

supppose we already have a list called words, containing all the words(i.e., string).Write code that produce a sorted list with all duplicate words removed. For example, if words ==['hello', 'mother','hello','father','here','i','am','hello'], your code would produce the list ['am','father','hello','here','i','mother'].

Answers

Answer:

I will code in Javascript.

//define and initialize both arrays.

var words = ['hello', 'mother','hello','father','here','i','am','hello'];

var sortedList = [];

 

 for ( var i = 0;  i < words.length ; i++ ){  //loop used to go throght the words

   var duplicated = false;  // boolean used for detect duplicates

   for ( var j = i + 1;  j < words.length ; j++ ) {  //loop used to compare with other words

     if( words[i] == words[j] ) {  //if the word is duplicated, duplicated becomes true.

       duplicated = true;

       break;

     }

   }

   if (! duplicated) {  //if at the end of the loop of each word duplicated is false, then the element is pushed into sortedList.

     sortedList.push(words[i]);    

   }

 }

 sortedList.sort(); //when the loop is finished, use the Javascript method to sort an array.

The IllegalArgumentException class extends the RuntimeException class, and is therefore:

a.) a checked exception class b.) an unchecked exception class c.) never used directly d.) None of these

Answers

Answer:

b.) an unchecked exception class

Explanation:

The IllegalArgumentException is a subclass of the RuntimeException class. As such it represents an unchecked exception. An unchecked exception is one which need not necessarily be thrown or caught within the method body. In contract, a checked exception (e.g., IOExeption ) needs to be declared in either the throws clause or needs to be handled in a try-catch block as part of the method.

Write a function that receives an integer list from STL and returns the sum of even numbers in the list (return zero if no even number is in the list)

Answers

Answer:

int sumeven(int lis[],int n)

{

   int sum_e=0;//integer variable to store the sum.

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

       {

           if(lis[i]%2 == 0)//if the number is even adding to sum_e.

           sum_e=sum_e+i;

       }

   return sum_e;//retuning the sum.

   

}

Explanation:

The above written function is in C++.This function find the sum of even numbers in the list provided.It loops over the array and if the number is even adds to the variable sum_e finally return sum_e which having the sum of even numbers now.

What is the difference between a class and an object?

Answers

Explanation:

The difference between a class and an object is very simple a class is a template for objects.A class contains objects,methods,constructors,destructors. While an object is a member  of the class or an instance of the class. for ex:-

#include<iostream>

using namespace std;

class car

{

    public:

  string color;

  int numgears;

  int engine capacity_cc;

  bool ispetrol;

car(string color,int numgears,int engine capacity_cc,bool ispetrol)

{

  this->color=color;

  this->numgears=numgears;

  this->capacity_cc=capacity_cc;

  this->ispetrol=ispetrol;

}

};

int main()

{

car volvo = new car("red",6,2500,false);

return 0;

}

In the example we have class car and it's object is volvo.

Final answer:

In object-oriented programming, a class is a blueprint for creating objects that share similar properties and behaviors. An object, on the other hand, is an instance or a specific occurrence of that class. It represents a real-world entity and holds the values for the attributes defined in the class.

Explanation:

In object-oriented programming, a class is a blueprint for creating objects (instances) that share similar properties and behaviors. It defines the attributes (data) and methods (functions) that objects of that class will have. A class is like a template or a cookie cutter, while an object is an instance or a specific occurrence of that class. It represents a real-world entity and holds the values for the attributes defined in the class.

Let's take a car as an example. The class for a car would define its properties, such as color, brand, and year, as well as its behaviors, such as accelerating, braking, and turning. An object of this car class would be a specific car, like a red Toyota Camry from 2020, which has its unique values for the properties defined in the class.

. The __________ logical operator works best when testing a number to determine if it

is outside a range.

Answers

Answer:

The OR logical operator works best when testing a number to determine if it  is outside a range

Explanation:

The answer to this statement is:

The OR logical operator works best when testing a number to determine if it  is outside a range

The concept of logical operators is simple. They allow a program to make a decision based on multiple conditions

The AND (&&) operator is used to determine whether both operands or conditions are true

The NOT (!) operator is used to convert true values to false and false values to true. In other words, it inverts a value

The OR ( || ) operator is used to determine whether either of the conditions is true. If the first operand of the || operator evaluates to true, the second operand will not be evaluated.

What is the difference between frontend and backend web development?

Answers

Answer:

 Front- end web development:

  The front end web development is basically focused on the client side and it manage the web designing of the web browser.

 It basically responsible for analyzing the code, designing and debugging various types of web applications. The front end developers basically design the architecture of the site.

 The front end refers in the web development what the users actually see first in the web browser.  

Back- end web development:

In back end web development the code is basically run in the server opposed the client. The back end developer are not basically understand the programming and coding language. It only deals with the outside architecture of the web applications.  

It is usually divided into three parts that is:  

ServerApplication Database

Write a program which asks the user his/ her last name, stores it in a variable called lname, then asks What is your age? and stores it in a variable called age. After this, the program displays a userid, for example as follows: What is your last name? Jones What is your age? 20 Your user id is: Jones20

Answers

Answer:

// program in C++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

   // variables

   int age;

   string lname;

   cout<<"Enter your last name:";

   // read last name

   cin>>lname;

   cout<<"Enter your age:";

   // read age

   cin>>age;

  // print user id

   cout<<"Your user id is: "<<lname<<" "<<age<<endl;

return 0;

}

Explanation:

Read last name from user and assign it to variable "lname".Then read age from user and assign it to variable "age".After this print the user id as last name followed by age.

Output:

Enter your last name:singh

Enter your age:24

Your user id is: singh 24

CRM systems provide an organization with an important element: all employees of the company who directly or indirectly serve a customer are "____."
in the same category
in the same department
in the same division
on the same page

Answers

Answer: On the same page

Explanation:

 The CRM is basically stand for the customer relationship management that are design to support all the relationship with the customers. It basically analysis the data about the customers to improve the relationship and growth in the organization.

All the employees in the organization are directly and indirectly server the customers are basically o the Same page by the individual computers.

The CRM approach are basically compile the given data from the different communication source such as company website, email and telephone.

 

How many strings of eight lower-case English letters are there that contain the two letters bg, in that order, with the further constraint that no letters can be repeated?

Answers

Answer:  678,363,840

Explanation:

Hi!

The "bg" part of the string could be in 7 possible positions within the string. If we number the characters in the string from 0 to 7, the "b" of "bg" could be in positions 0 to 6.

We need to count the possibilities for the other 6 characters. They can be any of the 26 lower-case letters, but not b nor g, because no letters can be repeated. So we can choose 6 letters from 24 letters, without repetition, and the order is important. The number of such combinations is:

[tex]n = 24,\; m = 6\\\frac{n!}{(n-m)!} = \frac{24!}{18!} = 96,909,120[/tex]

For the total number of strings, we have to multiply with the 7 possible position of "bg". Then, the final number is 678,363,840

Write a recursive function using pseudocode or C/C++.

Answers

Answer:

long fact(int n)

{

   if(n<=1)//base case

   return 1;  

   long p=fact(n-1);//recursive call.

   return n*p;//returning the factorial.

}

Explanation:

Above written function is written in C++ language.It is a recursive function to find the factorial of the function.

If we enter a number  equal to  or  less than  1  then the function returns 1. Then the recursive call  is made  and it is stored  in the long  variable  p and  the result is returned as n*p.

An instance of an object is (Points : 2) a block of COBOL code
one occurrence of the object
very small
a large number of input records

Answers

Answer: One occurrence of the object

Explanation:

 The instance of the object is the one occurrence of an object in the given class. The common statement of an object with respect to the instance means that there is single occurrence of an object.

When the process run at each time it is known as instance of program given specific values and variables. An instance of the object is also known as class instance.

It is basically defined as specific realization in an object and also the object varies in different number of the ways in the object oriented programming (OOPs).

Every element in an array always has the same data type. Necessary ?

Answers

Answer:

False.

Explanation:

Every element in the array is always have same data type.

Array is the collection of items of same data type stored in contiguous memory location.

So as the definition suggests that array elements always have same data type.

But it is not necessary there are some languages that can allow array elements to be different types such as javascript,python.But traditional languages such as C,C++,Java does not allow this.

Write a program that has a while loop to print out the first five multiples of 15, 43, and 273 between the numbers of 3168 and 376020. Put each of the three sets of multiples on a new line.

Answers

Answer:

#include <iostream>

using namespace std;

void printmultiples(int n) //function to print first five multiples between 3168 and 376020

{

   int a =3168,c=1;

   cout<<"First five multiples of "<<n<<" are : ";

   while(a%n!=0 && a<=376020) //finding first mutiple of n after 3168.

   {

       a++;

   }

   while(c<6)//printing multiples.

   {

       cout<<a<<" ";

       a+=n;

       c++;

   }

   cout<<endl;

}

int main() {

   int t,n;

   cin>>t;//How many times you want to check.

   while(t--)

   {

       cin>>n;

       printmultiples(n);//function call..

   }

return 0;

}

Input:-

3

15

43

273

Output:-

First five multiples of 15 are : 3180 3195 3210 3225 3240  

First five multiples of 43 are : 3182 3225 3268 3311 3354  

First five multiples of 273 are : 3276 3549 3822 4095 4368

Explanation:

I have used a function to find the first five multiples of the of the numbers.The program can find the first five multiples of any integer between 3168 and 376020.In the function I have used while loop.First while loop is to find the first multiple of the integer n passed as an argument in the function.Then the next loop prints the first five multiples by just adding n to the first multiple.

In the main function t is for the number of times you want to print the multiples.In our case it is 3 Then input the integers whose multiples you want to find.

. When does Groupthink occur?

Answers

Answer:

 The group-think is the phenomena which basically occur when the group of people reached conses without any critical reasoning and also without evaluating any consequences.

It is basically based on the common desire and it occur without disturb and upset the group of people.

There are many causes of the group think that are:

Due to the group cohesivenessIt causes due to rigid leadership and various decisions stress.Due to overall group isolation

Suppose a class consists of 3 sophomores, 4 juniors, and 2 seniors (no freshmen). We want one person from each of the class years to do a presentation. How many different sets of presenters are there?

Answers

Answer:

There are 24 different sets of presenters.

Explanation:

We have:

3 sophmores

4 juniors

2 seniors

The presentation has the following format:

So - J - Sr

Since there are 3 sophmores, 4 juniors and 2 seniors, we have that:

For each sophmore, 4 juniors can present.

For each junior, 2 seniors can present

There are 3 sophmores

So there are

[tex]3*4*2 = 24[/tex]

There are 24 different sets of presenters.

Write an if statement that assigns 100 to x when y is equal to 0.

Answers

Answer:

if(y==0)

{

   x=100;

}

Explanation:

The above written if statement is for assigning 100 to x when the value of y is equal to 0.To check the value of the y I have used equal operator == which returns true when the value on it's left side is equal to the value to it's right else it returns false and for assigning the value to y I have used assignment operator =.

First it will be checked that the value y is equal to 0.If the then it return true means the if statement will execute.Inside if statement 100 is assigned to x.

python

if y == 0:

   x = 100

This code assigns 100 to `x` when `y` equals 0. It uses an `if` statement to check the condition (`y == 0`) and performs the assignment accordingly.

In Python, an `if` statement can be used to conditionally assign a value to a variable. Here’s how you can assign 100 to `x` when `y` equals 0:

python

if y == 0:

   x = 100

In this code:

- `if y == 0:` checks if the variable `y` is equal to 0.

- If the condition (`y == 0`) is true, then the statement `x = 100` is executed.

- If `y` is not equal to 0, `x` will remain unchanged (assuming it has been previously defined).

This construct is straightforward: it assigns 100 to `x` only when `y` meets the specified condition. If you need `x` to have a default value when `y` is not 0, you should define `x` beforehand or provide an `else` clause to handle other cases. For example:

python

if y == 0:

   x = 100

else:

   x = default_value  # define default_value according to your needs

This ensures `x` always has a defined value, depending on the value of `y`.

Discuss trends in cellular data transmission speeds

Answers

Answer:

  There are various types of cellular data with the different transmission speeds that are: 1G,2G,3G and 4G.

1st generation network:

The 1st generation network is known as cellular network data transmission that contain analog system. It has 2.4kbps speed range. It is widely used in various services like public voice.

 2nd generation network:

The second generation network is basically based on the digital system. The global positioning system (GSM) is one of the important service in the 2nd generation network. It basically provide different types of services that are:

    GSM provide upto 2.5G range of speed and GSM EDGE upto 23kbps services.

 3rd generation network:

 It the wireless service that is basically based on the digital system. It provide various types of services like mobile interne, video calling and wireless type of telephones.

  4th generation network:

 It is one of the high digital data transmission rate and it is basically represented as the LTE.  The 4G provide many types of services like  multimedia services and telephone and gaming services.

Answer:

   Worldwide, operators and manufacturers like Samsung, Xiaomi, LG, Motorola, ZTE or Huawei are adapting equipment to offer consumers this kind of revolutionary connectivity that comes to the market.

   The expectation that we are facing a technological breakthrough is because 5G has the potential to change the way we use the internet.

   If 4G and its variations allowed us to connect people, 5G will allow us a much broader connection to the things around us. Your phone, for example, will probably be faster than your home's wifi.

   The speed of 4G, which is probably within your grasp right now, is 1 Gbps per second. The new network, at its full potential, will be able to deliver a standard speed of 20 Gbps per second, according to UK regulator Ofcom.

   What does this mean in practice? How long does it take to download a 5G video? And watch a movie in streaming?

Downloading a 1-hour playlist on Spotfy took about 7 minutes with 3G, 20 seconds with 4G, and with 5G that time would be 0.6 seconds.

   If you want to take a movie to watch while you're on the go - offline - service offered by platforms like Amazon Premium or Netflix - it will take you 3.7 seconds to download it while spending about 2 minutes on 4G .

   The popular Fortnite game takes 14 minutes to download using 4G technology and the expectation is that with 5G it will take 24 seconds.

   In terms of speed, one of the key factors is called latency, ie the network's responsiveness to a request.

   With 5G, it will be reduced to one millisecond - a significant gain compared to the 20 seconds of the 4G network.

   It's an essential factor "for activities such as broadcasting a live game in virtual reality or for a surgeon in New York to control a pair of robotic arms performing a procedure in Santiago," explains the next-generation networking optics expert, Abraham Valdebenito in an article.

   In short, we can send and receive data almost instantly.

. Which of the following is a command in MySQL for creating a database called 'game_data'?
(a) INSERT DATABASE game_data;
(b) CREATE DATABASE game_data;
(c) MAKE DATABASE game_data;
(d) NEW DATABASE game_data;

Answers

Answer:

The correct option for the following question is option(b) i.e CREATE DATABASE game_data;

Explanation:

The CREATE  command is used to create the database in MySQL .The syntax for creating a database is given as  

Create database database name ;

Here database name is game_data

So the query is CREATE DATABASE game_data;

Insert command is used for inserting the value into database not for creating the database .so option(a) is wrong .

MAKE and NEW  are not any command so these both the option are wrong.

Therefore the correct answer is option(b);

What is the value of y when this code executes?

def foo(x) :
if x >= 0 :
return 6 * x

y = foo(-10)

y = None

y = 60

y = -60

y = 20

Answers

Answer:

The operation of 6*x only executes if x is greater or equal to 0, since x=-10 and -10 is less than 0, the operation does not execute. For this reason,  the value of y using this code is None.

Explanation:

In python a function is defined with the syntaxis:  

def function(x):  

the operation to execute (x)

value to return

In this case, the function is foo and the parameter is x:  

def foo(x):

  if x>= 0:

     return 6*x

The code starts by assigning a value to x. Then, the code asks if the value of x is grater or equal to 0, if this condition is meet, then the code returns the value of 6 times x, if not, then the code does not return a value. In this case, x is -10 and this value is not grater or equal to 0. Given that the condition is not met, then the code stops executing and the value of y is none.

Other Questions
Help me please. Solve this equation with the steps. -510^x=-31. Thank you I have 2 electrons in first shell 8 in the second shell and 6 in 3 shell Given 35,000, find each share in the ratio 2:5 Describe the outcome of irregular mitosis, meiosis I and meiosis II. be sure use all relevant terminology and to note the impact on chromosomal number in each circumstance. If you misspell a word in your Java program, it may be true thatI. the program will not compileII. the program may compile but not runIII. the program may compile and run, but still have a logic errorA. I and II onlyB. I and III onlyC. II and III onlyD. I, II and III Suppose that a particular algorithm has time complexity T(n) = 10 2n, and that execution of the algorithm on a particular machine takes T seconds for n inputs. Now, suppose you are presented with a machine that is 64 times as fast as your current machine. How many inputs can you process on you new machine in T seconds? At one instant a bicyclist is 21.0 m due east of a park's flagpole, going due south with a speed of 13.0 m/s. Then 21.0 s later, the cyclist is 21.0 m due north of the flagpole, going due east with a speed of 13.0 m/s. For the cyclist in this 21.0 s interval, what are the (a) magnitude and (b) direction of the displacement, the (c) magnitude and (d) direction of the average velocity, and the (e) magnitude and (f) direction of the average acceleration? (Give all directions as positive angles relative to due east, where positive is meaured going counterclockwise.) Based on the map, where does Marco Polo go after he visits Hormuz and continues to travel east? Select two options.A) VeniceB) DhofarC) CathayD) the Mediterranean SeaE) Mongolia f(-2) : f(x)= -x^2+5x-12 Green Caterpillar Garden Supplies Inc.Balance sheet for year ending December 31 ($ million)Current assets: Year 1 Year 2Cash and equivalent 1384 1107Account receivable 504 405Inventories 1485 1188Total Current assets 3375 2700Net fixed assetsNet plant & equipment 4125 3300Total assets 7500 6000Liabilities and equityCurrent liabilities:Account payable 0 0Accruals 70 0Notes payable 399 375Long term debt 1406 1125Total debt 1875 1500Common equityCommon stock 3656 2925Retained earning 1969 1575Total common equity 5625 4500Total liabilities & equity 7500 6000Statement #2: In Year 2, Green Caterpillar Garden Supplies Inc. was profitable. This statement is ____, because: (A) Green Caterpillars total assets increased between Years 1 and 2.(B) The cash and equivalents account increased between Years 1 and 2.(C) Green Caterpillars retained earnings account increased between the end of Years 1 and 2. How many protons are in an atom of copper?How many electrons are in an atom of copper?How many neutrons are in an atom of copper? Roundyour answer to the nearest whole number. Identify and label the numbered parts of the male reproductive system in the diagram. Matrices A and B are square matrices of the same size. Prove Tr(c(A + B)) = C (Tr(A) + Tr(B)). (a) What is the force of gravity between two 1160 kg cars separated by a distance of 35 m on an interstate highway? (b) How does this force compare with the weight of a car? Brothers, Patrick and Michael, do not look very much alike. Patrick has green eyes and blond, curly hair like his mother. Michael has blue eyes and dark brown, straight hair like his father. These directly observable characteristics are a)phenotypes. b)genotypes. c)chromosomes.d)DNA. what is 10 = 7 - m.? The route followed by a hiker consists of three displacement vectors A with arrow, B with arrow, and C with arrow. Vector A with arrow is along a measured trail and is 1550 m in a direction 25.0 north of east. Vector B with arrow is not along a measured trail, but the hiker uses a compass and knows that the direction is 41.0 east of south. Similarly, the direction of vector vector C is 20.0 north of west. The hiker ends up back where she started, so the resultant displacement is zero, or A with arrow + B with arrow + C with arrow = 0. Find the magnitudes of vector B with arrow and vector C with arrow. By default, client DHCPv6 messages are sent using _____ scope. (Points : 3) the anycast address router's prefix the link-local FF02::0A None of the above Please answer this correctly How many miles will a car drive on 25 L of gasoline if the car average mileage is 60 km/gal. provide answer with correct significant figures.