What is the output by the code below system.out.print(8-4+2);

Answers

Answer 1

Answer:

6

Explanation:


Related Questions

can a 3048 hp motherboard support a i7 10700k cpu?

Answers

Answer:

Yes

Explanation:

Answer:

yes it can

Explanation:

no need to explain

Why do Selection Sort and Insertion Sort’s outer loops run 11 iterations if there are 12 elements in the array?

Answers

Answer:

The final case in selection sort is trivially sorted.

The final iteration in insertion sort is not needed.

Explanation:

For selection sort, you make sub arrays and find the smallest element placing it in the front and repeat until sorted.  This guarantees the final element will already be the greatest element, thus it is trivially sorted.

For Insertion sort, you use the initial element and compare it to the previous element and swap if the current is larger than the previous.  Using this sort, you will always perform n-1 comparisons where n is the total amount of elements in the array.  Thus, there are only 11 iterations for a 12 element array.

Cheers.

Cloud vendors that are hosting hardware, operating system, database, and other software, which clients can then use to build their own applications, are said to be providing: _______

a. Software as a Service.
b. Hardware as a Service.
c. Platform as a Service.
d. Service Oriented Architecture.
e. Service Level Agreement.

Answers

Answer:

a. Software as a Service.

Explanation:

These Cloud vendors are said to be providing Software as a Service. This is because regardless of that the underlying specs are in regards to hardware, operating systems, database, etc. The vendor is selling a subscription to their cloud software which bundles all of these services together. Therefore, what they are ultimately providing is a Software that the individual can use as a service, and enjoy all of the included benefits/capabilities.

Create a program that displays a menu to select addition, subtraction, or multiplication. Using random numbers between 0 and 12 (including 0 and 12), present a math problem of the type selected to the user. Display a "correct" or "incorrect" message after the user enters their answer. In C++

Answers

Answer:

This question is answered using C++

#include<iostream>

#include <cstdlib>

#include <ctime>

using namespace std;

int main(){

   int ope, yourresult;

   cout<<"Select Operator: \n"<<"1 for addition\n"<<"2 for subtraction\n"<<"3 for multiplication\n";

   cout<<"Operator: ";

   cin>>ope;

   srand((unsigned) time(0));

   int num1 = rand() % 12;

   int num2 = rand() % 12;

   int result = 1;

   if(ope == 1){

       cout<<num1<<" + "<<num2<<" = ";

       result = num1 + num2;

   }

   else if(ope == 2){

       cout<<num1<<" - "<<num2<<" = ";

       result = num1 - num2;

   }

   else if(ope == 3){

       cout<<num1<<" * "<<num2<<" = ";

       result = num1 * num2;

   }

   else{

       cout<<"Invalid Operator";

   }

   cin>>yourresult;

   if(yourresult == result){

       cout<<"Correct!";

   }

   else{

       cout<<"Incorrect!";

   }

   return 0;

}

Explanation:

This line declares operator (ope) and user result (yourresult) as integer

   int ope, yourresult;

This prints the menu

   cout<<"Select Operator: \n"<<"1 for addition\n"<<"2 for subtraction\n"<<"3 for multiplication\n";

This prompts the user for operator

   cout<<"Operator: ";

This gets user input for operator

   cin>>ope;

This lets the program generates different random numbers

   srand((unsigned) time(0));

This generates the first random number

   int num1 = rand() % 12;

This generates the second random number

   int num2 = rand() % 12;

This initializes result to 1

   int result = 1;

If the operator selected is 1 (i.e. addition), this prints an addition operation and calculates the actual result

   if(ope == 1){

       cout<<num1<<" + "<<num2<<" = ";

       result = num1 + num2;

   }

If the operator selected is 2 (i.e. subtraction), this prints an subtracttion operation and calculates the actual result

   else if(ope == 2){

       cout<<num1<<" - "<<num2<<" = ";

       result = num1 - num2;

   }

If the operator selected is 3 (i.e. multiplication), this prints an multiplication operation and calculates the actual result

   else if(ope == 3){

       cout<<num1<<" * "<<num2<<" = ";

       result = num1 * num2;

   }

If selected operator is not 1, 2 or 3, the program prints an invalid operator selector

   else{

       cout<<"Invalid Operator";

   }

