Answer:
Explanation:
The following program is written in Java and is a function that asks the user for an input and keeps doing so until a negative value is entered, in which case it calculates the average and max values and prints it to the screen.
public static void average () {
int num;
int sum = 0;
Scanner in = new Scanner(System.in);
System.out.println("Enter Number");
num = in.nextInt();
int count = 0;
int max = 0;
while(num >= 0)
{
sum+=num;
System.out.println("Enter Number");
num = in.nextInt();
count++;
if(num>=max){
max = num;
}
}
System.out.println(sum/count);
System.out.println(max);
}
Answer:hi
Explanation:
Using the Internet, search and discuss why naming conventions are important and why programmers should consistently follow them. What problems can arise in naming variables if one convention is not followed.
Answer:
Answered below
Explanation:
Some variable naming conventions include;
1) Variable should begin with either a letter or an underscore.
2) Variables having multiple words should have the first letter of every word after the first word, capitalized. This is the camelCase style.
3) variables should not be named after any of the inbuilt keywords except on special operations to override the original function of such keyword.
4) variable names are case-sensitive.
The importance of following these conventions is to maintain readability and consistency of code. Failure to follow these conventions may lead to chaotic codes, bugs and inefficient performance.
When we add suffix L to a integer it is called as __________
Answer:
Long integer literal.
Explanation:
Integer literal can be defined as numbers that do not contain any decimal point or augmented part. An integer literals can be characterized as decimal, octal, or hexadecimal constant. When an integer liteal is added with prefix it tends to define its base, whereas suffix define its type.
The suffix L to an integer literal means long integer literal. The suffix can be written in any form, either upper case (L) or lower case (l).
Therefore, the correct answer is long integer literal.
Which of the following variable names follows the rules for naming variables?
A. snack $
B. favorite_snack
C. lunch time
D. 15 minute snack
NEED HELP WILL MARK BRAINLIEST AND 25 POINTS FOR ANSWER Xavier is using a query that includes a LIKE comparison operator with the value of A[a-n)" Which option would
match this operator?
Apple
Aaron
Assist
Azure
Answer:
This will match the name Aaron
Explanation:
Using square brackets around a range indicates that a single character within the range of the brackets can be match.
In something like the given example
WHERE name LIKE "A[a-n]"
It will match all names that start with a capital A, which is immediately followed by a lowercase a through n.
The default for automatic replies in outlook is what?
Answer:
The default for automatic replies in outlook is turned off, so the user has to turn it on in order to use it.
Out.look is a program developed by Micro.soft for managing e-mails, being together with G.mail one of the most used worldwide. As in most of these programs, you can configure automatic responses in order to give a quick and generic response to certain types of messages (or even all). Now, this option is disabled by default, so the user must activate it through the configuration of the email box.
The default for automatic replies in Outlook is
disabled
It is best to
schedule automatic replies.
Automatic replies may validate your
email to spammers.
Automatic reply rules are for
conditional settings like forwarding a message to a coworker.
The motherboard
allows the different parts of a computer to communicate
helps to keep things cool inside the tower
is the memory of the computer
is where the computer is plugged into an outlet in the wall
Answer:
a:(allows the different parts of a computer to communicate)
Explanation:
The motherboard is the main command center for the whole pc which recieves your inputs and responds by sending outputs...
A Task can be created in Outlook 2016 by clicking on the Tasks navigation item, or by
O clicking on the View tab.
O saving a contact.
O creating an appointment.
O flagging an email.
A Task can be created in Outlook 2016 by clicking on the Tasks navigation item, or by clicking on the View tab. Thus, option A is correct.
What is a Variable Expense?Business expenses can be classified as either fixed (invariable) or variable. A fixed expense does not change based on a business’s other activities. Costs like rent and administrative salaries are fixed costs, which remain the same no matter how much a business is producing. Imagine a factory that produces pencils — the cost of renting the factory building will remain the same, month after month, no matter how many pencils the company actually produces.
Variable expense ratio expresses variable expenses as a proportion of a company's sales. To calculate the variable expense ratio, simply divide the company's total variable expenses by the company's total net sales. To express the result as a percentage, simply multiply it by 100.
Therefore, A Task can be created in Outlook 2016 by clicking on the Tasks navigation item, or by clicking on the View tab. Thus, option A is correct.
Learn more about variable expense on:
https://brainly.com/question/13097236
#SPJ5
What is the correct term for a piece of malware that hides inside a legitimate software program or file from trusted sources
Answer: Trojan horse
Explanation:
Based on the Greek legend of how Greek soldiers hid in a Trojan horse to infiltrate and destroy Troy from within, Trojan horse malware mirrors this attack when attacking software.
It hides inside and disguises itself as a legitimate software program or a file from a trusted source and then when clicked on, it works to infect the software.
Complete the getOdds method so it returns a new ArrayList of Integers containing all odd Integers from the parameter ArrayList vals in the order they originally appeared. The contents of vals should not change. For example if an ArrayList containing the Integers 2, 5, 8, 6, 7, 3, 12 in that order is passed as a parameter to getOdds, it should return an ArrayList containing the Integers 5, 7, 3 in that order. Write your getOdds method in the U7_L2_Activity_Three class. Use the runner class to test your method but do not add a main method to your U7_L2_Activity_Three.java file or your code will not be scored correctly.
Answer:
Answered below
Explanation:
//Program is written in Java programming language.
public ArrayList<Integer> getOdds( ArrayList<Integer> list){
// Create variables to hold the new list and the //indexes.
int i;
ArrayList<Integer> oddList = new ArrayList<Integer>()
//Loop over the list and add every odd element // to the new list
for ( i = 0; i < list.length; I++){
if ( list[i] % 2 != 0){
oddsList.add(list[i])
}
}
return oddList;
}
If an insurance policy covers individual losses up to $10,000 and has a deductible of
$500, the insured will be paid how much in the event of a covered loss of $5,000?
Answer: $4500
Explanation:
The deductible is the amount that the insured that is, the policy holder will have to pay. In this case, there is a covered loss of $5000 and the insured has a deductible of $500.
Therefore, the amount that the insured will be paid will be the difference between $5000 and the deductible of $500. This will be:
= $5000 - $500
= $4500
when you tried to login to server your trail may faild this failure event is recorded in
The programming interface for a legacy motor controller accepts commands as binary strings of variable lengths.
a. True
b. False
Answer:
The answer is "Option a"
Explanation:
The given question is incomplete, that's why its correct solution can be defined as follows:
The above-given question is the part of the Binary Autocomplete, in which this Autocomplete function would be a full word or sentence after just a few other letters were entered into the system. It approach improves text taking appropriate on smartphone devices of particular because every letter should not be written in such a single phrase.
Rita tried unsuccessfully to open a PDF file attachment in her Inbox by double-clicking the attachment in the Reading Pane. What is the most likely reason that the file would not open properly? The PDF attachment should have been right-clicked. PDFs are too large to be sent through most e-mail systems. An add-in for PDFs was not set up in the system. Outlook never accepts PDF files as attachments.
Answer:
3rd option
Explanation:
please help me please help me.
Answer:
dont know man thanks for points tho
but it is 209
Explanation:
Which of the following methods can be used to solve the knapsack problem?
a. Brute Force algorithm
b. Recursion
c. Dynamic programming
d. All of the mentioned
Answer: D. All of those mentioned
Explanation:
The knapsack problem is a problem that typically occurs in combinatorial optimization and is also a 2D dynamic programming example.
We should note that all the methods given in the option such as recursion, brute force algorithm and dynamic programming can all be used to solve knapsack problem.
Therefore, the correct answer is D.
What will be the output of the following:
i) 10%2 ii)10**2
Answer:
The output of 10%2 is 0The output of 10**2 is 100Explanation:
We will see the output one by one.
i) 10%2
The statement consists of modulus operator also called as remainder operator. The remainder operator gives the remainder when the first operand is divided by the second operand. The remainder operator only works on integers.
So the output of the statement will be: 0
ii)10**2
The double asterisk is used for exponent. The second operand is the power and the first operand is the base.
So the output will be: 10**2 = 10^2 = 100
Hence,
The output of 10%2 is 0The output of 10**2 is 100_______ is a standard protocol used for synchronous communication.
Answer:
TCP/IP
Explanation:
Synchronous communication possesses the clocks on easy transmission as well as receiving devices in a lot more significant ways.
So, synchronous communication usually permits more information to be disseminated over a circuit per unit time.
The standard protocol for this synchronous communication is TCP/IP.
rheumatoid arthritis is caused when
Answer:
caused by the immune system attacking healthy body tissue.
Explanation:
all though they are not sure what triggers it
A single inheritance model means: * A) A class can only have one parent class (superclass) B) A class can only have one child class (subclass) C) A class cannot have a parent class (superclass) D) A class cannot have a child class (subclass) E) A class can have multiple parent classes (superclasses)
Answer:
The answer is A)
Explanation:
In programming languages like java you can only use single inhertance meaning a class can only inherit attributes from one class. But in other languanges like C you can have multiple inhertance
Which statement is true for rapid prototyping? (A. It creates a two-dimensional model of a part or a product, from the original model of the product.) (B. It is also known as 2D printing.) (C. It helps to avoid costly mistakes by allowing corrections early in the production process.) (D. It is also referred to as layered modeling.)
Answer:
C: It helps to avoid costly mistakes by allowing corrections early in the production process.
Explanation:
Remember, a prototype refers to an early sample or model of a product that is designed to test and figure out a concept or process.
The Rapid prototyping process has many advantages, besides being faster with the use of 3D dimensional technology, it allows for easy corrections of design/modeling errors early in the production process.
Answer:
C.
Explanation:
Plato
Write a program that takes a set of numbers and determines which is the smallest. Ask the user for the following information, in this order: A terminating value (real number). The user will enter this value again later, to indicate that he or she is finished providing input. A sequence of real numbers. Keep asking for numbers until the terminating value is entered.
Answer:
This solution is implemented in C++:
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main(){
double termnum;
cout<<"Terminating number: ";
cin>>termnum;
double num;
vector<double>numbers;
cout<<"Number: ";
cin>>num;
while(num!=termnum){
numbers.push_back(num);
cout<<"Number: ";
cin>>num;
}
double smallest = numbers.at(0);
for(double x:numbers){
if(x < smallest){
smallest = x;
}
}
cout<<"The smallest is "<<smallest;
return 0;
}
Explanation:
This declares the terminating variable as double
double termnum;
The next italicized lines prompts user for terminating value
cout<<"Terminating number: ";
cin>>termnum;
This declares the user input variable as double
double num;
This declares vector of numbers as double
vector<double>numbers;
The next italicized lines prompts user for number
cout<<"Number: ";
cin>>num;
The following iteration is repeated until the terminating value equals the number supplies by the user
while(num!=termnum){
This pushes the number to a vector
numbers.push_back(num);
The italicized lines prompts user for another number
cout<<"Number: ";
cin>>num;
}
This declares and initializes variable smallest
double smallest = numbers.at(0);
The following for loop determines the smallest of the number set
for(double x:numbers){
if(x < smallest){
smallest = x;
}
}
This prints the smallest of the set
cout<<"The smallest is "<<smallest;
return 0;
Also: See attachment
Match the stages of the desktop publishing process with the corresponding actions.
(Design, Setup, Prepress, Printing, and Content)
enter text and images
create an initial outline or draft of the artwork
choose a specific document template with appropriate DTP software
perform the tasks to get the artwork ready for printing
choose either to print or publish the product online
Answer:
Enter text and images - Content
Create an initial outline or draft of the artwork - Design
Choose a specific document template with appropriate DTP software - Setup
Preform the tasks to get the artwork ready for printing - Prepress
Choose either to print or publish the product online - Printing
--------------
Explanation:
. Else-if is good selection statement that help us to solve problems in C++,mostly times same problem of same nature can also be solved via switch statement. Which one you prefer to use and why?
Answer:
Else-If statements
Explanation:
Personally, I prefer using Else-If statements for conditional statements since you can start with and If statement and add to it if necessary. Aside from this, Else-If statements also allow you to add more than one condition to be met by using tags such as and or and not. Switch statements are better in scenarios where you have a set of possible inputs or results and need a specific event to happen for each input/result, but this is not as common of a scenario so Else-If is usually my go-to conditional statement.
Choose the type of collection created with each assignment statement
____ collection A = {5:2}
Options: tuple, dictionary, list
____ collection B = (5,2)
Options: tuple, dictionary, list
____ collection C = [5,2]
Options: tuple, dictionary, list
Answer:
dictionary
tuple
list
Explanation:
1.in 3 sentences explain briefly what are the examples of the advantage of using multimedia approach in a slide presentation brainly
Multimedia Presentations is very essential in making slide presentation because:
it makes the presentation colorfulIt is often purpose driven andIt challenges one and all listeners to think creativelySome advantages of Multimedia includes
Oresentations made are concise, rich and makes one to develop confidence in language skills.They captivate audience to visualize what is been taught.Multimedia agent includes video podcasts, audio slideshows etc. The use of the multimedia in presentation is also very good and user-friendly. It doesn't take much energy out of the user, in the sense that you can sit and watch the presentation,
Conclusively, It uses a lot of the presenters senses while making use of multimedia such as hearing, seeing and talking.
Learn more from
https://brainly.com/question/19286999
Review the advantages of database management systems in the Connolly textbook. Which two advantages do you think are the most important
Answer:
The two advantages of database management systems that are the most important are:
1. Data sharing: Database management systems enable data to be shared among users from different locations. It provides access to many users of the data, who can make specific data requests to meet their information needs.
2. Data consistency: Database management systems make it possible for all users to have the same data. It eliminates the problem of inconsistent data for decision making.
Explanation:
Basically, a Database Management System (DBMS) is defined as the software that enables end-users to create, read, update, delete, and access data in each database. Among the most notable advantages of Database Management System (DBMS) are improved data sharing and security, minimized data inconsistency, better data integration, improved data access, improved decision making, and increased end-user productivity.
NEED HELP WILL MARK BRAINLIEST AND 25 POINTS FOR ANSWER Which statement best describes a characteristic of a relational database?
It contains tables that are completely independent of one another.
It contains tables with fields that are associated with one another.
It is a feature that is primarily used to navigate databases.
It is a feature that is primarily used to add queries to tables.
The relational database has the characteristic feature of the adjoining of data with one another.
What is a relational database?The relational database is given as the interconnection of the data with the digital database management system.
The relational database is given with the characteristics of the adjoining of data tables and fields associated with one another. Thus, option B is correct.
Learn more about relational database, here:
https://brainly.com/question/13262352
#SPJ2
a user reports that her computer monitor will not allow her to switch back and forth between Microsoft word and internet explorer.
Answer: B. Interrupts
Explanation:
Interrupts is a feature of digital computers that enables the interruption of the process the computer is currently engaged in so that the computer can process the new command. Interrupts is the reason I am able to type this answer because interrupts is interrupting my browser to process my typing.
If a user reports that their computer monitor will not allow her or him to switch back and forth between Microsoft Word and Internet Explorer, it is possible that the interrupts function is not working effectively to enable the switch. by interrupting one of the programs.
Answer:
.....................
B. Interrupts
What would be the result of the following calculation in a spreadsheet?
=5+10/5-3*3-1
a. -1
b. -3
c. 1
d. 3
e. 0
answer: B. -3
Answer:
answer a -1
b-3 hi hello who are you
What needs to be defined throughout an animation sequence to define the start and end points of motion? A. frames B. characters C. key frames D movement
Answer:
c;= , the answer is C key frames
Explanation:
the explanation is because a single still image is an animated sequence that occurs at an important point in that sequence. In order to Define pivotal points of motion before the key frames , in between are drawn or otherwise created to tween the motion between the two key frames. Look it up on the internet ask the exact same question you have wrote down and it will give you this this exact answer your answer is key frames