iii. Write the pseudocode for a program to take two integer inputs and the operator from user and
display the answers of four basic arithmetic operations ( +- */).

Answers

Answer 1

Answer:

The pseudocode is as follows:

Input num1, num2

input operator

print num1 + num2

print num1 - num2

print num1 * num2

if num2 != 0

    print num1 / num2

else

    print "Cannot divide by 0"

Explanation:

This gets input for both numbers

Input num1, num2

This gets input for the operator

input operator

This prints the sum

print num1 + num2

This prints the difference

print num1 - num2

This prints the product

print num1 * num2

This prints the division if the divisor is not 0

if num2 != 0

    print num1 / num2

else

    print "Cannot divide by 0"


Related Questions

Which of these is not a nonverbal cue?

main idea
posture
volume
eye contact

Answers

Answer:

volume and not the remaining ones

Jax earned 144 points on a research project. In this situation, what is the number 144? Group of answer choices data information knowledge output

Answers

Answer: data

Explanation:

Data refers to symbols or numbers that aren't meaningful. It's an an individual unit which consists of raw materials. Data hato be interpreted in order to become meaningful. They are fact or figures. Examples of data include 24, London, 144 etc.

Information on the other hand is a data that has been processed. e.g. Bob has an aggregate score of 144. Based on the question given, the number 144 is a data as it isn't meaningful yet.

Answer:

The answer is A

Explanation:

"as data"

help,these are true and false and tick and cross ​

Answers

Answer:

1.

a.true

b.false

2a internal

Explanation:

hope it helps you

list the importance and impacts of computer in our life . please help me ​

Answers

Answer:

- It has greatly helped our work efficiency

- It makes the work easier and more convenient

- Communication is also made possible through computers

According to the author, "U.S. Security strategy and U.S. Identity towards Internet governance are all anchored in the idea of freedom." On what basis does the author make that claim?

Answers

Answer:

The answer

Explanation:

A professional-looking portfolio gives a clear message. What does it convey?
Ο Α. .
that you like to build up a sales pitch
OB. that you like to flaunt your work
OC. that you are serious about your work
OD.
that you put on a show for effect
Ο Ε.
that you only care about appearances
Reset
Next

Answers

Answer:a

Explanation:

A professional-looking portfolio gives a clear message that you put on a show for effect. Thus, the correct option is D). that you put on a show for effect.

What is a professional portfolio?

Professional portfolio refers to the collection of work and other documents that make clear the abilities of the candidate to the potential employers.  It can be created in both digital and physical format.

A portfolio is an collected album of all work samples and professional documentation that provides proof about the accomplishments, skills, potential and samples of an individual's work.  

In order to give portfolio a professional look, there are several categories to be consider such as Personal Information, Values, Personal Goals and History, Accomplishments and Job History, Skills and Attributes, Education and Training as well.

Learn more about professional portfolio here:-

https://brainly.com/question/20411709

#SPJ2

of the following potential benefits, which is LEAST likely to be provided by the upgraded system?
A Human representatives will not be needed to respond to some inquiries.
B
The company will be able to provide a human representative for any incoming call.
с
Customers are likely to spend less time listening to information not relevant to their issue.
D
Customers will be unable to mistakenly select the incorrect department for their particular issue.

Answers

Answer:

The company will be able to provide human representative for any incoming call

Explanation:

The upgrade of a system is meant to resolve identified issues in an initial system and given that the available human representative is usually less than the number of incoming call at a given time, due to a constant drive for a larger customer base, we have;

The upgraded system will provide technologies such that human representative will not be required for some inquiries, customers will listen to mainly relevant information with regards to their issues and customers will be properly directed to the correct department that are concerned with their current issue

Therefore, the LEAST likely goal of the upgraded system from among the options and therefore the least likely to be provided by the upgrade is the company will be able to provide human representative for any incoming call