This gets user input

   cin>>yourresult;

This checks if user result is correct and prints "Correct!"

   if(yourresult == result){

       cout<<"Correct!";

   }

If otherwise, the program prints "Incorrect!"

   else{

       cout<<"Incorrect!";

   }

   return 0;

In the Solmaris Condominium Group database, the number of the condo unit needing service with service_id 6 is _____.

Answers

Answer:

C06

Explanation:

From the attached table or images of Solmaris Condominium Group database we can see that the "ServiceRequest" table has 'ServiceID 6' attached to 'CondoID 14'.

However, in the "CondoUnit" table, we have the 'CondoID 14' attached to 'UnitNum C06.'

Hence, In the Solmaris Condominium Group database, the number of the condo unit needing service with service_id 6 is "C06"

The TCP _____ is the amount of information that a machine can receive during a session and still be able to process the data.

Answers

Answer:

transport layer protocol

Explanation:

The full form of TCP is Transmission Control Protocol. It is defined as the standard of establishing and maintaining a network conversation with the help of which the programs can exchange information and data. TCP works with IP or Internet Protocol.

The application programs uses the TCP transport layer protocol to receive data which is in the form of byte streams that contains the information in the commands. TCP is also called as the "connection-oriented" protocol.

A programmer must add 1 to the value stored in the int variable sum. One way is given to get you started. Write two more distinct ways to add 1 to the value stored in sum.

Answers

Answer:

option 1: sum++

option 2: ++sum

Explanation:

In programming, a variable a container or memory location assigned to a value. The C++ syntax specifies the memory location type of value on the declaration. The major types of variables in C++ are; integer, float, double, char, string, and boolean.

To add 1 to an integer variable, the variable value could be summed with one and assigned to that same variable or '++before' and 'after++' with adds one to the variable before and after the execution of a statement.

How does SQL allow implementation of the entity integrity and referential integrity constraints?

Answers

Explanation:

Entity Integrity

The Entity Integrity helps to ensure each row in a table to be a uniquely identifiable entity. For example, product ID column  of products table is a primary key for the table.

Entity integrity ensures any two properties for the primary keys. The primary key for a row is unique. The primary key is not null, no component of the primary key my be set tonal. This property is unique and the second property ensures that primary key has a meaning has a value.

Referential integrity

The Referential integrity make sure that the relationship between tables remains or data is inserted, deleted or even modified. It specifies that the value that appears in a certain relation for a given set of some attributes, it also appears for the certain set of attributes in some other relation.

Referential triggered actions:

The Referential integrity actions are mostly triggered by physical and not by logical, or updates to unique value.

System trigger implement referential integrity actions.

1. Assume that in an implementation of the RSA cryptosystem one modular squar- ing takes 75% of the time of a modular multiplication. How much quicker is one encryption on average if instead of a 2048-bit public key the short exponent e

Answers

Answer:

3 times faster

Explanation:

The full form of RMS is Rivest–Shamir–Adleman. It refers to the public key crypto-system which is mainly used for securing the data transmission. It is one of the oldest algorithm.

The time taken bu modular squaring is 75 percent of the time required by the modular multiplication. Therefore, one encryption works three times quicker on an average if the short exponent of [tex]$e=2^{16}+1$[/tex] is used instead of the 2048 bit public key.

Olivia wants to send a report to her boss concerning an upcoming project. Which communication format should she use to send a formal message to her boss? A. email B. chat C. forum D. blog

Answers

Answer:

A. Email. It is formal

Explanation:

Answer:

Email

Explanation:

With the advent of cloud computing, different units within a business now share data much more easily. The sharing of data with their suppliers and distributors is also much more streamlined. This is an example of:___________

Answers

Answer:

Electronic data interchange

Explanation:

Electronic data interchange is often referred to or shortened to EDI. It is a contemporary strategy in which various firms carry out or electronically discharge information. Unlike the typical or conventional style of passing information through paper-based.

The purpose is to have an easy and efficient form of transactions without making extraordinary appointments.

Hence, in this case, The sharing of data by businesses with their suppliers and distributors which is also much more streamlined is an example of ELECTRONIC DATA INTERCHANGE

What is the purpose of an End User License Agreement?
to ensure that software users understand their rights and responsibilities
to ensure that software users understand how to use and install the program
to require users to erase installer files after a software migration project
to license users to make multiple changes to proprietary software

