Simple Calculator
Write a program to take two integers as input and output their sum.
Sample Input:
2
8
Sample Output:
10

Remember, input() results in a string.

Answers

Answer 1

For the program for the given scenario, please visit the explanation part for better understanding.

What is programming?

The method of constructing a set of commands that tells a desktop how to accomplish a task is known as programming. Computer programming languages such as JavaScript, Python, and C++ can be used to create programs.

The input() function can be used to request that a user enter data into the program and save it in a variable that the computer can process.

The print() function is used to output a message to the screen or another standard output device.

Given:

Sample Input:2,8

Sample Output: 10

Program can be written as:

a=int(input("Enter the first number:"))

b=int(input("Enter the second number:"))

sum=a+b

print("The sum of given numbers is",sum)

Thus, above mentioned is the program for the given scenario.

For more details regarding programming language, visit:

https://brainly.com/question/23959041

#SPJ1


Related Questions

Help please‍♀️

What is the name for the different RULES that are specific to each programming
language? These languages use commands and logic statements to make the
computer accomplish its intended purpose.

Software

Programs

Syntax

Binary

Answers

Answer:

syntax

Explanation:

Each programming language follows a specific set of “grammar” rules called syntax; Every programming language is designed to serve a specific purpose, i.e. to allow you to build websites, do data analysis, or create desktop software etc.

Im in 7th grade :D

Classify the following devices as input or ourput. Draw a line from the picture to the correct name of the device.​

Answers

Answer:

input: keyboard + mouse

output: monitor + printer

Provide a code example for a shape with no outline. What can you do to ensure this is the
outline that will be used?

Answers

A code example for a shape with no outline or one that its borders has been removed has been given below:

The Code

Dim rngShape As InlineShape

For Each rngShape In ActiveDocument.InlineShapes

   With rngShape.Range.Borders

       .OutsideLineStyle = wdLineStyleSingle

       .OutsideColorIndex = wdPink

      .OutsideLineWidth = wdLineWidth300pt

   End With

Next rngShape

Read more about shapes and borders here:

https://brainly.com/question/14400252

#SPJ1

Write the contribution of baise pascal and dr herman hollerith in the histroy of computer

Answers

Answer:Computers truly became a revolutionized invention during the last part of the 20th century. They have already helped win wars, solve seemingly insoluble problems, saved lives and launched us into space. Their history spans more than 2500 years to the creation of the abacus. This resource provides a brief history of computers.The Pascaline

In 1642, an eighteen year old French scientist, writer and philosopher, Blaise Pascal (1623–1662), invented the very first mechanical calculator. It was named the Pascaline.

It had been created as an aid for Pascal’s father, who was a tax collector. Pascal built fifty of these gear driven calculating machines and couldn’t manage to sell many due to their expensive cost.

Explanation:

which Preview in Lightroom allows you to edit images that are not physically connected to your computer

Answers

The Preview in Lightroom allows you to edit images that are not physically connected to your computer is Smart Preview.

What is Lightroom?

Lightroom assists you with importing, organizing, managing, and finding photographs. Lightroom, on the other hand, combines picture management and photo editing into a single product. Lightroom is a non-destructive picture editor.

Lightroom Classic's Smart Previews feature allows you to edit photographs that are not physically linked to your computer. Based on the lossy DNG file format, Smart Preview files are a lightweight, smaller file format.

Hence, the Preview in Lightroom allows you to edit images that are not physically connected to your computer is Smart Preview.

Learn more about LightRoom here:

https://brainly.com/question/14509650

#SPJ1

Difference between us 2.0
and 3.0 flash drive

Answers

USB 2.0 offers a transfer rate of about 480 Mbps, whereas USB 3.0 offers a transfer rate of about 4,800 Mbps

