In a statement: Scanner keyboard = new Scanner (System.in);

it reads user input by means of a Scanner, the user types the line of input below, exactly as shown, including that same spacing.

What is the statement keyboard.nextDouble( ); returned ?

Answer "2": 1+2 is 3 and "5.0" squared is 25.0 !

Answers

Answer 1

Answer:

A misMatchException is returned.

Explanation: Keyboard.nextDouble(); is expecting a double as an input and the user entered a string first so an error is returned.


Related Questions

What are the languages spoken in South Africa

Answers

Answer:

Afrikaans

English

Xhosa

Zulu

Southern Sotho

Venda

Tswana

Northern Sotho

Tsonga

Swati

Ndebele

Explanation:

These are most all of them.

Answer: English, Afrikaans, Xhosa, Ndebele, Zulu, Tswana, Swati, Sotho, Southern Sotho, Venda, and Tsonga

Explanation:

Many languages are spoken in South Africa. The country recognizes 11 official languages in its constitution. These include English, Afrikaans, Xhosa, Ndebele, Zulu, Tswana, Swati, Sotho, Southern Sotho, Venda and Tsonga.

While these are the only official languages in South Africa, there are a variety of other languages that you can find being spoken in South Africa. These include Dutch, German, Hindi, Swahili, Portuguese, Italian, and more.

Zulu is the most spoken language in South Africa, followed by Xhosa, Afrikaans, and English.

Identify the calculation performed by the following code.
function calcArea(length, width) {

var rectArea = length*width;

return rectArea;

}

var x = 8;

var y = 6;

calcArea(x, y);

a.
48
b.
96
c.
28
d.
56

Answers

Answer:

48

Explanation:

The function returns length * width

In the function call, the values are legnth: 8 and width: 6 this means the function is returns 8 * 6 wich is 48.

The Greater Than sign (>) is an example of
operator.

Answers

Answer:

logical

Explanation:

the greater than sign (>) is an example of logical operator.

A > sign asks if the first value is greater than the second value. That is, is the value or expression to the left of the > sign greater than the value or expression to the right side? For example, the statement (A > B) is true if A is greater than B

https://brainly.in/question/6901230

In the program below, which two variables have the same scope?

def usernameMaker (strFirst, strLast):
return strFirst + strLast[0]


def passwordMaker (strA, numC):
answer = dogName[0:3]
return answer + str(numC)

# the main part of your program that calls the function
username = usernameMaker ('Chris', 'Smith')
dogName = 'Sammy'
favoriteNumber = 7
password = passwordMaker (dogName,favoriteNumber)

Answers

Answer:

The answer would be dogName and favoriteNumber.
Both these variables are part of the global scope. That is, not inside of any function. Is that a satisfying answer?

How CPU evolved over time ?

Answers

Answer:

From 1971 to 1972 the era of the first generation came which brought microprocessors like INTEL 4004 Rockwell international PPS-4 INTEL 8008 etc. The second generation marked the development of 8-bit microprocessors from 1973 to 1978. Processors like INTEL 8085 Motorola 6800 and 6801 etc came into existence.

Clock speeds have also suffered due to extreme miniaturization. For the past 5 years, clock speeds on mainstream processors have been stuck at around 3.7 GHz – 4 GHz. Higher clock speeds mean more energy use and therefore more heat buildup. A higher core count also helps with the problem of stagnated clock speeds.

Intel 4004

The Intel 4004 is a 4-bit central processing unit (CPU) released by Intel Corporation in 1971. Sold for US$60, it was the first commercially produced microprocessor, and the first in a long line of Intel CPUs.

Answer:

The Power of Exponential Growth

This essentially means that as time goes on, engineers are able to compress more and more building components (transistors) into the same amount of space. More transistors indicate that there are more units available to execute instructions, resulting in a quicker processor with more functionality.

I just need the flowchart and pseudocode.No need program.

Q1.Write a program to process a collection of savings account transactions (deposits or withdrawals). Your program should begin by reading in the previous account balance and then read and process each transaction. Enter a positive value for a deposit and a negative value for a withdrawal. For each transaction, print the message “Withdrawal” or “Deposit” and the new balance. Print an error message if a withdrawal would result in a negative balance and do not change the balance. Use a sentinel value of 0 to signal end of the transactions.

Answers

The pseudocode algorithm for the given program is:

PROCESS saving account transactionsREQUEST for previous account balanceFOR every deposit made, (+)FOR every withdrawal made (-)

What is a Pseudocode?

This refers to the use of plain language to describe the sequence of steps for solving a problem in human language.

Hence, we can see that the complete step is given below:

5. DISPLAY "Withdrawal" when (-) is used.

6. DISPLAY "Deposit" when (+) is used

7. ELSE

8. PRINT "Error"