Emilio has created a document in Word and needs to print labels. He is shopping at a store and finds Avery labels
and another brand that is less expensive. What does Emilio need to do before buying the less expensive labels?
O He needs to make sure the number of labels is the same.
O He needs to make sure that the dimensions match the Avery labels.
O He needs to check to see if they are compatible with Word.
O He needs to check to see if Word has a setting for that label.

Answers

Answer:

He needs to check to see if they are compatible with Word

Explanation:

A label is a attachment to an object, with the aim of identifying the object such as the mail to address on an envelop, In MS Word, there several label templates to choose from, which are located under the Mailings tab

To create a label in MS Word, we have the following steps

1) Select Labels under the Mailings tab

2) Select the Options button in the Labels dialogue box, then select the label vendor and the product of the vendor to be used

3) Enter the address of the mail in the Address box after selecting the vendor

Therefore, Emilo being at the shopping center rathe then on his computer will only have access to check if the cheaper label is also compatible with MS Word, from the label vendor's specifications

Define the followimg terms as it relates to coding.

Expression

Variable

Assignment operator​

Answers

Answer and Explanation:

In coding, an expression is used to represent values. It may contain variables and/or constant.

Examples of expressions are:

[tex]a - b[/tex]     [tex]a * 2[/tex]     [tex]4 - 3[/tex]

Variables are literally memory locations. They are used to storing values, and they assume the values they store during program execution.

At any point in the program, the value of the variable can be changed.

Lastly, there are guidelines that follow naming variables (depending on the programming language).

Examples of accepted variable names (in C++) are:

num, num_1, num1

Assignment operator

This is the = sign. It is used for assigning values to variables.

Examples of how it is used are:

[tex]num1 = a - b[/tex]

[tex]num\_1 = a*2[/tex]

[tex]num = 4 - 3[/tex]

The following is a wrong usage of the operator

[tex]4 - 3 = num[/tex]

1. Ngangingazi Ukuthi Ukulalela Abazali Nothisha Bami Kuletha Impumelelo
Enhle Kangaka.
[50]​

Answers

Answer:

yebo kumele ubalalele ngoba ayikho into yakho eyophumelela ungabalalelanga abazali

What can always be seen in the Styles gallery?

O built-in styles with samples

O the original formatting of the document

O changes that have been made to the document's text

O examples of the last five formats used

Please help ASAP

Answers

Examples of the last five formats used

Answer:

examples of the last five formats used

please mark me as brainliest i dont have 1 yet :/

Q4. What is one of the benefits of using a library in a program?

Answers

Answer:

Simplifies creating a complex program

Explanation:

Given a string, an integer position, and a character, all on separate lines, find the character of the string in that position and replace it with the character read. Then, output the result.

Ex: If the input is:

warn

0

e

the output is:

earn

Note: Using a pre-defined string function, the solution can be just one line of code.​

Answers

Answer:

The program in Python is as follows:

myStr = input()

pos = int(input())

chrr = input()

myList=[]

myList[:0]=myStr

myList[pos] = chrr

myStr =""

for i in myList:

   myStr+=i

print(myStr)

Explanation:

This gets input for the string

myStr = input()

This gets input for the character position

pos = int(input())

This gets input for the incoming character

chrr = input()

Create an empty list

myList=[]

Convert the string to a list

myList[:0]=myStr

Replace the character

myList[pos] = chrr

Empty the string

myStr =""

Get the new string

for i in myList:

   myStr+=i

Print the new string

print(myStr)

Following are the C++ program to replace the first index value of the string.

Program Explanation:

Defining header file.Defining the main method.Inside the main method three variable "Sval, Spos, Subchar" is declared in which "string, int, and char".After input variable value a string variable is declared with the at (method), which replaces the first index value with the character value.After replacing the first index value that is "0" use the prints method that prints its value.

Program:

#include <iostream>//header file

#include <string>//header file

using namespace std;

int main() //main method