Karen has a discrete analog clock in the shape of a circle. Two hands rotate around the center of the circle, indicating hours and minutes. The clock has 60 marks placed around its perimeter, with the distance between consecutive marks being constant.
The minute hand moves from its current mark to the next exactly once every minute. The hour hand moves from its current mark to the next exactly once every 12 minutes, so it advances five marks each hour. We consider that both hands move discretely and instantly, which means they are always positioned exactly over one of the marks and never in between marks.
At midnight both hands reach simultaneously the top mark, which indicates Zero hours Zero minutes. After exactly 12 hours or 720 minutes, both hands reach the same position again, and this process is repeated over and over again. Note that when the minute hand moves, the hour hand may not move; however, when the hour hand moves, the minute hand also moves.
Karen likes geometry, and she likes to measure the minimum angle between the two hands of the clock at different times of the day. She has been writing some measures down, she noticed that some angles were repeated while some others never appeared. For instance, Karen noticed that both at three o'clock and at nine o'clock the minimum angle between the two ands is 90 degrees, while an angle of 65 degrees not appear in the list.
Karen decided to verify, for any integer number between 0 and 180, if there exists at least one time of the day such that the minimum angle between the two hands of the clock is exactly A degrees. In this lab you will code a program to help Karen to answer this question and display which hour meet the angle.
NOTE: Your program needs to perform operation(s) and use control statements to solve the problem. Solutions that imply to create a switch-case or if-else for all 181 (or 91) possible values (Hard Coding) automatically will be scored with 0.
Input:
The program gets as input an integer value A s.t. (0<= A <= 180), which represents the angle to be verified. Validate that this input is within the valid range.
Output:
If there exist at least one time of the day such that the minimum angle between the two hands of the clock is exactly A degrees, then display how many hours met the specified angle and those hours in ascending order (24-hour military time clock). Otherwise display "There is no hour where the hands are A degrees apart".

Answers

Answer:

no idea

Explanation:

but I want you to know, you are a great person

To tell an audience a story about a data set, it is best to use a _____________.

A) memo
B) graph
C) dashboard
D) report

Answers

Your answer should be (B
it is best to use a graph.

(7) Accept a 4-digit number from a user. Your task is to create a simple encrypted corresponding value
of this number. First separate each number into its individual digits. For each individual digit, if the
individual digit is greater than or equal to 5, subtract that value from 9. Output the new value (in its
individual digits) which would now represent the encrypted corresponding value. For example, if the
user entered 5678, the encrypted corresponding value would be 4 2 3 1. (Required: IPO chart,
Pseudocode, C-program and Python)

Answers

Using the knowledge in computational language in python it is possible to write a code that create a simple encrypted corresponding value

of this number.

Writting in the C code:

#include<stdio.h>

int main()

{

   int num,r,rev=0;

   scanf("%d",&num);

   while(num!=0)

   {

       r=num%10;

       rev=rev*10+r;

       num=num/10;

   }

   while(rev!=0)

   {

       r=rev%10;

       if(r>=5)

       {

           r=9-r;

       }

       printf("%d ",r);

       rev=rev/10;

   }

   return 0;

}

Writting in python code:

num=int(input("Enter number:"))

rev=int(str(num)[::-1])

while rev!=0:

   r=rev%10

   if r>=5:

       r=9-r

   print(r,end=" ")

   rev=rev//10

See more about python at brainly.com/question/12975450

#SPJ1

What can a programmer expect when writing a modular program for a game

Answers

Answer:

That it's gonna be hard.

8. What should one do in order to gain the most benefit from the concept of learning styles?
a. Be rigid
b. Be persistent
c. Be imaginative
d. Stay flexible

D stay flexible

Answers

The thing that a person should do in order to gain the most benefit from the concept of learning styles is option D: stay flexible.

What does learning styles mean?

Learning styles can be categorized, identified, and described in a variety of ways. They are, in general, broad patterns that give teaching and learning direction.

Another way to think of learning style is as a set or a given group of elements, actions, as well as attitudes that support a person's learning in a specific circumstance.

Therefore, based on the above, The thing that a person should do in order to gain the most benefit from the concept of learning styles is option D: stay flexible.

Learn more about learning styles from

https://brainly.com/question/3274282
#SPJ1

Which of the following protects intellectual property?
A. copyright
B. trademark
C. putting on a play
D. writing a novel

Answers

Answer:

A). Copyright