Answers

Answer: A. To ensure that software users understand their right and responsibilities

Explanation:

End-User License Agreements are vital for preserving the rights of the company owner/licensor. The correct option is A.

What is an End-User License Agreement?

End-User License Agreements are vital for preserving the rights of the company owner/licensor as well as outlining the terms of usage and controlling the end expectations of the user.

The purpose of the end-user license agreement is to ensure that software users understand their rights and responsibilities.

Hence, the correct option is A.

Learn more about the End-User License Agreement:

https://brainly.com/question/14681311

#SPJ2

Examples of applying successful visual design principles to bring a web page together are _________________. (Choose all that apply)

Question 2 options:

a) balance, contrast, and similarity


b) gestalt, unity, and hierarchy


c) gestalt, scale, and simplicity


d) balance, contrast, and unity


e) balance, control, and dominance

Answers

I think A & D but im note sure but I definitely think A is one of the options

The examples of applying successful visual design principles to bring a web page together include:

a) balance, contrast, and similarityd) balance, contrast, and unity

The importance of visual design is to improve the aesthetic appeal of a product or design by using suitable images, space, layout, color, typography, etc.

It should be noted that balance, contrast, similarity, and unity are important for the application of a successful visual design.

Read related link on:

https://brainly.com/question/14581705

Select the correct navigational path to edit the name of a cell range using name manager

Answers

Answer:

Formula, Name Manager, Edit

Explanation:

for work

Answer:

Formula, Name Manager, Edit

Explanation:

Just did the assignment for Edge 2021

Plz click the Thanks button :)

<Jayla>

For a data structure, such as a stack, who is responsible for throwing an exception if the stack is empty and a pop() is called:______.A. Application User.B. Data Structure Programmer.C. No one, you don't thow an exception in this case.D. End User Programmer.

Answers

Answer:

D. End-User Programmer.

Explanation:

A stack data structure is used to holds data for programs. The first data to go into a stack is always the last to be extracted (First-in-Last-out). Data is read into the stack with the push function and retrieved with the pop function.

When the stack is empty, it means there are no data left to pop from it. If a pop function is issued at this time, the program conventionally throws an error, there is no need for the end-user to write an exception handler for it because the end-user programmer has done that already.

one hex digit is sometimes reffered as

Answers

A Hexadecimal or a Nibble

Write the function powersOf3ToN(n) that takes a possibly-negative float or int n, and returns a list of the positive powers of 3 up to and including n. As an example, powersOf3ToN(10.5) returns [1, 3, 9]. If no such powers of 3 exist, you should return the empty list. You may not use loops/iteration in this problem.

Answers

Answer:

def powersOf3ToN(n):

   try:

       num = int(round(n))

   except (ValueError, NameError, TypeError):

       print("Parameter of the function must be integer or float")

       quit()

   num_list = range(num)

   val_list = [pow(3,x) for x in num_list if pow(3,x) in num_list]

   print(val_list)

powersOf3ToN(30)

Explanation:

The python code prints out a list of integer numbers that are equivalent to the power of three. The function accepts integer and floating numbers but not strings or it prints an error message and quits the program.

thatking374
Yesterday
Computers and Technology
College
answered
Java Eclipse homework. I need help coding this
Project 14A - Basically Speaking

package: proj14A
class: TableOfBases

Create a project called TableOfBases with class Tester. The main method should have a for loop that cycles through the integer values 65 <= j <= 90 (These are the ASCII codes for characters A – Z). Use the methods learned in this lesson to produce a line of this table on each pass through
the loop. Display the equivalent of the decimal number in the various bases just learned (binary, octal, and hex) as well as the character itself:
Decimal Binary Octal Hex Character
65 1000001 101 41 A
66 1000010 102 42 B
67 1000011 103 43 C
68 1000100 104 44 D
69 1000101 105 45 E
70 1000110 106 46 F
71 1000111 107 47 G
72 1001000 110 48 H
73 1001001 111 49 I
74 1001010 112 4a J
75 1001011 113 4b K
76 1001100 114 4c L
77 1001101 115 4d M
78 1001110 116 4e N
79 1001111 117 4f O
80 1010000 120 50 P
81 1010001 121 51 Q
82 1010010 122 52 R
83 1010011 123 53 S
84 1010100 124 54 T
85 1010101 125 55 U
86 1010110 126 56 V
87 1010111 127 57 W
88 1011000 130 58 X
89 1011001 131 59 Y
90 1011010 132 5a Z

