WAP to read number(s) from keyboard until a zero number is keyed in. And print the sum of entered numbers.​

Answers

Answer 1

Answer:

Worship And Pray -LIVE LAUGH WAP

Answer 2

Answer and Explanation:

in Java:

import java.util.Scanner;

public class NumberReader

{

 public static void main(String[]args)

 {

     Scanner in = new Scanner(System.in);

     

     int keyNum = 10;

      while (keyNum != 0)

      {      

          keyNum = in.nextInt();

          sum += keyNum

      }

      System.out.println(sum);

 }

}


Related Questions

Please read !!!

Please help I am in 6th grade and I have no motivation to do anything. My parents see me as a failure to the family. I'll do anything for anyone to just help me or log in and do my work for me. I'm stressing my whole family out with me not doing my work. I'd appreciate if someone could help me. Thank you.​

Answers

Don’t stress. You’re no failure if you believe in yourself. Have some faith. Don’t give up and live your life to the fullest. Take care and stay safe!! :)

______ is a way of preventing errors when data is copied from one medium to another.

Answers

Answer:

Verification.

Explanation:

A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.

A data dictionary can be defined as a centralized collection of information on a specific data such as attributes, names, fields and definitions that are being used in a computer database system.

In a data dictionary, data elements are combined into records, which are meaningful combinations of data elements that are included in data flows or retained in data stores.

This ultimately implies that, a data dictionary found in a computer database system typically contains the records about all the data elements (objects) such as data relationships with other elements, ownership, type, size, primary keys etc. This records are stored and communicated to other data when required or needed.

Verification is a way of preventing errors when data is copied from one medium to another. The verification process doesn't check to confirm if the data copied is within an acceptable boundary (range) or if it makes sense (logical). Instead, it would only ensure that the data copied is the same as those from the original source.

Which of the commands below would be most helpful if you were trying to create a
face shape for your emoticon?

Answers

Answer:

draw_circle

Explanation:

This is the correct answer

Describe the types of digital cameras, how they store captured images, and how to transfer photos to a computer.

Answers

Answer:

your answer will be a please make me brainliest!!!

Explanation:

EXCEL QUESTION I DON"T UNDESTAND:
PPL who use exel spreadsheets often pls help me

Answers

Answer:

1- D

2- A

Explanation:

Hope this helps! :)

8.6 Code Practice: Question 2

Instructions

Copy and paste your code from the previous code practice. If you did not successfully complete it yet, please do that first before completing this code practice.


After your program has prompted the user for how many values should be in the array, generated those values, and printed the whole list, create and call a new function named sumArray. In this method, accept the array as the parameter. Inside, you should sum together all values and then return that value back to the original method call. Finally, print that sum of values.


Sample Run

How many values to add to the array:

8

[17, 99, 54, 88, 55, 47, 11, 97]

Total 468

Answers

Answer:

import random

def buildArray(a, n):

   for i in range (n):

      a.append(random.randint(10,99))

     

arr = []

def sumArray(a):

   tot = 0

   for i in range(len(a)):

       tot = tot + a [i]

   return tot

       

   

arr = []

numbers = int(input("How many values to add to the array:\n"))

buildArray(arr, numbers)

print(arr)

print("Total " + str(sumArray(arr)) )

Explanation:

The program is an illustration of lists

Lists

Lists are variables that are used to hold multiple values in one variable name

Python Program

The program in Python, where comments are used to explain each line is as follows:

#This gets the number of inputs to the array

n = int(input("How many values to add to the array: "))

#This initializes the sum to 0

sumArray = 0

#This initializes a list

myList = []

#This iterates through n

for i in range(n):

   #This gets input for the list elements

   num = int(input())

   #This appends the input to the list

   myList.Append(num)

   #This calculates the sum

   sumArray+=num

#This prints the list elements

print(myList)

#This prints the sum of the list elements

print("Total",sumArray)

Read more about lists at:

https://brainly.com/question/24941798

How do you change the Background image or picture on Windows desktop?

Answers

Go to settings, personalization, then background. Select the photo file you want to use. Should look like this.

What is your opinion on Electron Microscopes? Do you think it should continue and more money should be given towards developing the technology? Do you think it should be stopped? Why?