{

 string Sval;//defining string variable

 int Spos;//defining integer variable

 char Subchar;//defining char variable

 cin>>Sval>>Spos>> Schar;//input value

 Sval.at(Spos)  =  Subchar; //using string variable that replaces the first index value with the character value

 cout << Sval << endl;//printing the replaced value

 return 0;

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/24494143

Transferring data from a remote computer to a local computer is .....​

Answers

The answer is uploading

Kirstie needs a computer for word processing, emailing, downloading high definition TV
series from an online store and basic photo editing.
Which computer would you recommend for Kirstie? Give reasons for your answer.

Answers

NmmkkjdijdjrjrjdjirjrkdidiL028

What is the output of:

print (8 % 4)

Answers

Answer:

0

Explanation:

The statement, print(8 % 4) will produce the output 0 ;

The print statement is an inbuilt function which is used to output a typed string or display result of a Mathematical calculation and so on.

The expression in the print statement gives 0;

8%4 means, the remainder when 8!is divided by 4 ; 8 /4 gives 2 without a remainder. Meaning that :

8%4 = 0

Hence, print(8 % 4) = 0

Choose the issue that is occurring from the drop-down menu. During the , development teams transform the requirements into a software application design. During the , the software design is implemented by developers in code. In the , software is evaluated for quality. Any issues with the software are logged as to be resolved by developers. Software that is maintained by developers is said to be .

Answers

Answer: See explanation

Explanation:

During the, (software design phase), developmentt teams transform the requirements into a software application design.

During the (software development phase), the software design is implemented by developers in code.

In the (software evaluation phase), software is evaluated for quality.

Any issues with the software are logged as (bugs) to be resolved by developers.

Software that is maintained by developers is said to be (supported).

Answer:

1) 2

2) 1

3) 2

4) 2

5) 3

Explanation: just did it

Um sistema resistivo opera com resistência total de 10K ohms,em uma rede elétrica com tensão de 380V.Qual a intensidade da corrente que passa pelo sistema resistivo?

Answers

Answer:11

Explanation:

.

in a dark place you have only a match , a twig , campfire logs , and oil lamp and a candle which do you literally first /
a twig
a campfire
none of the above

Answers

Answer:

You would use a twig first :)

Explanation:

Answer:

The glowing embers from the crackling campfire lit up the nighttime sky.

Explanation:

which of the following is the best example of an installation issue

Answers

Answer:

A user made an error while trying to set up a software program.

Answer:

A computer can't find the file that it needs to perform an operating system function. A computer displays error messages, and then the Blue Screen of Death appears. A user made an error while trying to set up a software program.

Explanation:

n
Which of the following is not a goal of a persuasive speaking?
a. to motivate to action
b.
to change attitudes, beliefs, or values
to strengthen or weaken attitudes, beliefs, or values
d. to define, demonstrate, or instruct
C.

Answers

Answer: D. to define, demonstrate, or instruct.

Explanation:

Persuasive speaking is the form of speaking that we usually engage in. It is used to convince people. As individuals, we usually engage in persuasive speaking. We argue about different things and try to convince the other person to agree with us.

Th goals of persuasive speaking is to motivate to action, to change attitudes, beliefs, or values and to strengthen or weaken attitudes, beliefs, or values.

It should be noted that the goal of persuasive speaking isn't to to define, demonstrate, or instruct. Therefore, the correct option is D.

Answer:

Simple Answer: D

Can anyone help me solve this?

Answers

Answer:

what should be basically be done in this question?

that’s not a question

Which statement best describes an advantage of using the Subtotal dialog box?

Only one function, Add, can be used to combine data quickly.
Data from multiple workbooks can be combined in a single step.
An option is available that can customize any function available in Excel.
Data can be summarized using a single step rather than by writing multiple formulas.

Answers

Answer: Data from multiple workbooks can be combined in a single step.

Explanation:

The Subtotal command allows the creation of groups automatically and common functions such as COUNT, SUM, and AVERAGE are used in the summarizing of data.

An advantage of using the Subtotal dialog box is that data from multiple workbooks can be combined in a single step. Therefore, the correct option is B.