Answers

Answer:

que es eso no entiendo espero que te respondan

Define and describe NAS. Assume you must implement a shared file system within the cloud. What company would you select

Answers

Answer:

The answer is below

Explanation:

1. NAS which is an acronym for Network-attached storage is a file computer data storage whereby a server connected to a computer network allows numerous users and heterogeneous clients to possess data access from a consolidated storage capacity.

For example various users on a local area network having data access to the central storage through a standard Ethernet connection.

2. Rackspace: this is because it offers a wide range of cloud computing services including but not limited to cloud hosting that covers but no huge subscribers.

They have a huge and efficient capacity across the globe.

They also offer pay as you go, which can be cheaper to manage.

Java Eclipse homework. I need help coding this
Project 14A - Basically Speaking

package: proj14A
class: TableOfBases

Create a project called TableOfBases with class Tester. The main method should have a for loop that cycles through the integer values 65 <= j <= 90 (These are the ASCII codes for characters A – Z). Use the methods learned in this lesson to produce a line of this table on each pass through
the loop. Display the equivalent of the decimal number in the various bases just learned (binary, octal, and hex) as well as the character itself:
Decimal Binary Octal Hex Character
65 1000001 101 41 A
66 1000010 102 42 B
67 1000011 103 43 C
68 1000100 104 44 D
69 1000101 105 45 E
70 1000110 106 46 F
71 1000111 107 47 G
72 1001000 110 48 H
73 1001001 111 49 I
74 1001010 112 4a J
75 1001011 113 4b K
76 1001100 114 4c L
77 1001101 115 4d M
78 1001110 116 4e N
79 1001111 117 4f O
80 1010000 120 50 P
81 1010001 121 51 Q
82 1010010 122 52 R
83 1010011 123 53 S
84 1010100 124 54 T
85 1010101 125 55 U
86 1010110 126 56 V
87 1010111 127 57 W
88 1011000 130 58 X
89 1011001 131 59 Y
90 1011010 132 5a Z

Answers

Answer:

I can't just do your project but use this as a head start.

Explanation:

public class TableOfBases

{

   public static void main(String[] args)

   {

       // print out "Decimal    Binary   Octal   Hex    Character";

       //  write a for loop from 65 to 90

       for (int i ...  ) {

         // get a string for integer i with base 2

           String binary = Integer.toString (i,2);

         // get a string for integer i with base 8

           String octal = Integer.toString( ...   );

         // get a string for integer i with base 16

           String hex =  ...

        // get a char for a chararater that has ASCII code i

           char ch = (char) i ;

         // print out binary, octal and hex, and ch

       }

   }

}

/*

Project... Basically Speaking

Create a project called TableOfBases with class Tester.

The main method should have a for loop that cycles through the integer values

65 <= j <= 90 (These are the ASCII codes for characters A – Z).

Use the methods learned in this lesson to produce a line of this table on each pass

through the loop. Display the equivalent of the decimal number in the various bases

just learned (binary, octal, and hex) as well as the character itself:

Decimal Binary Octal Hex Character

65 1000001 101 41 A

66 1000010 102 42 B

67 1000011 103 43 C

68 1000100 104 44 D

69 1000101 105 45 E

70 1000110 106 46 F

....

71 1000111 107 47 G 72 1001000 110 48 H 73 1001001 111 49 I 74 1001010 112 4a J 75 1001011 113 4b K 76 1001100 114 4c L 77 1001101 115 4d M 78 1001110 116 4e N 79 1001111 117 4f O 80 1010000 120 50 P 81 1010001 121 51 Q 82 1010010 122 52 R 83 1010011 123 53 S 84 1010100 124 54 T 85 1010101 125 55 U 86 1010110 126 56 V 87 1010111 127 57 W 88 1011000 130 58 X 89 1011001 131 59 Y 90 1011010 132 5a Z

*/

Write a program whose inputs are three integers, and whose output is the smallest of the three values.Ex: If the input is:7153the output is:3