Answers

Answer:

Byeeeeee good luck :)

Explanation:

Which of the four digital-to-analog conversion techniques (ASK, FSK, PSK or QAM) is the most susceptible to noise? Defend your answer

Answers

Answer:

ASK

Explanation:

The correct answer is ASK which denotes Amplitude Shift Keying. This is essentially a type of amplitude modulation which represents the binary data that comes varied forms right in the amplitude of a signal.

Now the reason why It is the most susceptible technique to noise is due to the fact that between frequency, phase & amplitude, amplitude is the one that is most susceptible to being affected by noise when compared to the other two.

Explanation:

Which of the four digital-to-analog conversion techniques (ASK, FSK, PSK or QAM) is the most susceptible to noise? Defend your answer

The keys to successful outsourcing are accountability, reporting, and _____

Answers

Answer:

planning

Explanation:

Common separators or delimiters used when converting a table to text include _______________________ , paragraph marks, or commas. [Convert Tables to Text]
Question 2 options:

letter keys

tabs

enter

page breaks

Answers

Answer:

tabs.

Explanation:

Microsoft Word refers to a word processing software application or program developed by Microsoft Inc. to enable its users to type, format and save text-based documents.

In Microsoft Word 2019, the users are availed with the ability to edit the word document in the following view type;

I. View Mode.

II. Print Mode.

III. Drift Layout.

To easily and quickly convert text to tables in Microsoft Word, you should insert common separators between the text columns. The common separators or delimiters used when converting a table to text include tabs, paragraph marks, or commas.

Tabs or commas are used to indicate where the texts are divided into table columns while paragraph marks indicate where a new table row begins.

Which term is a Java keyword indicating that a method will not return a value?


A) void

B) public

C) undefined

D) null

Answers

Answer:

Void

Explanation:

The void keyword specifies that a method should not have a return value.

For how long should a media piece hold the user's attention?

A) for as short of a time as possible
B) until the user is no longer interested
C) until the message has been communicated
D) for as long as possible

Answers

Answer:

C) until the message has been communicated

C, the others don't make sense.

What function affects the cookies downloaded into the host when playing a video clip?


security

privacy

APIs

embedded code

Answers

Privacy cause the cookies it leaves

How many parameters can we use in each function?



1


2


4


As many as we need

Answers

Answer:

As many as we need

Explanation:

https://quizizz.com/admin/quiz/5e68ffb7ada381001bd58b3a/codehs-unit-2-lessons-13-to-19

Name the bar that displays the information about the current document like the number of pages and words

Answers

Answer:

Word Status Bar or Status Bar

Explanation:

PLSSS HELPPP!!!

Read the following scenario. Using complete sentences, explain which part of the CIA triad has been broken. Make sure to explain your answer.

Cynthia is working on her college applications online when the admissions website crashes. She is unable to turn in her college application on time.

Answers

Answer:

A - Availability

Explanation:

Service is denied because of the crash, so the website is not available.

A ـــــــــــــــــــــــــ is a changeable value recorded in Scratch's memory. Variables can only hold one value at a time, unlike lists. *

Answers

Answer:

Variable.

Explanation:

In Computer programming, a variable can be defined as a placeholder or container for holding a piece of information that can be modified or edited.

Basically, variable stores information which is passed from the location of the method call directly to the method that is called by the program.

For example, they can serve as a model for a function; when used as an input, such as for passing a value to a function and when used as an output, such as for retrieving a value from the same function. Therefore, when you create variables in a function, you can can set the values for their parameters

Hence, a variable is a changeable value recorded in Scratch's memory. Variables can only hold one value at a time, unlike lists.

In object-oriented programming (OOP) language, an object class represents the superclass of every other classes when using a programming language such as Java. The superclass is more or less like a general class in an inheritance hierarchy. Thus, a subclass can inherit the variables or methods of the superclass.

Basically, all instance variables that have been used or declared in any superclass would be present in its subclass object.

Which of the following represents an image file?
1. avi
2. jpg
3. ogg
4. xml

Answers

Answer:

B

Explanation:

Because they always have jpg as extension

The answer is #2, JPG

