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

sample input - 7359
sample digits - 24
number of digits - 4​

Answers

Answer 1

Answer:

str = input("Enter a number: ")

sum = 0

for c in str:

   sum = sum + int(c)

print("Sample input - {}".format(str))

print("Sum of digits - {}".format(sum))

print("Number of digits - {}".format(len(str)))

Explanation:

That's python. Was that what you were looking for?

Answer 2
Answer Using Java :-

import java.util.*;

public class Digit

{

public static void main(String args[ ] )

{

Scanner in=new Scanner (System.in)

System.out.print("Enter a number: ");

int n = in.nextInt();

int sum = 0, count = 0;

while (n!=0)

{

int d = n % 10;

sum + = d;

count++;

n /= 10;

}

System.out.println("Sum of digits=" +sum);

System.out.println("Number of digits=" +count);

}

}


Related Questions

What is the other name of the horizontal column graph?
graph is also known as the horlzontal column graph.

Answers

Answer:

Side Graph mabye?

Explanation:

Answer:

A bar graph.

Explanation:

A bar graph is also known as the horizontal column graph.

answer this now
and thanks

Answers

Answer:

the process of burning something

Answer:

Option D) the process of burning something

Explanation:

Combustion, or burning, is a high-temperature exothermic redox chemical reaction between a fuel and an oxidant, usually atmospheric oxygen, that produces oxidized, often gaseous products, in a mixture termed as smoke. 

PLEASE ASAP!!

Today, most film editors manually cut and splice the actual film footage once it arrives.


O True
O False

Answers

The correct answer should be true, as their job is to *edit* the footage.

Answer:

True

Explanation:

edg2021

The film editor is such an important person on a film that he is often hired before the cast and other crew. This editor is responsible for revising the filmed footage until it becomes the finished film. The editor begins by reading the script to get familiar with the story. It is important for the editor to know the script because film scenes are generally shot and edited out of sequence. When footage begins to come in, the editor reviews the footage and production notes provided by the director and production team. These notes contain details about the footage and the director’s comments about the footage. The editor then uploads or transfers the footage to computers in the editing bay and begins editing the footage into finished scenes. The editing bay is the control room with editing equipment, computers, monitors, and sound system where film editors manipulate plot, sound, graphics, and score to produce a well-constructed scene. This is a painstakingly detailed and time-consuming task

Match the terms with their definitions

Answers

Answer:

Malware goes with the third definition, single sign-on goes to the fourth definition, phishing goes to the second definition, and clickjacking goes to the first definition.

Hope this helps! :)

Malware = a term used for software designed to damage your computer or steal your personal information

Single sign-on = when you use a single credential to log into multiple websites

Phishing = when random links mislead you into giving your password or other vital information to an unscrupulous website or person

Clickjacking = when you unknowingly click a malicious link, thinking it to be a legitimate link
:)

Food deliveries should be scheduled _____.

Answers

Answer:

1-11pm

Explanation:

Answer:

at less busy times so that staff has time to properly inspect food

Explanation:

Major innovations made from the establishment of abucus to the 5th computer generation

Answers

Answer:

Cogs and Calculators

It is a measure of the brilliance of the abacus, invented in the Middle East circa 500 BC, that it remained the fastest form of calculator until the middle of the 17th century. Then, in 1642, aged only 18, French scientist and philosopher Blaise Pascal (1623–1666) invented the first practical mechanical calculator, the Pascaline, to help his tax-collector father do his sums. The machine had a series of interlocking cogs (gear wheels with teeth around their outer edges) that could add and subtract decimal numbers. Several decades later, in 1671, German mathematician and philosopher Gottfried Wilhelm Leibniz (1646–1716) came up with a similar but more advanced machine. Instead of using cogs, it had a "stepped drum" (a cylinder with teeth of increasing length around its edge), an innovation that survived in mechanical calculators for 300 hundred years. The Leibniz machine could do much more than Pascal's: as well as adding and subtracting, it could multiply, divide, and work out square roots. Another pioneering feature was the first memory store or "register."

Apart from developing one of the world's earliest mechanical calculators, Leibniz is remembered for another important contribution to computing: he was the man who invented binary code, a way of representing any decimal number using only the two digits zero and one. Although Leibniz made no use of binary in his own calculator, it set others thinking. In 1854, a little over a century after Leibniz had died, Englishman George Boole (1815–1864) used the idea to invent a new branch of mathematics called Boolean algebra. [1] In modern computers, binary code and Boolean algebra allow computers to make simple decisions by comparing long strings of zeros and ones. But, in the 19th century, these ideas were still far ahead of their time. It would take another 50–100 years for mathematicians and computer scientists to figure out how to use them (find out more in our articles about calculators and logic gates).