Answers

Answer:

The program is written in C++ language and given below in explanation section. All bold faced words are C++ keywords and symbols. Nested         if-else decision branch is used to determine smallest number of all three integers. First of all you have input three integers then the program prints smallest integer of all

Explanation:

#include <iostream>

using namespace std;

int main() {

   int num1,num2,num3;

   cout<<"enter first integers"<<endl;

   cin>>num1;

   cout<<"enter second integers"<<endl;

   cin>>num2;

  cout<<"enter the third integers"<<endl;

   cin>>num3;

   if(num1<num2){

      if(num1<num3){

           cout<<"Smallest integer is "<<num1<<endl;

       } else{

           cout<<"Smallest integer is "<<num3<<endl;

       }

   }else {

       

      if(num2<num3){

           cout<<"Smallest integer is "<<num2<<endl;

       } else{

           cout<<"Smallest integer is "<<num3<<endl;

       }

   }

  return 0;

}

HTML question please help

Answers

Answer:

background-color: (Color)

Explanation:

This is actually CSS coding, as you would code it like:

Body {

background-color: (Color)

}

Could someone help! I need to write a Python program based on Graphical User Interface.
The sum of the terms of an arithmetic progression and the identification of that value
with being “LESS OR EQUAL TO 50” or “GREATER THAN 50”
The program must have a program presentation window, containing at least one image and
two buttons, which will open other windows: one for data entry (the value of the first term,
reason and number of terms) and another for presentation by group members (credits). At
window for data entry (with another image), there will be a button that when pressed (clicked)
will show the calculated sum value and the identification of that value. This may appear in the same
(data entry) window.

Answers

Answer:

I can help with the code for performing the maths but the GUI aspect of it

It is important to understand the different types of DoS attacks and the symptoms of those attacks. Leaving a connection half open is a symptom of which type of attack?

Answers

Answer:

SYN flood attack.

Explanation:

Doing this is a symptom of an SYN flood attack. Attackers performing this type of DoS attack will try and open as many connections as possible but never fully finish the connection. This ultimately causes the system to use all of its computing power to try to resolve these failed connections which would cause the system to crash or become unresponsive. Therefore, denying service to potential clients if done correctly. This is just one of the many types of DoS attacks that exist.

What is the difference between a master device in a Bluetooth network and a base station in an 802.11 network?

Answers

Answer:

In an 802.11, a master device in a bluetooth network organize themselves into a "Piconet" of up to 8 slave devices. In an 802.11, a base station is a receiver and transmitter that plays a role of the WIFI network.

Explanation:

802.11 is the original wireless specification and it was developed by IEEE. IEEE stands for Institute of Electrical and Electronic Engineers (IEEE).

In an 802.11, a master device in a bluetooth network organize themselves into a "Piconet" of up to 8 slave devices. In an 802.11, a base station is a receiver and transmitter that plays a role of the WIFI network.

Which of the following tasks could be implemented as a filter using only a constant amount of memory (e.g., a couple of int or double variables and no arrays)? Mark all that apply.
For each, the input comes from standard input and consists of n real numbers between 0.0 and 1.0.

Print the sum of the squares of the n numbers
Print the maximum and minimum values of the n numbers
Print the percentage of numbers greater than the average of the n numbers
Print the median of the n numbers
Print the average of the n numbers
Print the n numbers in uniformly random order
Print the n numbers in increasing order

Answers

Answer:

Print the sum of the squares of the n numbers

Print the percentage of numbers greater than the average of the n numbers

Print the median f n numbers

Explanation:

The computer programs have different configurations based on the assigned tasks. The constant amount of memory is used by the cache. This is the new technology in the computer software which consumes only small amount of memory and activates once the task is assigned to it.

What is one requirement for achieving Continuous Deployment

Answers

Answer:

You need to get everything in version control. You need to automate the entire environment creation process.

Explanation:

You need a deployment pipeline where you can create test and production environments, and then deploy code into them, entirely on demand.

hope this helped ^^

The one requirement for achieving Continuous Deployment is to get everything in version control. You need to automate the entire environment creation process.

What are the requirements to create test and production?

One need a deployment pipeline where you can create test and production environments, and then deploy code into them, entirely on demand. Development pipeline is a central part of continuous deployment.