Read the integer numbers in the text file "1000 Random Number from 0 to 100.txt" into a list

PLEASE HELP THANK U!!

Answers

Answer:

random_number_file = open("1000 Random Number from 0 to 100.txt", 'r')

random_number_list = random_number_file.readlines()

print('random_number_list)

Explanation:

The name of the file containing the random integer text is ; "1000 Random Number from 0 to 100.txt"

The random_number_file variable stores the opened file ("1000 Random Number from 0 to 100.txt") using the open keyword and reads it ('r')

This file stored in the random_number_file variable is the read into a list by using the readlines() method on the random_number_file

an_is a sepuence of precise instructions which result in a solution​

Answers

Answer:

algorithm.

Explanation:

An algorithm can be defined as a standard formula or procedures which comprises of set of finite steps or instructions for solving a problem on a computer. The time complexity is a measure of the amount of time required by an algorithm to run till its completion of the task with respect to the length of the input.

Furthermore, the processing symbols and their functions used in developing an algorithm are oval (start or stop), diamond (decision-making), circle (on-page connector), parallelogram (input and output), rectangle (calculation), arrow (flow or direction) and pentagon (off-page connector).

Some of the characteristics of an algorithm include the following;

I. An algorithm can be written using pseudocode. A pseudocode refers to the description of the steps contained in an algorithm using a plain or natural language.

II. An algorithm can be visualized using flowcharts. A flowchart can be defined as a graphical representation of an algorithm for a process or workflow.

In conclusion, an algorithm is a sequence of precise instructions which result in a solution​ for solving problems using a computer system.

I just need some help working out this Java code! I can list the instructions below:
Modify the CountSpaces program so that contains a String that holds your favorite inspirational quote. Pass the quote to the calculateSpaces method and return the number of spaces to be displayed in the main method.

We're given this to start however I have been struggling as there are two classes and it's been confusing me. Thanks so much for any help! All good and God Bless!

public class CountSpaces
{
public static void main(String[] args)
{
// write your code here
}
public static int calculateSpaces(String inString)
{
// write your code here
}
}

Answers

Answer:

public class CountSpaces

{

   public static void main(String[] args)

   {

       String quote = "The concept of infinity is meaningless inside of an insane human mind.";

       int nrSpaces = calculateSpaces(quote);

       System.out.println("Nr spaces in your quote is " + nrSpaces);

   }

   

   public static int calculateSpaces(String inString)

   {

       int count = 0;

       

       for (int i = 0; i < inString.length(); i++) {

           if (inString.charAt(i) == ' ') {

               count++;

           }

       }

       return count;

   }

}

Explanation:

In this example there is only one class, and since all methods are static the true concept of the class is not even being used.

A collection of wiress connecting the CPU with main memory that is used to identify particular location is called

Answers

Answer:

Address buses are made up of a collection of wires connecting the CPU with main memory that is used to identify particular locations (addresses) in main memory. The width of the address bus (that is, the number of wires) determines how many unique memory locations can be addressed.

Explanation:

Address buses are made up of a collection of wires connecting the CPU with main memory that is used to identify particular locations (addresses) in main memory.

What is CPU?

The electronic equipment that carries out the instructions included in a computer program is known as a central processing unit (CPU), sometimes known as a central processor, main processor, or simply processor.

The CPU executes fundamental mathematical, logical, controlling, and input/output (I/O) activities as directed by the program's instructions. In contrast, specialized processors like graphics processing units and external components like main memory and I/O circuitry (GPUs).

Although CPUs' shape, design, and implementation have evolved throughout time, their basic function has remained mostly same. The arithmetic-logic unit (ALU), which performs arithmetic and logic operations, processor registers.

Therefore, Address buses are made up of a collection of wires connecting the CPU with main memory that is used to identify particular locations (addresses) in main memory.

To learn more about CPU, refer to the link:

https://brainly.com/question/16254036

#SPJ5

Can anyone help me with a mental ability work plzz

Answers

choose the correct option:

1) using