Explanation:


Nick is moving from Alabama to Texas. A friend of his remarked that Nick may have to pay higher taxes there. What is the cheapest and quickest
way for Nick to find out if his friend is right?
А.
hire a lawyer
B.
speak to an accountant
C.
talk to other friends
D
look up the Texas state website

Answers

Answer:

d is look up the Texas state website

Explanation:

because tell u about texas and taxes

list and explain three computing devices from the 20th century​

Answers

Answer:

Calculating Machine

Graphic tablet.

Touchscreen

Explanation:

Hope this helps.

Brain-List?

Answer:

1. The First Calculating Machine (Pascaline)

2. Jacquard's Loom

3. The First Pocket Calculator

Explanation:

1. Pascaline was the first calculator or adding machine to be produced in any quantity and actually used. It was deigned at about 1642-1644.

2. Jacquard Loom is an attachment for powered fabric looms

3. The first truly pocket-sized electronic calculator was the Busicom LE-120A "HANDY" It was marketed in 1971.

What security concept states a user should only be given the minimum set of permissions required to perform necessary tasks

Answers

The correct answer is least functionality. I hope this helps.

HELP ME!!! I WILL GIVE BRAINLY THINGY!!!

What does the code if (num2==50){ do?

Answers

Answer:

What subject is this?

Explanation:

is this math ?????????????????????

The Internet:

O A. only gives us access to our local communities.

O B. hinders our ability to influence people.

O C. limits us to local social networking sites.

O D. enables us to join global online communities.​

Answers

Answer:

D- it enables us to join global online communities.

Explanation:

Thanks to social media and other websites, content you produce can be seen all over the world.

PLEASE HURRY!!
Look at the image below!

Answers

The answer would be 2&5 because this is correct
The answer should be 2&5 I’m not 100% sure on this but it makes the most sense

put each sentence in the correct place please :)

Answers

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

Which examples demonstrate common education and qualifications for Manufacturing Production Process Development careers? Check all that apply. Answer: A. Hugo uses CAD software to create a product design. D. Latisha is a Mechanical Engineer with a bachelor's degree. E. Oliver carefully calculates the dimensions of a product.

Answers

Answer:

A D E

Explanation:

I got it right on Edge.

Answer:

A D E

Explanation:

just did the work

:)))))

What are the advantages and disadvantages of top-down and bottom-up programming? How would you decide which one to use? Do you approach problems in your real life from a bottom-up or top-down approach?

Answers

Answer:

Question: What are the advantages and disadvantages of top-down and bottom-up programming?

Answer:

Top-down programming is a process of writing programming codes that contain specific instructions for a computer to carry out the instructed task. Usually, Top-down programming comes as software that enables the division of problems that are initially complex into simpler parts. An example is a kind of software developed to give loans to worthy clients. The software may be broken down further to check the bank statements of the client, calculate the earning and spending capacity of the client, Amount paid on utilities.

Advantages of Top-down programming:

1. Top-down programming makes teamwork possible as a system is divided into sub-systems which individuals can handle separately before merging the sub-systems together.

2. Checks and testing become easy.

Disadvantages of Top-down programming:

1. Breaking systems into parts may be time-consuming as there is a need for more planning before working on individual sub-systems.

2. Error could be possible.

Bottom-up programming is a software of a method of design which is opposite to what the top-down programming does as the bottom-up programming works on the sub-systems first and then combine later into a bigger system. This makes use of the existing resources with the aim of generating a bigger result.

Advantages of Bottom-up programming:

1. Adaptability - Bottom-up programming makes adaptability easier.

2. When used in a company it gives all workers the room to make a contribution towards achieving bigger results, improving operations generally.

3. It makes one start a bigger project with the available resources.

Disadvantages of Bottom-up programming:

1. Result could be affected as some workers lack the needed experience to execute some tasks successfully.

2. Lack of desired unity among workers with differences in objectives resulting to endangering the result.

Question: How would you decide which one to use?

Answer:

It depends on the picture of how the result would look like, the goal of the organization employing it, the skill-set among workers available to do the task, the nature of the task. If a larger goal is to be achieved, smaller sub-systems could be used and joined at the end to get a system meaning bottom-up programming would be used. In cases for instance where output is to be determined for instance staff salaries, the output would be broken into simpler units to allow solutions for separate units then we could use top-down programming.

Question: Do you approach problems in your real life from a bottom-up or top-down approach?

Answer:

I approach problems from a top-down approach because it allows checks and testing easy, and the act of breaking systems into sub-systems makes it easy for me to approach each sub-system with a result-oriented plan.

Answer:

Some advantages of top-down are that you can start off from what you know and figure out what you need to complete it, the advantage to bottom-up is that you can make something new . if you are starting something from scratch and you don't know what the end goal might be you would use bottom-up but if you already have an idea or the final product of what you want you would go with the top-down approach.

Hope this helpedHave a great day!

what does good time management mean​

Answers

Answer:

When you are consistent with your work and not wasting time

Explanation:

Time management to me means using your time wisely and thing you have to get done do those things first before doing something that is not a must. Being wise with your time will help you complete goals and more in life.

Have a good day and a merry Christmas

please help, thank you

Answers

Answer:

radish spinach swiss chard

Explanation:

radish, swiss Chard, spinach

Can someone help me get spotify premium

Answers

Answer:

Yes just go to spotify and pay for spotify premium.

Explanation:

Answer:

Buy it, go to the app store or google play and it will surely pop up like a sign saying premium.

Explanation:This is so hard :/

The First Amendment of the Constitution is one of the most important parts of the Bill of Rights. What specific rights does this amendment guarantee to every American citizen?

Answers

Answer:

The First Amendment to the U.S. Constitution protects the freedom of speech, religion and the press. It also protects the right to peaceful protest and to petition the government

Explanation:

if this answer is correct make me as brainlelist

Answer:

its guarantees the freedom of speech, religion, and the freedom of the press.

Explanation:

PLS HELP BEING TIMED!!!
Complete the following sentence.
The basics of managing money such as balancing a checkbook and making a budget are _____
skills

Answers

Answer:

Bank Rate skills

Explanation:

because it is i believe

Select the correct answer
Which filter enhances the color contrast around the edges of an image?

A. Texture filters

B.Sharpen filters

C.Blur filters

D.Noise filters

Answers

Answer: C. Blur filters

Explanation:

The unsharp mask filters or blur filters can be used for professional color correction. This will adjust the contrast of the image. Edge details and may produce a darker and lighter line on all side of the edges. This helps in creating illusion or blur image giving a sharp contrast and sharper image.

So, the color answer C. Blur filters

Answer:

B, Sharpen Filters

Explanation:

i got it right lol

What happens when a sender configures the sensitivity setting of a message to Private?

The security settings of the message are raised.
The recipient must send a confirmation of receipt.
The recipient is notified that the message is private.
The recipient receives a key code to unlock the message.

Answers

Answer:

The recipient is notified that the message is private.

Explanation:

In Microsoft Outlook: This is application software that is used as an electronic messaging platform otherwise known as email.

When a sender configures the sensitivity setting of a message to Private "The recipient is notified that the message is private."

Answer:

Look at the attached file

Explanation:

I'm 100% correct as you can see

5. What is a domain name used for?​

Answers

Answer:

Domain names serve to identify Internet resources, such as computers, networks, and services, with a text-based label that is easier to memorize than the numerical addresses used in the Internet protocols. A domain name may represent entire collections of such resources or individual instances.

Explanation:

*Hope this helps*

Which job role requires you to create user guides for computer products and services?
A
creates users guides for computer products and services.
Reset
Next
Which job role requires you to create user guides for computer products and services

Answers

Answer: Technical writer

Explanation:

A technical writer is an individual who is responsible for the creation of technical documents such as user manuals, reference guides, instruction manuals, journal articles, etc.

Technical writers can work in software firms as they would be responsible for creating user guides for computer products and services.

Answer:

The answer for the blank box is :   technical writer

Explanation:

Hopefully this is right!

have a great day/eve!

James wants to create a web page where he can write two paragraphs of text. The first paragraph of text should be colored red and the
second blue. Which snippet of code show the principle behind how James creates this page?

Answers

Answer:

The first code does it

Explanation:

Each of the attached code snippet is divide into two parts.

The CSS partThe html part

From the four code snippets, the first one answers it.

The syntax to format the paragraph of an html text using css is:

p#paragraph-id{

color:color-name

}

Analysing each element

p# -> This implies that a paragraph is to be formatted

paragraph-id -> This represents the id of the paragraph

{} -> The open and close curly braces house the properties to be formatted

color:color-name -> implies that the color of the element be changed to color-name (e.g. red or blue)

In the body tag of the html code, the first paragraph has an id of para1 and the second has para2 as its id.

i.e. <p id = "para1">......

So, the first paragraph will be formatted red while the second will be blue

What is Microsoft Windows?

Answers

Microsoft Windows is, computer operating system (OS) developed by Microsoft Corporation to run personal computers (PCs).

A common error by beginning programmers is to forget that array subscripts start with ________.
a. 0
b. the number of elements in the array
c. spaces
d. 1

Answers

Answer:.

