Write a java program to read elements in an array from user and count total number of duplicate elements in array.
Answer:
Explanation:
The following code is written in Java and is a function/method that takes in an int array as a parameter. The type of array can be changed. The function then creates a counter and loops through each element in the array comparing each one, whenever one element is found to be a duplicate it increases the counter by 1 and moves on to the next element in the array. Finally, it prints out the number of duplicates.
public static int countDuplicate (int[] arr) {
int count = 0;
for(int i = 0; i < arr.length; i++) {
for(int j = i + 1; j < arr.length; j++) {
if(arr[i] == arr[j])
count++;
}
}
return count;
}
Why are backlinks a useful way to see if information on a website is reliable
Answer: It would help because the backlink could have the necessary details about the information being told. Hope it helps!
Describe the purpose and user requirements for the website.
Answer:
The purpose and user requirements for the website is described below in details.
Explanation:
User Requirements represent how user expectations and wherewith they will communicate with the outcome. Use the characteristics, functions, and content expressed in your summaries to elaborate on your requirements. Your user synopses should describe the responsibilities your users want to perform on your site.
What device is required to connect to the Internet?
O Wi-Fi
O an ISP
a router
a modem
Answer:
modem
Explanation:
The primary piece of hardware you need is a modem. The type of Internet access you choose will determine the type of modem you need. Dial-up access uses a telephone modem, DSL service uses a DSL modem, cable access uses a cable modem, and satellite service uses a satellite adapter.
Answer:
D
Explanation:
Edg 2021
How can you make the drawing tools contextual tab appear
Answer:
C. place the insertion point in any text in the text box.
Typically, the Ribbon contains the Draw tab. Here's how to add it, though, if you can't see it on yours. Customize the ribbon by selecting it with the right mouse click. Click OK after selecting the checkbox next to draw. Thus, option C is correct.
What make the drawing tools contextual tab appear?If your Draw Tools are hidden, you can reveal them by bringing up the View menu, selecting Toolbars, and then selecting Drawing. Look at the Draw Tools' features for a bit.
When you click outside these objects, the tools in the contextual tabs are put away, giving you the options and resources you need to deal with them.
Clicking on the item causes the tab to reappear, and you can get them back. Your workspace remains uncluttered as a result.
Therefore, place the insertion point in any text in the text box.
Learn more contextual tab about here:
https://brainly.com/question/14139335
#SPJ2
anyone else parents take your phone and you ask for it nicely and they say no and you ask why and they ignore you
Answer:
that's the same situation with me but with other objects cuz me no have ph0nE
Explanation:
when i was a smol chiLd i would get beat if i didnt know my multiplication table l0l
Which actions help to protect a computer and keep it running properly? Check all that apply.
performing regular scans
deleting any unwanted files
backing up files and other data
saving Internet browsing history
saving and storing all junk files
Answer:
ABC
Explanation:
100% EDGE 2022
100 pints
Question # 1 Match List You have used different ways to store data. Match each definition with its type.
movieCost = 4.95
movieStars = ['Carrie Fisher', 'Harrison Ford']
movie = 'Star Wars'
movieID = 132
movieAwards = ('Oscar', 'Golden Globe', 'Director's Guild') movieRatings = {5:'language', 3:'violence'}
words that needs to be used
string
int
float
list
dictionary
turple
Answer:
movieCost=4.95
Float
movieStars = ['Carrie Fisher', 'Harrison Ford']
List
movie= 'Star Wars'
String
movieID=132
int
movieAwards = ('Oscar', 'Golden Globe', 'Director's Guild')
Tuple
movieRatings = {5:'language', 3:'violence'}
Dictionary
Explanation:
movieCost = 4.95
movieCost is of float type because it has a decimal point.
movieStars = ['Carrie Fisher', 'Harrison Ford']
movieStars if of list type because in Python the elements of list is inside square brackets.
List is an ordered collection. List is mutable i-e items can be added and remved from the list
movie = 'Star Wars'
movies is a string type because it is in enclosed in single quotes only.
movieID = 132
movieID is of int type because it is only number, without decimal value.
movieAwards = ('Oscar', 'Golden Globe', 'Director's Guild')
movieAwards is a tuple type because it is enclosed in round brackets or parenthesis.
Tuple is a sequence object. It is ordered collection of item. it is immutable.
movieRatings = {5:'language', 3:'violence'}
MovieRating is a dictionay type because it is in key-value pair. it is an unordered collection.
What are the two negative impacts of computer technology to the society?
One negative is that people are getting very impatient. This is because people are getting used to things instantly coming up onto their screens. Another negative is that people are being manipulated more easily. Nowadays anyone can be an expert if they sound smart enough. Then they can spread their lies quickly to millions of people.
Communication of the binary data via the voltage level for each time interval.
a
voice assistant
b
machine language
c
voltage
d
digital signal
Answer:
D
Explanation:
Answer:
D. Digital signal
Explanation:
Edge 2022
put each sentence in the correct place please :)
the first image matches with the last sentence.
the second image (fireworks) match with the first sentence.
the third image (rocket) matches with sentence two.
and the last image matches the third sentence.
Answer:
sentence 1 -> picture in box 2
sentence 2 -> picture in box 3
sentence 3 -> picture in box 4
sentence 4 -> picture in box 1
Do saving and loans associations have different categories?
Answer:
No
Explanation:
Because Savings and loan associations (S&Ls) are one of four types of "banks", there only one of four, not two of four
Submit a paragraph about how people earn income online.
Answer:
Selling services or products, generating traffic for ad revenue or investing in different types of products / companies.
Explanation:
plzz help me with this question.........
Write a program to input a number find the sum of digits and the number of digits. Display the output also.......
sample input - 7359
sample digits - 24
number of digits - 4
Answer:
please mark as brainliest!!
Explanation:
public class SumOfDigits{ public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.println("Please enter a number to calculate sum of digits"); int number = sc.nextInt(); // Remember number/10 reduces one digit from number // and number%10 gives you last digit int sum = 0; int input = number; while (input != 0) { int lastdigit = input % 10; sum += lastdigit; input /= 10; } System.out.printf("Sum of digits of number %d is %d", number, sum); // closing Scanner to prevent resource leak sc.close(); } }
What is the purpose of slicing?
a. To combine characters in order to form a single string
b. To combine two or more strings into one big string
c. To pull out a group of characters from a string
d. To pull out one specific character from a string
Answer:
C
Explanation:
Because a and b are talking about combining and when you slice you don't combine when you slice and when you slice something its into 2 or more parts, unlike what d says
9. What will help you determine the kinds of tools, equipment and utensil you will assemble, sanitize, inspect or check?
a. the kind of product to be produced
b. the method of food processing to be done
c. the raw materials to be processed
d. the availability of tools, equipment and utensils
Explanation:
b. the method of food processing to be done
What is the other name of the horizontal column graph?
graph is also known as the horlzontal column graph.
Answer:
Side Graph mabye?
Explanation:
Answer:
A bar graph.
Explanation:
A bar graph is also known as the horizontal column graph.
I have a problem with my Nintendo DS lite does anyone know how to fix it?
Try checking if the battery is still working, they usually tend to give out at times.
Which of the following identifies the most appropriate courses to take in high school for someone interested in becoming a mechanical engineer?
drafting- and math-related courses
math- and science-related courses
computer- and design-related courses
science- and computer-related courses
Answer: New questions in Health
Which member of the multidisciplinary team would help a patient improve his flexibility in the joints after a knee-replacement surgery? A. a physiot…
What are two advantages of a multidisciplinary team approach? better diagnosis in complex cases shared responsibility for decisions more opportunit…
MARKING PEOPLE AS BRAINLIST PLEASEEE HELP Where is the carbon dioxide picked up and the oxygen unloaded in the body? A:Arteries B:Veins C:Capillar…
Which healthcare professional would be primarily responsible for treating a patient for his anxiety disorder after a surgery? A. a nurse B. a nutr…
Do Now: What might be a situation where it might be important to identify 3 points somebody? What are different strategies that scientists could use …
Explanation:
Which statements are true? Select 4 options.
A class variable can be a different type of class.
A class variable can be a list of instances of a different class.
An instance of a class cannot be changed after it is created.
Functions defined in a class are called methods.
Variables defined in the constructor of a class can be accessed by the main program that uses instances of the class.
Answer: All of the answers are correct EXCEPT "An instance of a class cannot be changed after it is created.
Explanation: I've done the problem. Also, if you have an instance of a class, you can no longer change it. It is frozen in time as that one instance. If had a class defining pets and you made an instance dogA where the pet was a brown medium sized dog, dogA would always be a brown medium sized dog. I think, at least.
Answer: A class variable can be a different type of class.
A class variable can be a list of instances of a different class.
Functions defined in a class are called methods.
Variables defined in the constructor of a class can be accessed by the main program that uses instances of the class.
Explanation:
got it right on edgen
PLS HELP BEING TIMED!!!
Complete the following sentence.
The basics of managing money such as balancing a checkbook and making a budget are _____
skills
Answer:
Bank Rate skills
Explanation:
because it is i believe
write a c++ program that prints the intial letter of any name
Answer:
#include<iostream>
using namespace std;
int main(){
char str[20];
int i=0;
std::cout<<"Enter a name:" ;
cin>>str;
cout<<*str;
while(str[i]!='\0'){
if(str[i]==' '){
i++;
cin>>*(str+i);
}
i++;
}
return 0;
}
how do I take a picture of myself on an apple computers?
Answer:
with the camera
Explanation:
Answer:
press the camera and take a pic??
Explanation:
is it just me or do people delete other peoples questions and it shows up in my inbox staying its mine
Answer:
yessss same bru.h
Explanation:
Answer:
ive had that happen before i dont know why it happens
What will you see on the next line?
>>> aList = [12, 3, 5, 7, 7]
>>> aList.index(7)
1
7
3
2
Answer:
its 3, just did it on edg 2020
Explanation:
sdfdsfdsfdsfsdfsdf vote me brainliest!
The next line after >>> aList = [12, 3, 5, 7, 7], >>> aList.index(7) is 3. The correct option is c.
What is an array?A group of identical objects or pieces of data held near to one another in memory is referred to as an array. An array type is a user-defined data type that consists of an ordered collection of objects of a single data type. Ordinary array types have a set maximum number of elements they can hold and use the ordinal position as the array index.
The unordered list that is a part of the simple array is thus visible. The unordered list can be converted to an ordered list by executing the command "aList. sort()".
So, the next line will be:
>>> aList = [12, 3, 5, 7, 7]
>>> aList.index(7)
3
Therefore, the correct option is c. 3.
To learn more about array, refer to the link below:
brainly.com/question/14915529
#SPJ2
What routing protocol is the most popular distance-vector routing algorithm used to determine the best routes within a network
Answer:
RIP
Explanation:
RIP is a routing protocol that stands for Routing Information Protocol. It is a distance-vector routing algorithm which uses a hop count for routing its metric. RIP is the most popular and frequently used on internet. RIP uses hop count, which means it goes from low hop count to high hop count.
Therefore, it is the Routing Infomation Protocol which is the most popular distance-vector routing algorithm used to determine the best routes within a network.
HELP ME!!! I WILL GIVE BRAINLY THINGY!!!
What does the code if (num2==50){ do?
Answer:
What subject is this?
Explanation:
Write 5-7 sentences about your own personal observations in which you have been part of a "filter". You might have experienced this is in your Twitter feed, specific advertisements, or your search engine results. Be specific.
Answer:
Answered below.
Explanation:
I made a search for a product on an online grocery store. The search results came in and I bought the product. On subsequent visits to the grocery store website or on browsing other sites, I had special advertisements pop up. These advertisements were suggesting products to me similar to the one I bought on the grocery store. It was a targeted advertisement that had been sent based on my recent searches and purchases on the site. So I knew that was a filter.
What is output? Select all that apply.
C=0.
while (c < 5):
c = c + 1
print(c)
Answer:
Since we didn't print it at the beginning, we can assume that the program will start printing to the console at the number: 1. After that, it continues right before hitting 5. Proving the output of the program will be the following:
1
2
3
4
In
the first computer ran a program from memory.
0 1942
1950
1948
1968