I WILL GIVE BRAINLIEST!!! PLEASE HELP ME! Mitchell runs a successful delivery service. His business has expanded and he must hire three new employees to do some of the deliveries. He would like to communicate to his clients about the new employees. In three to five sentences, describe how Mitchell should determine which telecommunications tool to use.

Answers

Answer:

Mitchell ought to use telephone.

Explanation:

Because telephone is a common telecommunication garget which he can use to reach his client s easy.

answer: Mitchell runs a successful delivery service. His business has expanded and he must hire three new employees to do some of the deliveries. He would like to communicate to his clients about the new employees. In three to five sentences, describe how Mitchell should determine which telecommunications tool to use.

          first Mitchell should get on a computer and email all of the people that he's gonna hire. then he should make a schedule and calendar for them so they know everything.

help me please I dont have enough points for people just to get these for free

Sam is a movie director. He has asked his storyboard artist to create an image of the central character looking ecstatic after receiving an award. What type of shot does the director need from the storyboard artist?

A. long shot

B. point of view shot

C. reaction shot

D. jump cut​

Answers

Answer:

help me please I dont have enough points for people just to get these for free

Sam is a movie director. He has asked his storyboard artist to create an image of the central character looking ecstatic after receiving an award. What type of shot does the director need from the storyboard artist?

A. long shot

B. point of view shot

C. reaction shot

D. jump cut​

A is the asnwer

The type of shot that the director need from the storyboard artist is  reaction shot.

What is reaction shot?

In the area of film production and video production, a reaction shot is known to be a term that connote a kind of  shot that is taken that captures the reaction of a character to any given scenario or things. They can be happy, sad, etc.

Conclusively, Note that the type of shot that the director need from the storyboard artist is  reaction shot as it will tell the state of the character as at that time.

Learn more about storyboard from

https://brainly.com/question/27058738

#SPJ2

Define stubs for the functions get_user_num() and compute_avg(). Each stub should print "FIXME: Finish function_name()" followed by a newline, and should return -1. Each stub must also contain the function's parameters.


Sample output with two calls to get_user_num() and one call to compute_avg():

FIXME: Finish get_user_num()

FIXME: Finish get_user_num()

FIXME: Finish compute_avg()

Avg: -1


code to fill in:


''' Your solution goes here '''


user_num1 = 0

user_num2 = 0

avg_result = 0


user_num1 = get_user_num()

user_num2 = get_user_num()

avg_result = compute_avg(user_num1, user_num2)


print('Avg:', avg_result)

Answers

Answer:

Replace your solution goes here with the following:

def compute_avg(num1, num2):

   func_name = "compute_avg()"

   print("FIXME: "+func_name)

   return -1

def get_user_num(user_num):

   func_name = "get_user_num()"

   print("FIXME: "+func_name)  

   return -1  

Explanation:

This defines the compute_avg function

def compute_avg(num1, num2):

This sets the function name

   func_name = "compute_avg()"

This prints the required output

   print("FIXME: "+func_name)

This returns -1

   return -1

This defines the get_user function

def get_user_num(user_num):

This sets the function name

   func_name = "get_user_num()"

This prints the required output

   print("FIXME: "+func_name)

This returns -1  

   return -1  

Which of these is NOT a usual result of having friends at work?

increased job satisfaction


increased company loyalty


increased motivation


increased absences​

Answers

answer:
increased absences
explanation:
if you’re absences is a lot then you will not be able to have friends because you won’t get a chance to talk with them that much

Which can be used to create a poll on a web page?
CSS
HTML
JavaScript
Text editor

Answers

Answer:

Java script

Explanation:

I took the test and got a 100%

Answer:

It is HTML

Explanation:

I got it right on the test

Which of these is NOT a usual result of having friends at work?



increased job satisfaction


increased company loyalty


increased motivation


increased absences​

Answers

Answer: Increased absences.

Explanation:

What is the difference between the = operator and the == operator in Java?


= denotes an allocation, and == denotes an assignment

= denotes an assignment, and == denotes a comparison

= denotes an initialization, and == denotes a comparison

= denotes a comparison, and == denotes an assignment

Answers

Answer:

The are different severs I guess

Explanation:

By what decade were books readily available to the public across the United States and Europe?