Explanation:

2. Media sharing websites let you post photos and videos to share with other people. What are the benefits and drawbacks of using these websites?

Answers

Media sharing websites let you post photos and videos to share with other people. The benefit is that we are up to date and get all the news as well as information worldwide.

What is company's website?

The website of the company is all web sites which is operated by any occupied company or via any occupied company conducts the business. Any business website is a website that is designed in such a way that it can represent the identity of a business on the internet.

Company's name and fame id totally depends upon advertisement and its products and websites play an important role in order to make company popular and due to this reason company used the website or designed the website in unique and knowledgeable manner.

Therefore, Media sharing websites let you post photos and videos to share with other people. The benefit is that we are up to date and get all the news as well as information worldwide.

Learn more about website here:

https://brainly.com/question/19459381

#SPJ2

choose the type of error described. can you help me bc i don’t know??

Answers

Answer:

logic error occurs when the result is wrong...

syntax error occurs when you use the wrong punctuation...

runtime error occurs when the program starts running...

Answer:

Logic error: When the computer outputs an undesirable value due to the wrong use of operations.

Syntax error: Occurs when syntax is not used correctly in code.

Zero division error: Occurs when a value is divided by zero.

Hope this helps :)

⚠️ HURRY TIME IS TICKING ⚠️
Sierra needs to ensure that when users are entering data into a datasheet or form that they are limited in the values that they select. Which option should she use as the data type?
• Lookup list
• Bound value
• Short-text
• Date/time

Answers

Answer:

To ensue that data entering data is limited, Usually A dropdown list is used but here in the available option

Lookup list is correct.

Explanation:

Let explain why we have selected Lookup list

A lookup list is used to look for some value in a list.

For example in Excel we select a column for search which is basically limiting the value which we search.

Bound Value

we usually have 2 bounds ,

lower and upper bound

lower bound is the smallest value in a set while upper bound it the highest value in a set.

Short Text:

Short text is used to minimize the word.

For example instead of United States we simply write US

Date/Time are used for data/time value.

so the most appropriate answer is Lookup list.

Other Questions
7Correct answer I will put as brainiest Find an expressiom for the shaded region. Simplify. Which of the following system of inequalities is the graph below?HELP ME PLEASE !!! The rate of change in sales S is inversely proportional to time t(t > 1) measured in weeks. Find S as a function of t if sates after 2 and 4 weeks are 200 units and 350 units respectively. A. S(t) = 50 [3 ln t/ln2 +1] B. S(t) = 550 [3 ln t/ln3 +150] C. S(t) = 50 [3 ln t/ln2 +11] D. S(t) = 50 [11 ln t/ln2 +1] E. S(t) = 550 [ln t/ln3 +1] thx for helping me get smart and learing my math ava :D 1 3/8 1 2/3 quotient in lowest terms How did the slaughterhouse cases affect American businesses? Use the figure below to answer the following question:AtmospherePantstrogenAnimalsAWachDeathturint and teceBEDentlyingbacteriaDecomposersNitratesNO,Drogeringbacteria inplant rootsNyingbacteriaFNitrogen-foongbacteris in so(Pl 4,In the part labeled B plants take up nitrogen through their roots. What is this processcalled?O NitrificationO AmmonificationAssimilationO Denitrification Which country did NOT have a colony in South America? Solve for x:3x 2 (5 x) = 30 Samuel scored a 32.5/40 on his most recent math test what percent did he earn in the test round to the nearest whole percent What happens to an atom decays? At McCord Middle school, 40 percent of the 500 students ride their bikes or walk home. How many students ride their bikes or walk to school A. 12 B. 80 C. 200 or D. 2,000 it is not D. tho Vicki Gabrielli, a single woman who is active both socially and professionally, complains of light-headedness and palpitations. She is about 70 pounds overweight, smokes two packs of cigarettes a day, and enjoys fine dining. What circulatory condition might Vickis circumstances and symptoms suggest? What are the contributing factors? What diagnostic procedures might be called for in this situation? What treatment might be indicated? i can do the illustrations myself 7. Some products or processes claim to be "chemical free" or say "no chemicals added." Based on your understanding of chemistry, what are the arguments for and against such statements?Please i need help Which idea by John Locke and Jean-Jacques Rousseau influenced the founding of American democracy? the social contract the education of children the separation of powers the separation of church and state Examine the accusations shaprio describes in paragraph 6 What is the equation of parabola 21. Transportation A youth group with 26 members is going skiing. Each of the fivechaperones will drive a van or sedan. The vans can seat seven people, and thesedans can seat five people. Assuming there are no empty seats, how many of eachtype of vehicle could transport all 31 people to the ski area in one trip?