the next questions answer is

C). For the life of the author plus seventy years.

Explanation:

I just did the Assignment on EDGE2022 and it's 200% correct!

Also, heart and rate if you found this answer helpful!! :) (P.S It makes me feel good to know I helped someone today!!)

What was the largest processor used in the 1990s?
(1 point)
O 16-bit
O 32-bit
O 64-bit
O 128-bit

Answers

Answer: 64 bit

Explanation: 128 bit not used at that time

What is the relationship between the ask phase of the data analysis process and the plan phase of the data life cycle?

Answers

Answer:

The data analytic lifecycle is intended for use with data science initiatives and Big Data issues. The cycle reflects a real project by being iterative.

Wendy Patel is entering college and plans to take the necessary classes to obtain a degree in architecture. Research the programs and apps that Wendy might use in her degree program and recommend a computer with sufficient hardware specifications to adequately support her through the degree program. Provide a link to the computer you locate and justify why you feel the computer will best meet her needs. Why did you choose the central processing unit? Why did you choose the amount of RAM? Why did you choose the storage device?

Answers

Some of the programs and apps that Wendy might use in her degree program of architecture are:

AutoCAD Mobile AppMorpholio Trace Pro.ARki. ArchiSnapper 5.MagicPlan.Shapr3D

A recommended computer that Wendy Patel can use in her university study of obtaining a degree in architecture is an ASUS ZenBook S Ultra Slim Flip Laptop.

The RAM is 16GB RAM and the CPU is an 11th Generation Core i7-1165G7 chip that would help her navigate through her design projects.

What is Architecture?

This refers to the process of designing and constructing buildings with the aid of software.

Hence, we can see that Some of the programs and apps that Wendy might use in her degree program of architecture are:

AutoCAD Mobile AppMorpholio Trace Pro.ARki. ArchiSnapper 5.MagicPlan.Shapr3D

A recommended computer that Wendy Patel can use in her university study of obtaining a degree in architecture is an ASUS ZenBook S Ultra Slim Flip Laptop.

The RAM is 16GB RAM and the CPU is an 11th Generation Core i7-1165G7 chip that would help her navigate through her design projects.

Read more about architecture here:

https://brainly.com/question/9760486

#SPJ1

Besides UEFI, what other type of firmware might you see on a motherboard?

Answers

Besides UEFI, the other type of firmware that you might see on a motherboard is BIOS.

What is a computer hardware?

A computer hardware can be defined as a physical component of an information technology (IT) or computer system that can be seen and touched.

The hardware components of a computer.

Some examples of the hardware components of a computer system and these include:

MonitorMouseRandom access memory (RAM).Read only memory (ROM).Central processing unit (CPU)KeyboardMotherboard BIOS chip

In Computer technology, the two types of of firmware that you might see on a motherboard are Basic Output-Input system (BIOS) and Unified Extensible Firmware Interface (UEFI).

Read more on motherboard BIOS chip here: brainly.com/question/17373331

#SPJ1

HELP ME OUT PLEASE!!!!!!!

________ this design element is used to indicate hierarchy.

A) Line
B) Decorative
C) Shade
D) Balance​

Answers

Answer:

Line

Explanation:

Because they have a big line thanks for the points please help me with my problem is in my profile

Answer:

Line

Explanation: Because they have a big line thanks for the points please help me with my problem is in my profile

Find the following measures of central tendency for the given set of data. {1, 3, 9, 11, 2}

Answers

Answer:

(1+3+9+11+2)/5=26/5=5.2

"As a busy professional and avid book lover, I want to be able to reserve books in advance, so that I can pick them up based on my schedule.” (ux)

What component of the user story addresses the persona’s goal to access books they want to read when they arrive at the library?


Demographic

Benefit

Action

Role

Answers