2) is

3) use

4) to eat

5) use

You have typed the characters 3rd. Which of the following formatting features should be used to format the 'rd'?

1. superscript
2. Highlight
3. Sub script
4. Italics

Answers

Answer:

1. Superscript

3rd written as 3ʳᵈ

Explanation:

A superscript is a number, figure, symbol, or indicator that is smaller than the normal line of type and is set slightly above it.

Select the text or number you want.

Steps to apply superscript

1. Select the text or number you want

2. Go to Home and select Superscript X²

3rd written as 3ʳᵈ

The same rule applies to

9th written as 9ᵗʰ

what type of data type is 1+78-5​

Answers

Answer:

Integer

Explanation:

Given

[tex]1 + 78 - 5[/tex]

Required

The datatype

1, 78 and -5 are all numbers and they are without decimal points,

When a number is without decimal, such number is referred to as integer.

Hence, the datatype is integer

Other Questions
Diferencias entre lo ocurrido el 16 de junio de 1955 con el Proceso de reorganizacin Nacional de 1976-1983 In the context of the allegory, what does the king'sbehavior most likely represent?1,the abuse of powerthe power of great ideasasthe consequence of choiceaSOthe uncertainty of lovecies An economy is experiencing a high rate of inflation. The government wants to reduce consumption by $24 billion to reduce inflationary pressure. The MPC is 0.75. By how much should the government raise taxes to achieve its objective? Solve for y and x 3x+4y=18.50. 5x+8y=14.50 what os iodated salt. any body can answer plz NO LINKS!!!!Create a table and graph the function.1. y = (x + 3)^2 + 22. y = 2(x - 2)^2 - 4 2+2+2+2-22-2+2=? . (16-14-12-24) When they arrived at the museum,Tyler's dad went to the ticket counter. For each of the 5 members of the family ,he purchased a general admission ticket for $8.75 and a ticket to see a special exhibit . He paid a total of $70?. How much did each of the ticket to the special exhibit cost Which of the following best explains how symmetric encryption are typically used? Every 0.05 seconds a machine has a 0.0001% of activating. What is the probability of it activating each second. 1) Using LONG Division, is "X + 3 a factorof the polynomial 2X + 3X - 11X - 6*Show all work just below can someone unscramble these words and put them in a sentence? thanks The front and back sides are both triangles, explain why you arent going to divide the base x height by 2. Here are selected 2017 transactions of Akron Corporation.Jan. 1 Retired a piece of machinery that was purchased on January 1, 2007. The machine cost $62,000 and had a useful life of 10 years with no salvage valueJune 30 Sold a computer that was purchased on January 1, 2015. The computer cost $36,000 and had a useful life of 3 years with no salvage value. The computer was sold for $5,000 cashDec. 31 Sold a delivery truck for $9,000 cash. The truck cost $25,000 when it was purchased on January 1, 2014, and was depreciated based on a 5-year useful life with a $4,000 salvage value.Required:Journalize all entries required on the above dates, including entries to update depreciation on assets disposed of, where applicable. Akron Corporation uses straight-line depreciation. Which best describes the narration in chapter 5 of The Adventures of Huckleberry Finn?Huck narrates the story, which helps readers understand his point of view and his inner thoughts.Hucks father narrates the story, which makes it difficult for the reader to grasp Hucks inner thoughts and feelings.The story is told in the third person, which creates a sense of detachment between the reader and the characters.The story is narrated by the widow, which helps the reader see Huck as an immature child. - 5 =13 need help ! When constructing a demand function, it is necessary to hold many other factors constant, so that a relationship between price and output can be established.a. Trueb. False These words are scrambled, place the letters in the correct order to make the right word.1. Portes2. Trouve:c'est3. Epices: des4. Singer5. Gerant: de'l which angles are vertical to each other ? Please Help. What is the perimeter of the base?