1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
weeeeeb [17]
4 years ago
14

Write pseudocode for a program which will ask a user to enter two numbers a and b. It then asks what operation is to be performe

d: a*b, a/b, a//b or a%b, performs the appropriate calculation and prints out the result. ​If the user does not enter a valid response, print an error message.
Computers and Technology
1 answer:
sleet_krkn [62]4 years ago
5 0

get int input for a

get int input for b

get string input for operator

if a is not int or b is not int throw exception and print error

if operator is not * / // or % throw exception and print error

if operator is * do multiplication of a and b and make answer c

else if operator is / do division of a and b and make answer c

else if operator is // do floor division of a and b and make answer c

else if operator is % do floor modulo of a and b and make answer c

print c

You might be interested in
Microsoft access does not create n:m relationships because microsoft access creates databases based on
galina1969 [7]
Data information i think
6 0
4 years ago
Which of the following describe ALAC audio files? Choose all that apply.
Vitek1552 [10]

Answer:

B,C,D

Explanation:

6 0
3 years ago
Read 2 more answers
Which of the following identifies the most appropriate courses to take in high school for someone interested in becoming a mecha
lora16 [44]

Answer: New questions in Health

Which member of the multidisciplinary team would help a patient improve his flexibility in the joints after a knee-replacement surgery? A. a physiot…

What are two advantages of a multidisciplinary team approach? better diagnosis in complex cases shared responsibility for decisions more opportunit…

MARKING PEOPLE AS BRAINLIST PLEASEEE HELP Where is the carbon dioxide picked up and the oxygen unloaded in the body? A:Arteries B:Veins C:Capillar…

Which healthcare professional would be primarily responsible for treating a patient for his anxiety disorder after a surgery? A. a nurse B. a nutr…

Do Now: What might be a situation where it might be important to identify 3 points somebody? What are different strategies that scientists could use …

Explanation:

4 0
3 years ago
Memory and processor both have big impact on the performance of a pc. <br>•true <br>•false <br>​
meriva

Answer:

true

Explanation:

they really do

the memory saves

while the processor determine the speed of the computer .... The processor also determine the price is the pc as it is the brain of the computer

4 0
3 years ago
Sending an email to customer support before looking through the site and reading the frequently asked questions is an example of
IRINA_888 [86]

The correct answer is B. Doing your research

Explanation:

Before asking questions in a website or writing through customer support it is recommended to first do your research, this means looking for information on the internet or the frequently asked questions because in most cases the question you have in mind has been answered by the webpage or other people and therefore if you look by you own you can avoid sending emails or contacting people. This principle is basic when using the internet and implies only in case you cannot find the answer to a question you ask for help.

According to this, sending an email before looking through the site and reading the frequently asked question is an example of not doing your research, because it is supposed first you look for information on your own and just in case you cannot find anything you contact someone else.

3 0
3 years ago
Other questions:
  • Very often in data science, we are interested in understanding how values change with time. Use np.diff and np.max (or just max)
    13·1 answer
  • _____ is when network managers deal with network breakdowns and immediate problems instead of performing tasks according to a we
    9·1 answer
  • About how many people live in mexico city A. 9M B. 5M C. 11M
    7·1 answer
  • Can anyone help me with getting bash ubuntu on windows setup?
    15·1 answer
  • Pablo can view a minimum of_____ panes and a maximum of_____ panes in a split screen worksheet.
    7·1 answer
  • How can a Word user insert a page break into a document to isolate a table on a new page?
    13·2 answers
  • When you tap or click the ____ button for a selected graphic, Word provides options for changing how a graphic is positioned wit
    5·1 answer
  • If you're looking to install Gigabit Ethernet, what cabling system would you use?
    9·1 answer
  • A common use-case for dictionaries is to store word counts. Let's modify our program below to store the count for each unique wo
    9·1 answer
  • What type of data would a RDBMS store in a linked list, two-way linked list, or B-trees? What are the advantages and disadvantag
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!