Answer:

The answer is benefit

that it

Amed is utilizing a feature that will use two tables. The first table contains a primary key matched to a foreign key in the second table. The query results will include all entries from the first table. Which feature is he using?

left outer join
right outer join
self join
inner join

Answers

Answer:

left outer join

Explanation:

What are Thear Platforms?

Answers

A computing platform or digital platform is an environment in which a piece of software is executed. It may be the hardware or the operating system, even a web browser and associated application programming interfaces, or other underlying software, as long as the program code is executed with it.

Answer:

A conglomerate technology company.

Explanation:

Thear Platforms is commonly known as Thear. It is a conglomerate technology company with different platforms.

Some platforms by Thear are as follows

1. Thear Blog (Blogging Site)

2. Thear Library (Educational Site)

3. Thear Updates (News Site)

and many others....

You may access these at https://thear.me/

MC Qu. 05 The most common way to access the Internet i...
The most common way to access the Internet is through

Answers

Answer: The most common way to access the internet is through Mobile phone

Describe the differences between power and authority

Answers

Answer:

power is authjority

Explanation:

a prospect calls a sales rep at a firm as teh prospect listend to her pitch he keeps pushing back that the price is higher than most. What should the rep do?

Answers

Since there is a prospect calls a sales rep at a firm as the prospect listened to her pitch he keeps pushing back that the price is higher than most. the thing that the rep can do is option d: Ask him to set aside price for now to see if the services are a good fit.

How to be a sales rep

A sales rep is known to be any body that is a person who is said to function as the seller of products or services for a given firm.

Note that they are often in seen in a specific field or area. Rep is a wood that is the short form for representative. The term sales representative are people who often works for (stand) for a company but the salesperson is one that can also be selling their own special products.

There are different kinds of calls and there are ways to handle such calls. Based on the scenario above, Since there is a prospect calls a sales rep at a firm as the prospect listened to her pitch he keeps pushing back that the price is higher than most. the thing that the rep can do is option d: Ask him to set aside price for now to see if the services are a good fit.

Learn more about sales rep  from

https://brainly.com/question/28410390

#SPJ1

A prospect calls a sales rep at a consulting firm. As the prospect listens to her sales pitch, he keeps pushing back that the price is higher than most. What should the rep do? a. Agree that her company's services are expensive but promise that they'll solve his problems b. Ask him to hold and check with her supervisor if she can offer a discount a c. Ask him what price he would consider fair and reasonable d. Ask him to set aside price for now to see if the services are a good fit e. Point out that if he did his research, he knows that her company's services are better than those of competitors

Is Qatar a highly restricted internet censored country? What is the best free VPN for Qatar?

Answers

Answer: Yes.

Explanation:

Qatar is a highly restricted country in terms of the internet freedom. It keeps blocking different websites that may go against its culture. In

Qatar is a highly restricted country in terms of the internet freedom. It keeps blocking different websites that may go against its culture.

You may look for the best free security tool for Qatar. But, it will not work best. You must try the paid, best security tool for Qatar that is reliable and highly secured. CovermeVPN the best security tool for Qatar.

Marc is a gamer and is in the market for a new computer to support a lot of graphics. He needs to find a computer with a high amount of RAM, because the higher the RAM, the faster it will function.

A: True
B: False

Answers

Since Marc is a gamer and is in the market for a new computer to support a lot of graphics. He needs to find a computer with a high amount of RAM, because the higher the RAM, the faster it will function is option A: true statement.

What is the statement of the higher the RAM, the faster it will function about?

In regards to computing, when the RAM is known to be faster, one can say also that  the faster will be the computer  the processing speed.

Note that when there is a faster RAM, a person or a computer user can be able to increase the speed through which the computer memory moves information to other parts of the system.

This implies that  there is a fast processor and thus an equally faster means of talking to the other areas of the system, making the computer to be much more good.

Therefore, Since Marc is a gamer and is in the market for a new computer to support a lot of graphics. He needs to find a computer with a high amount of RAM, because the higher the RAM, the faster it will function is option A: true statement.