Development pipeline  can be  used to provide quick feedback to the team during deployment. Development pipeline works in different ways and  software deployment can be divided in different stages and each stage is used to run a task to complete a deveploment on continuous basis.

System deployment is a challenging task that is an essential part of the software development lifecycle (SDLC), but it is almost completely overlooked by writers in favor of more exciting subjects like distributed object creation, components, or the newest SDK.

Therefore, The one requirement for achieving Continuous Deployment is to get everything in version control. You need to automate the entire environment creation process.

Learn more about environment on:

https://brainly.com/question/13107711

#SPJ2

Write code that generates a random odd integer (not divisible by 2) between 50 and 99 inclusive.

Answers

import random

nums = [x for x in range(50,100) if x%2!=0]

print(random.choice(nums))

We use a list comprehension to create a list of the odd numbers between 50 and 99. Then we randomly choose one of those numbers using the random module.

What is the Big-Oh of the following computation? int sum = 0; for (int counter = 1; counter < n; counter++) sum = sum + counter;

Answers

Answer:

The Big-O notation of the algorithm is O(n)

Explanation:

The declaration and update of the integer variable sum is a constant of O(1). The for loop statement, however, would repeat relative to the size of "n", increasing the counter variable and updating the sum total by the counter.

help plzzzzzzzzzzzzzzzzzzzzzzzzz

Answers

B, Parallel ports are faster than serial ports.

A parallel port can move a set of 8 bits at a time on eight different wires, it uses a 25 pin connector, called a DB-25 connector, whereas a serial port only has a DB-9 connector.

Other Questions
The profile picture that you plan to use to market your professional brand on social media networks should feature you only.TrueFalse What is the result of 5 divided by one-fifth? 5 fraction bars. Each bar is labeled 1 with 5 boxes labeled one-fifth underneath. StartFraction 1 Over 25 EndFraction One-fifth 1 25 pls answer this its due What's the price at which the quantity of demand for a product equals the quantity of supply? (part 2)PLEASE HELP! IN A HURRY! WILL GIVE BRAINLIEST! g(n) =-n + 2How can I find the inverse of this equation? What is the next line?>>> myDeque = deque('abc')>>> myDeque.appendleft('x')>>> myDeque A. deque([ 'b', 'c'])B. deque(['x', 'a', 'b', 'c'])C. An error statement since deques do not have an appendleft method.D. deque([' 'a', 'b', 'c', 'x']) Identify the organelles in the cell. Label A Label B Label C Label D What will you give me for fly ride griffin The word praries does it has the long i vowel sound or short Once a month volunteers from the Green Sea Club clean up litter at the beach. Last month, the volunteers picked up 8 pounds of trash in 4 hours. This month, the same group of volunteers will spend 3 hours picking up trash. Are all pleasures commensurable? Can they be evaluated on a single scale? Can some goods, like friendships, be balanced against other goods, like money? 4. What is the difference between cytology and histology?O A. Cytology is the study of the normal functioning of tissues, while histology is the study ofthe abnormal functioning of tissuesO B. Cytology is the study of tissues, while histology is the study of cells.O C. Cytology is the study of cells, while histology is the study of tissues.O D. Cytology is the study of the normal functioning of cells, while histology is the study of theabnormal functioning of cells. WACNFSHCAJ OKAY I NEED SERIOUS HELPWrite a procedure that explains how to use a number line to add integers and counters to subtract integers. Include diagrams and examples. HELP!!! this is due today and im super dumb all help is much appreciated! I was earning $47,000 per year until she received a 7% raise at the start of 2019. What will her new salary be? Write a proportion and show how you solved. Last year Thomson Inc's earnings per share were $3.50, and its growth rate during the prior 5 years was 6.6% per year. If that growth rate were maintained, how many years would it take for Thomson's EPS to triple?a. 17.19 b. 15.99 c. 13.41 d. 15.13 e. 15.81 HELP ASAP PLEASEA plane flies at 350 mph in the direction N 40 E with a wind blowing at 40 mph in the direction S 70 E. What is the planes drift angle?5.896.3845.8946.38 Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Please help ASAP I have 10 minutes leftUse the diagram to the right to answer the following.At which location would earthquakes be least likely tooccur?Select one:A.3B.4C.2D.1