#SPJ1

Read more about flowcharts and pseudocodes here:

https://brainly.com/question/24735155

What is the purpose of a host operating system?

It allows one guest to access software at a time.
It controls who can access software.
It stands between the guest OS and the hardware.
It is used to monitor network traffic.

Answers

Answer:

It controls who can access software.

Explanation:

What kind of internal factors influence the process of business enterprise

Answers

Answer:

The three main internal factors are:

Human resources

Finance

Current or modern technology

Explanation:

Financial resources like funding, investment opportunities, and sources of income.

Physical resources like the company's location, equipment, and facilities.

Human resources like employees, target audiences, and volunteers.

Calvin is creating a 3D shell of a turtle. He is creating a sculpted, intricate design for the pattern he wants on the shell, but wants it to tile across the surface of the shell. What tool can he use to do this?

A.
Dynamic Topology

B.
Symmetry

C.
Remesh

D.
Masking
(This is a question from edmentum's 3d modeling class)

Answers

A is right I did this

CodeHS Python: Using a while loop, print out a list of numbers from 5 to 55 by fives

Answers

Answer:

i = 5

while i < 56:

 print(i)

 i += 5

Explanation:

I basically started off with a value and said keep adding on to this value by 5, while not going past 55.

How to write a C++ program that lets the user guess if a randomly generated integer is even or odd then the computer lets them know if they are correct or incorrect

Answers

#include <iostream>

using namespace std;

int main() {

 string input;

 string rand_type;

int number=rand()%100+1; //number between 1 and 100

if ( number % 2 == 0)

   rand_type= "even";

 else

  rand_type="odd";

 cout << "your guess: ";

 cin >> input;

 if ( input== rand_type)

   cout << "correct.\n";

else

   cout << "incorrect.\n";

 return 0;

}

what are the technological innovations of microprocessors?

Answers

Answer:

Microprocessors and microcontrollers enable the modern world to produce devices that comprehend the environment and react to situations producing a much desired effect. The operating speed of modern day computers has increased over a thousand times in the past twenty years.

Explanation:

100 PTS! The first network was called:

A. the Internet
B. ARPANET
C. the network
D. networking

Answers

Answer:

B

Explanation:

.....................

Answer: B. ARPANET

Explanation:in full Advanced Research Projects Agency Network, experimental computer network that was the forerunner of the Internet.

Which layer is responsible for creating data frames?

Answers

Answer:

The data link layer.

Explanation:

In the OSI model, the second layer is responsible for the framing of data packets.

What are the reasons for breaking up a long data transmission into a number of frames?

Answers

Answer:

Buffer size may be limited.

In cell E4, enter a formula using relative cell references that multiply cell C4 by cell D4

Answers

Enter this formula into cell E4 (even the equals is needed)

=PRODUCT(C4:D4)

What is the code space for the Unicode based on 10FFFFHex?

What percentage of the Unicode code-space is utilized as of September, 2021?


Any help would be appreciated!

Answers

The percentage of the Unicode code-space that has been  utilized as of September, 2021 is about 288,512 (26%).

What a Unicode implies?

The term Unicode is known to be the universal character representation standard. The Unicode Standard is said to be used world wide to stand for the standard used in text  of computer processing.

Conclusively, studies has shown that thee Unicode 14.0 that was said to have been released in September 2021 shown that it make use of 288,512 that is about 26% of its code points are known to be allocated.

Learn more about Unicode from

https://brainly.com/question/13151086

#SPJ1

How APIs can be useful for data collection ?​

Answers

Answer:

These softwares are a program that is a connection between computer networks, which can be useful for storing data.

explain the pros and cons of touchscreen, non-touchscreen, and hybrid devices:

Answers

Answer:The customer reviews of touchscreen laptops like the Lenovo Ideapad 3 Laptop show that it allows faster navigation. It is based on touch-screen technology that improves the functionality of your computer. This allows you to perform tasks that are difficult to do on a traditional laptop. It is easy to use and you can operate it without requiring any additional attachment.

Explanation:

A touch screen laptop is easier to use, fun to navigate, and comes in sleeker models. The non-touch laptop is a traditional laptop variant that takes input from the built-in touchpad and keyboard. Both the laptops are similar in many aspects. At first, the touchscreen feature was only available in high-end business laptops, but now you can buy a touch screen laptop at an affordable price. In this blog, we compare Touch Screen Vs Non-Touch Laptops and help you understand their advantages and disadvantages.

You can save your work in bluegriffon using either _____ or _____
A. The format: Primary toolbar; the menu bar
B. The format: Secondary toolbar; Wysiwg view
C. Hyperlink; the "View" dropdown menu bar
D. Source view; a hyperlink

Answers

Answer:

A-the format: primary toolbar, the menu bar

Which of the following questions should you ask when testing your website? Choose all answers that are correct.
A. How can I insert an e-mail hyperlink?
B. Do all elements of my website work?
C. Does my website look the way I want it to?
D. Is my website user-friendly?​

Answers

Answer:

B

C

D

Explanation:

give brainliest pls

The questions that are important to ask, while testing a website are all options. Therefore, options A, B, C, and D are correct.

What is a website?

A website is a collection of web pages that are hosted on a server and can be accessed via the Internet using a web browser. A website is typically used to provide information about a business, organization, or individual, or to offer products or services to customers.

It can contain various types of content, such as text, images, videos, and interactive features. Websites can range in complexity from simple static pages to dynamic web applications that offer advanced functionality and interactivity.

They are an important tool for individuals and organizations to communicate with their audience, share information, and conduct business online. Thus, options A, B, C, and D are correct.

Learn more about websites, here:

https://brainly.com/question/6107621

#SPJ2

what is network days function

Answers

Answer:

The NETWORKDAYS Function calculates the number of workdays between two dates in Excel. When using the function, the number of weekends are automatically excluded. It also allows you to skip specified holidays and only count business days. It is categorized in Excel as a Date/Time Function.

Which of the following best describes the impact of Creative Commons?

Creative Commons gives creators of digital content the ability to indicate how their works can be legally used and distributed, enabling broad access to digital information.

Creative Commons gives Internet users the right to legally use and distribute any previously copyrighted work, enabling broad access to digital information.

Create Commons provides lossless transmission of messages, enabling reliable distribution of digital information.

Creative Commons provides private transmission of messages, enabling secure distribution of digital information.

Answers

Answer:

it’s just a screenie hope it helps

3. Which part of the computer is used
for typing?
a. Mouse
b. Keyboard

Answers

Hey!

Your answer is B.Keyboard

-Whats a keyboard?-

-A keyboard is something we use for typing. Infact, im typing on a keyboard right now.-

Keyboards are used for almost all devices..

They are used on..

laptopstabletsphones sometimes even tvs!

Hope this helps!

_natty_

Which of the following statements about markup languages is true?
• Markup languages are used to write algorithms.
Markup languages are used to structure content for computers to interpret
JavaScript is an example of a markup language.
Markup languages are a type of programming language.

Answers

The most widely used markup languages are SGML (Standard Generalized Markup Language), HTML (Hypertext Markup Language), and XML (Extensible Markup Language).

B .Markup languages are used to structure content for computers to interpret is true.

What is a markup language in programming?

A markup language is a type of language used to annotate text and embed tags in accurately styled electronic documents, irrespective of computer platform, operating system, application or program.

What does a markup language used to identify content?

Hypertext markup language is used to aid in the publication of web pages by providing a structure that defines elements like tables, forms, lists and headings, and identifies where different portions of our content begin and end.

To learn more about A markup language, refer

https://brainly.com/question/12972350

#SPJ2

what does it mean by an operating system plays the 'middle person's role between the hardware and the application software?​

Answers

Answer:

The hard ware holds the operating system, and the operating controls the application software.

Explanation:

advantages and disadvantages of memory mapped I/O?

Answers

Explanation:

Advantages : The advantage of memory mapped I/O is that all instructions and addressing modes can be used for I/O access. This makes programming easier. When Direct I/O is supported, many microprocessors provide limited instructions and addressing modes for I/O access.

Dis Advantages : But there are also disadvantages: An I/O error on a memory-mapped file cannot be caught and dealt with by SQLite. Instead, the I/O error causes a signal which, if not caught by the application, results in a program crash.

Customized packages are a type of application software true or false

Answers

Answer:

donno, but i guess its true

Explanation:

u dont need a external hardware or plug something to have them, u can just install

what effects have computers had on the practise?​

Answers

Answer:

new designs of vehicles and other transportation were made; entertainment became more entertaining, medical science made more cures for disease

Explanation:

Given int n, return an int[] that contains the numbers 0, 1, .. n-1, n, n-1, ... 1, 0. For example, if n = 5, then the array should be 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0.
Make sure its in the coding language Processing, Java, or Javascript

Answers

Answer:

// Given int n, return an int[] that contains the numbers 0, 1, .. n-1, n, n-1, ... 1, 0.

// For example, if n = 5, then the array should be 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0.

function mirrorArray(max) {

 const firstHalf = [];  // initalize the first half (without max)

 let count = 0;  // we're gonna count up from 0 to the max

 

 while (count < max) {  // whilst the count is less than the max provided

   firstHalf.push(count);  // add the value of count to the array firstHalf

   count++;  // increment count by 1

 }

 const secondHalf = firstHalf.slice().reverse();

 // we first chane the .slice() method which has no arguments

 // this means we can copy our array before reversing it.

 // if we did firstHalf.reverse(), we'd end up changing what's inside firstHalf too.

 // we don't want that!

 

 return [...firstHalf, max, ...secondHalf];

 // ... is the spread operator

 // it is used to remove the square brackets [] from an array

 // for example:  ...[1, 2, 3]  becomes  1, 2, 3

}

console.log(mirrorArray(5));  // here we're calling our function, and providing a max of 5

Explanation:

Everything that needs explaining should be in the comments I've put in the code! If you need more help, please ask!

I decided to use JavaScript because I think it reduces the amount of extra code needed to get my intentions across to the computer.

P.S.: I've also attached a screenshot of my IDE because it can be hard to read code if it's not colored in!

Don't worry about the array's items being displayed above each other, it is just what my IDE does.

Other Questions
Dr. Man was studying a fossil from a dig in a desert when he noticed that the organism had evidence of fins. What is the surface area of a rectangular prism with a height of 5 cm, length of 5.4 cm, and width of2.4 cm?The surface area is PLSSS HELP IF YOU TURLY KNOW THISS Charlie wants to be self-employed. Which career in the marketing, sales, and service career cluster has the highest rate of self-employment? street vendor merchandise displayer demonstrator real estate agent Additional electronic devices that extend the revenue control abilities of POS systems are _____ and power platforms. touchscreens keyboards minicams magnetic strip readers tell a lie the lie i like i will give many points _____Annapolis WRITE THE ABBERATION OF THE STATE.PLEASEE HELPPP 100 points!_____Cheyenne_____Helena_____Montgomery_____Sacramento_____Atlanta_____Columbia_____Honolulu_____Montpelier_____Salem_____Augusta_____Columbus_____Indianapolis_____Nashville_____Salt Lake City_____Austin_____Concord_____Jackson_____Oklahoma City_____Santa Fe_____Baton Rouge_____Denver_____Jefferson City_____Olympia_____Springfield_____Bismarck_____Des Moines_____Juneau_____Phoenix_____St. Paul_____Boise_____Dover_____Lansing_____Pierre_____Tallahassee_____Boston_____Frankfort_____Lincoln_____Providence_____Topeka_____Carson City_____Harrisburg_____Little Rock_____Raleigh_____Trenton Which sentence could be added to the passage to better connect the last two paragraphs? A. Board cars are well known for breaking down, and they have too many recalls on faulty parts to count. B. Dawn had been searching for a reliable car because she needed to get to her mechanic's shop safely. C. From that day forward, Dawn had been faced with more car trouble than she cared to remember. D. The owners of the car dealership seemed a bit untrustworthy; Dawn should have followed her instincts. Why is hadler Xavier given the title Handler Which animal responded to an internal cue?The baby koala began to drink its mothers milk.Cynndi made herself a bowl of fruit salad.The dog went to its water bowl for a drink.All of the above. Number of Months to Pay Off 21 Monthly Payments Total Interest Paid $150 21 $314.68 ,, $250 12 $184.41 ,, $500 6 $95.84 Which is a correct conclusion from the table? A. The more he chooses to pay off each month, the higher total interest he will pay. B. The quicker he pays off the credit card, the more interest he will pay. C. The more he chooses to pay off each month, the less total interest he will pay. D. The amount he chooses to pay each month will not affect the total interest he pays. Sophia's doctor suspects she's been using marijuana for a long period of time. Which set of symptoms best describes what Sophia's doctor observes?Sophia exhibits impaired memory and learning.O Sophia is hoarse and malnourished with nosebleeds.O Sophia complains of itching, nausea, and a racing heart.O Sophia has severe dental problems, anxiety, and a sleep disorder. Sarah can make 5 tables in 3 days, how many can she make in 21 days? 9. While parked on the street overnight, the passenger window in Sam's car wassmashed by someone trying to break in. Which type of auto insurancecoverage will help cover the cost to get the window replaced?Liability Which state are the Puget Sound and the San Juan Islands found in?HawaiiOregonWashingtonCalifornia Which of the following will NOT result in the expression of the dominant trait? Two dominant factors (alleles) One dominant and one recessive factor (allele) Two recessive factors (alleles) All of these result in the expression of the dominant trait Bob owns a watch repair shop. He has foundthat the cost of operating his shop is given byc=2x2-192x+54, where c is cost and x is thenumber of watches repaired. How manywatches must he repair to have the lowestcost? I am a old desk in a classroom and this is my story essay How did Ayatollah Khomeinis government bring about change in Iran? It restricted freedom and forced people to conform to a strict interpretation of Islamic beliefs. It allowed democratic freedoms in the political arena, but discouraged personal expression. It encouraged other political parties to disagree respectfully. It increased the separation between religion and government. intended to make someone feel mortified or humiliated.