Learn more about RAM from

https://brainly.com/question/13196228

#SPJ1

characteristics of third generation of computer​

Answers

Answer:

1. Use of Integrated Circuits (IC) instead of transistors.

2. Use of Semi-conductor memory.

3. Small size than previous generation computers.

4. Use of magnetic storage devices.

5. Improved faster operations and more dependable output.

6. Use of mini computers.

7. Use of monitors and line printers.

1. How are you going to apply proper selection of tools in your daily life?

2. Do you think knowing each tool used for computer systems servicing will be a big help for you in the future?

3. How important for a student like you to know the scope of work you should properly accomplish?​

Answers

Answer:

PROPER TOOLS SELECTION 2. Tool •Is a handheld device that aids in accomplishing a task •Range from a traditional metal cutting part of a machine to an element of a computer program that activates and controls a particular function. 3. Preparing for the task to be

Explanation:


What statement is an example of the specific requirements of smart goal?

Answers

Answer:

Specific: I’m going to write a 60,000-word sci-fi novel.

Measurable: I will finish writing 60,000 words in 6 months.

Achievable: I will write 2,500 words per week.

Relevant: I’ve always dreamed of becoming a professional writer.

Time-bound: I will start writing tomorrow on January 1st, and finish June 30th.

Explanation:

I did this mark brainiest

why is this happening and how do I fix it?

Answers

Answer:

who is known as prophet of the computer?why?

Other Questions
Why would a new home buyer be required to purchase fire insurance before a broker transfers funds to the seller? What best defines the difference between an observational study and an experiment? Please help with this answer! Thank you so much guys really thanks what does the word welfare mean in paragraph 4? use a dictionary and the word's context to help you decide. Then use the declaration's principles to help you infer what the General Assembly believes are possible to a child's welfare. Family has 2 whole pizzas. They eat 1 3/8 of pizza, how much is left? What type of sugar would a baker take out of recipes in order to significantly reduce calories in cupcakes? Exercise 1 Write in the space provided before each number the figurative language used in each sentence. 1. The Olympian sprinter went faster than the speed of light. 2. Oh, my love is like a red, red rose. 3. He is the apple of my eye. 4. The little dog laughed to see such sport. and the dish ran away with the spoon. 5. The teapot sang as the water boiled. 6. The butter is as soft as a slab of marble. 7. I'm drowning in a sea of grief. 8.The doctor is as kind hearted as a wolf. 9. If I can't buy that smart phone, I'll die! 10. I wondered lonely as a cloud. Upon heating a sample of nicl26h2o, a sample originally weighing 3. 5 g yields an anhydrous salt residue weighing 2. 1g. How many moles of water were in the sample?. Individual web pages or clusters of pages that function as supplements to a primary site are ________. What effect did both world wars have on theliterature that followed? Explain, using evidencefrom the text to support your inferences. Please help (show steps too) ageThe horizontal summation of all individual demands at different given prices results in the:a. market supply curve.Ob. equilibrium demand and supply curves.c. market demand curve.d. individual demand curve. Describe the importance of DNA and RNA as molecules essential for the transmission of genetic information. For the equation given below, evaluate y' at the point (2, 1).2xy - 3x = 4y' at (2, 1) = ?? What is a descriptive word for a lively party? (5 points)Group of answer choicesMeeting: an act or process of coming togetherGame: activity for amusementGathering: a collection of peopleShindig: a social gathering with dancing The radius, diameter, or circumference of a circle is given. Find the missing measure to the nearest hundredth. r = x/8,d= ___, C=? What are the possible causes of generator voltage not building up? Find the sum of each finite series. n = 5 (20-n) The national government gets its authority from the american people through the Declaration of IndependenceTrue of False Peter bought three items at a store. Here are their prices (in dollars):18.23, 6.39, and 15What is the total amount Peter paid at the store? Do not round your answer.$____Type your numerical answer below.-