A) the 1690s
B) the 1820s
C) the 1750s
D) the 1860s

Answers

Answer:

1690's hope i could help!

Which part of project management considers the entire project from start to finish?

Analysis
Resources
Scope
Time

Answers

The part of project management considers the entire project from start to finish is Resources.

What is a resource?

Resources is known to be anything that is said to help a person or firm to be able to adds value such as  Air or money.

Note that a resource such as money is often needed in any project and as such it is a part of project management considers the entire project from start to finish

Learn more about Scope from

https://brainly.com/question/27243200

Answer:

Scope

Explanation:

"Scope

The project manager oversees the overall work in a project."

hope this helps!

I hack3d into my schools computer system to unblock everything but now I am scared that I am going to get caught so I want to delete it but it wont let me delete it (I am on powershell)

Answers

Dang, your in deep stuff man . I don’t know what to tell you

Answer:

oh wow that's big and I'm not going to lie you might get in alot of trouble but just hope that they dont find out

yo who down to play some games rn

Answers

me lol ....................

Hmmmmmmmmmmmm nah maybe eh

Other Questions
Mr. Ackah, a retired teacher had been recording consistent increase of blood pressure for the past five years. What accounted for the rise in his blood pressure? The costs per equivalent unit of direct materials and conversion in the Rolling Department of Kraus Steel Company are $750 and $120, respectively. The equivalent units to be assigned costs are as follows:Equivalent UnitsDirect MaterialsConversionInventory in process, October 10 80Started and completed during October3,700 3,700Transferred out of Rolling (completed)3,700 3,780Inventory in process, October 31300 75Total units to be assigned costs4,000 3,855The beginning work in process inventory on October 1 had a cost of $163,800. Determine the cost of completed and transferred-out production, the ending work in process inventory, and the total costs assigned by the Rolling Department. free feet pic clickbait if u answer w full explimation last question on my test! please show some sort of work so i know its correct :) thanks! - dusty. Keisha is working on a math worksheet with 50 problems. she has completed 20 problems in 25 minutes. if she continues at the same pace how long will it take her to complete the worksheet what is the balls max height and how long does it take to get thereh=-16t^2+48t+8 The total bill for an exterminator was $385. She charges $35 to spray each room. How many rooms were sprayed? can somebody tell me the answer for both these questions please CAN SOMEONE HELP???2. The product of 14 and n is -28. write the algebraic expression3. Four times a certain number is the same as the number increased by 78. Find the number.4.A blue bike is $14 less than a red bike. The sum of their prices is $300. How much is the red bike? Why did American Indians increase their attacks on traders along the Santa Fe Trail after the Mexican War? A. They resented the loss of their land to Texas settlers. B. They were paid by Mexico, which was angry about its defeat in the Mexican War. C. They were upset because traders had started to rob their villages to get goods to trade. D. They were angry that traders used their trails without permission. . Determine departmental overhead rates and compute the overhead cost per unit for each product line. Base your overhead assignment for the components department on machine hours. Use welding hours to assign overhead costs to the finishing department. Assign costs to the support department based on number of purchase orders. 2. Determine the total cost per unit for each product line if the direct labor and direct materials costs per unit are $250 for Model 145 and $180 for Model 212. 3. If the market price for Model 145 is $820 and the market price for Model 212 is $480, determine the profit or loss per unit for each model. Yaro buys a baseball cap for $9.50. He also buys a new baseball. Yaro speads $13.50 altogether. Who were the two main powers during the Cold War? I dont know the answer so I need help,yeah,Im confuse like you How many molecules are in 4.5 grams of N20? Andrew helps his father serve sandwiches at the company picnic. He served 95 total sandwiches. What percent of the sandwiches are turkey, if Andrew served 38 turkey sandwiches? La gua telefnica es un tipo de telfono celular muy conveniente. Please select the best answer from the choices provided T F The length of a recrangle is (5x+3) and its width is (3x+5), What expression represents the area of the given rectangle The perimeter of the rectangle is 40 centimeters. Find the value of x.There is a picture of a rectangle and it has an x on the left side and a 3x on the bottom. a. 4b. 5c. 8d. 10 Works of art are not just foundin museums and galleries butevery where around us. Evaluate this Statement.