How do you Write a pseudo code algorithm that reads in three values and writes out the result of subtracting the second value from the sum of the first and third values?

1 Answer

Answer :

Pseudocode means you don't use any actual computer language, so you can be quite informal. Just get the general idea. In this case, for instance:Input number to aInput number to bInput number to cresult = a + c - bShow resultYour teacher may have specific requirements for pseudocode; try to incorporate those.

Related questions

Description : When an algorithm is written in the form of a programming language, it becomes a _________ a) Flowchart b) Program c) Pseudo code d) Syntax

Last Answer : Answer: b Explanation: An algorithm becomes a program when it is written in the form of a programming language. Thus, any program is an algorithm

Description : When cache process starts hit and miss rate defines in cache directory: a. during search reads b. during search writes c. during replace writes d. during finding writes

Last Answer : a. during search reads

Description : A ________ is a logical unit that serves as the target for storage operations, such as the SCSI protocol READs and WRITEs. a) GETs b) PUN c) LUN d) All of the mentioned

Last Answer : LUN

Description : If a segment is you can find the distance by subtracting the y-coordinates and taking the absolute value.?

Last Answer : Feel Free to Answer

Description : Maximization assignment problem is transformed into a minimization problem by a. Adding each entry in a column from the maximization value in that column b. Subtracting each entry in a column from the maximum ... entry in a column from the maximum value in that table d. Any one of the above

Last Answer : c. Subtracting each entry in a column from the maximum value in that table

Description : The given maximization assignment problem can be converted into a minimization problem by (A) subtracting each entry in a column from the maximum value in that column. (B) subtracting each entry in the table ... value in that column. (D) adding maximum value of the table to each entry in the table.

Last Answer : (B) subtracting each entry in the table from the maximum value in that table.

Description : A rich man in Arabia died, leaving a note for his three sons. It reads: 'I have 17 camels. The big brother can get a half of all, the middle can get third of all, and the youngest can get a ... 17 cannot be divided by 2, 3 or 9 without anything left. How can the brothers solve the problem? -Riddles

Last Answer : 1. Borrow a camel from their neighbour to make 18 camels. 2. The big brother takes a half of it, so he takes 9. 3. The second brother takes a third of it, so he takes 6. 4. The youngest ... so he takes 2. 5. All the camels that the brothers took add up to 17, leaving the camel they borrowed!

Description : A certain number has three digits. The sum of the three digits equals 36 times this number. Seven times the left digit plus 9 is equal to 5 times the sum of the two other digits. 8 times the second digit minus 9 is equal to the sum of the first and third.What is the number? -Riddles

Last Answer : This one is fairly easy - 324 is the answer.

Description : The sum of the squares between three numbers is 5000. The ratio between the first and the second number is 3:4 and that of second and third number is 4:5. Find the difference between first and the third number. A) 20 B) 30 C) 40 D) 50 E) None of these

Last Answer : Answer: A a^2 + b^2 + c^2 = 5000 a:b:c = 3:4:5 50x^2 = 5000. X = 10. 5x – 3x = 2*10 = 20

Description : The sum of three numbers is 210. If the ratio between the first and second number be 2:3 and that between the second and third be 4:5, then the difference between the first and third number? a) 21 b) 35 c) 42 d) 56 e) None of these

Last Answer : Answer: C a: b = 2:3 and b:c = 4:5 a:b:c = 8:12:15 Difference between first and third number = (7/35)*210 = 42

Description : The sum of the three number is 68.If the ratio of the first to second is 3:2 and that of the second to the third is 5:3 , then the second number is approximately A) 21 B) 22 C) 23 D) 24 E) None of these 

Last Answer : Answer: B A: B = 3:2 B:C = 5 : 3 B:C =(5×[2/5]) : (3×[2/5])= 2: (6/5) A:B:C = 3:2:(6/5) = 15:10:6 Second number = (10/31)×68 = 21.9 = 22

Description : How do you write an algorithm to swap the values of x and y using a temporary variable t?

Last Answer : To swap the values of two variables, x and y, using a temporaryvariable t:t = x;x = y;y = t;To implement this algorithm as a function, the variables must bepassed by reference. For efficiency, ... (since C++11). If a type does not support themove semantic, copy semantics will be used instead.

Description : Write an algorithm and draw the flowchart to find sum of series of numbers. 

Last Answer : Algorithim to find sum of series of numbers: 1. Initialize data segment 2. Initialize byte counter and memory pointer to read number from array. 3. Initialize sum variable to 0 4. sum=sum+number from array ... Decrement byte counter 9. If byte counter=0 then step 10 else step 4 10. Stop

Description : A recorder’s harmonic-distortion specification reads 2% third harmonic of a 100-kHz signal at 60 ips. What does this mean?

Last Answer : The recorder has 2% third-harmonic distortion of a 100-kHz signal at 60 ips.

Description : What do you think of this explanation of why subtracting a negative is the same as adding a positive?

Last Answer : I should have added that if you accept that subtracting a positive is the same as adding a negative then it follows that subtracting a negative is the same as adding a positive.

Description : How Subtract 1 over 3 subtracting one over 3?

Last Answer : Anything minus itself equals zero.

Description : Propulsion DC motor brush pressures can be calculated by _____________. A. dividing the brush contact area by the spring pressure B. subtracting the brush contact area from the spring pressure C. ... force by the brush contact area D. subtracting the spring pressure from the brush contact area

Last Answer : Answer: C

Description : In quadrantal bearing system, back bearing of a line may be obtained from its forward bearing, by (A) Adding 180°, if the given bearing is less than 180° (B) Subtracting 180°, if the given bearing, is more ... cardinal points, i.e. substituting N for S and E for W and vice-versa (D) None of these

Last Answer : (C) Changing the cardinal points, i.e. substituting N for S and E for W and vice-versa

Description : Gross profit is calculated by subtracting ________ from _________, a. operating expenses, net income b. sales discounts from sales revenue c. cost of goods sold, net sales revenue d. merchandise inventory, cost of goods sold

Last Answer : c. cost of goods sold, net sales revenue

Description : Write an algorithm to calculate the area of a circle and display the result . Use the formulae A=¶r where ¶ is equal to 3.1416?

Last Answer : 10001/999900

Description : Why is the word pseudo often used when referring to CSS or maybe all code?

Last Answer : Could you give us an example? Generally when people say pseudo code, they’re referring to code that isn’t actual code, but is explaining how code statements work. Such as: if (the cat is wet) { meow anxiously; }

Description : A second order reaction of the form A + B → C is called a pseudo-first order reaction, when (A) CA0 = CB0 (B) CA0 > CB0 (C) CB0 > CA0 (D) CB0 ≥ CB0

Last Answer : (D) CB0 ≥ CB0

Description : An ammeter reads slightly above 'zero' when its leads are disconnected, this is a result of ___________. A. mechanical misalignment of the meter pointer B. a poor ground for the meter case C. static electricity in the air D. resistors inside the meter storing charges

Last Answer : Answer: A

Description : When a top-level function is entered, the LISP processor does? a) It reads the function entered b) It prints the result returned by the function c) Large memory and high-speed processor d) All of the mentioned

Last Answer : b) It prints the result returned by the function

Description : What is the term used to describe a spread spectrum communications system where the center frequency if a conventional carrier is altered many time per second in accordance with a pseudo ... hopping B. Direct sequence C. Time-domain frequency modulation D. Frequency compandored spread spectrum

Last Answer : A. Frequency hopping

Description : For a database relation R(A,B,C,D) where the domains of A,B,C and D include only atomic values, only the following functional dependencies and those that can be inferred from them are: A→C B→D The ... form but not in third normal form (4) Both in second normal form as well as in third normal form

Last Answer : First normal form but not in second normal form

Description : I am a five-digit whole number, read the same forward, backward and upside down. My second digit is half my third digit; my fifth digit is the product of my first and last digits; and the sum of my whole is ten. What am I? -Riddles

Last Answer : 10801

Description : Find four numbers, the sum of which is 45, so that if 2 is added to the first number, 2 is subtracted from the second number, the third number is multiplied by 2 and the fourth number is divided by 2, then the four numbers so produced are all the same. What are the four numbers? -Riddles

Last Answer : 8 + 2 = 10 12 - 2 = 10 5 x 2 = 10 20 ÷ 2 = 10 45

Description : What Sum of the terms of Arithmetic Progression If a boy saved 25 on the first day 27 on the second day 29 the third day and so on how many days it will take him to save 880?

Last Answer : On the 20th day, you would reach 880. ---------------------------------------- Sum(AP) = ½n(2a + (n-1)d) here: Sum(AP) = 880 a (first term) = 25 d (common difference) = 2 n (number of ... The sum of an AP can also be expressed as ½ Ã- n Ã- (first + last) since last = first + (n - 1) Ã- difference.

Description : Mark the correct option. a) The first loan on PPF accounts can be taken in the third year from the year of opening the account. b) The amount of Loan will be restricted to 25% of the balance at ... is repayable either in lump sum or in convenient installments of not more than 36. d) All the above

Last Answer : d) All the above

Description : You are stuck in a room. On the door is a keypad with all the letters of the alphabet and the enter button. The word is 7 letters long. To your left, is a table with a note. The note reads: ... the note upon the table, remove a letter and you will be free. What is the code to escape? -Riddles

Last Answer : The code is science After solving for the first note, you will get sciesnce. If you don't understand why, go to the Periodic Table of the Elements and find these elements there. From the ... with this my self when I was looking at the periodic table. Thank you for reading my Escape Room.

Description : ………. reads the bar code information. -Technology

Last Answer : Barcode Reader reads the bar code information.

Description : The term ___________ is used for a depth-first search that chooses values for one variable at a time and returns when a variable has no legal values left to assign. a) Forward search b) Backtrack search c) Hill algorithm d) Reverse-Down-Hill search

Last Answer : b) Backtrack search

Description : Which values are independant in minimax search algorithm? a) Pruned leaves x and y b) Every states are dependant c) Root is independant d) None of the mentioned

Last Answer : a) Pruned leaves x and y

Description : The minimax algorithm computes the minimax decision from the current state. It uses a simple recursive computation of the minimax values of each successor state, directly implementing the defining equations. The ... are backed up through the tree as the recursion unwinds. a) True b) False

Last Answer : a) True

Description : Which algorithm includes repeated addition of two predetermined values A and S to a product P and then performs a rightward arithmetic shift on P. a. Booth’s algorithm b. Usual algorithm c. Multiplication algorithm d. None of these

Last Answer : a. Booth’s algorithm

Description : Quantitative attributes are A. A reference to the speed of an algorithm, which is quadratically dependent on the size of the data B. Attributes of a database table that can take only numerical values C. Tools designed to query a database D. None of these

Last Answer : B. Attributes of a database table that can take only numerical values

Description : What is the algorithm to compute the sum of even numbers between 7 and 50?

Last Answer : (7 to 50).filter(_ % 2 == 0).sum

Description : The basic approach to Earned Value is to A. Sum up the Work Package Earned Values to calculate the Earned Value of the Control  Account and ultimately the Project  B. Multiply the percent complete by ... that package  C. Estimate a percent complete for each WBS Work Package  D. All of the above

Last Answer : D. All of the above

Description : If you had to list three words that sum up your essential values, what would your words be?

Last Answer : answer:1. Honest 2. Faithful 3. Provider

Description : The sum of all the integral values of a {where `a in (-10, 10)}` such that the graph of the function `f(x)=||x-2|-a|-3` has exastly three x-intercepts

Last Answer : The sum of all the integral values of a {where `a in (-10, 10)}` such that the graph of the function `f(x)=||x-2 ... is A. `10` B. `5` C. `3` D. `0`

Description : A boy was at a carnival and went to a booth where a man said to the boy, 'If I write your exact weight on this piece of paper then you have to give me $50, but if I cannot, I will pay you $50.' ... more or less. In the end the boy ended up paying the man $50.How did the man win the bet? -Riddles

Last Answer : The man did exactly as he said he would and wrote 'your exact weight' on the paper

Description : A boy was at a carnival and went to a booth where a man said to the boy, 'If I write your exact weight on this piece of paper then you have to give me $50, but if I cannot, I will pay you $50.' ... more or less. In the end the boy ended up paying the man $50. How did the man win the bet? -Riddles

Last Answer : The man did exactly as he said he would and wrote 'your exact weight' on the paper.

Description : A boy was at a carnival and went to a booth where a man said to the boy, 'If I write your exact weight on this piece of paper then you have to give me $50, but if I cannot, I will pay you $50.' ... more or less. In the end the boy ended up paying the man $50. How did the man win the bet? -Riddles

Last Answer : The man did exactly as he said he would and wrote 'your exact weight' on the paper.

Description : How would you use java & App Engine to write to the file system? a. Disconnect from the internet and Google App Engine automatically writes to the disk. b. Edit the configuration file accordingly c. ... Invoke an instance of Google App Engine within the sandbox and it will then write to the disk.

Last Answer : You cannot write t the file system with the exception of resources files.

Description : How would you use java & App Engine to write to the file system? a. Disconnect from the internet and Google App Engine automatically writes to the disk. b. Edit the configuration file accordingly c. ... Invoke an instance of Google App Engine within the sandbox and it will then write to the disk.

Last Answer : You cannot write t the file system with the exception of resources files.

Description : Under section 16 of the Negotiable Instrument Act, 'indorsement in blank' of an instrument means A. Where the indorser does not write anything on the instrument B. Where the indorser signs his name only on ... the indorser writes the name of the person who is directed to pay D. None of the above.

Last Answer : A. Where the indorser does not write anything on the instrument

Description : .Degeneration of a genetic code is attributed to the (a) first member of a codon (b) second member of codon (c) entire codon (d) third member of a codon.

Last Answer : (b) second member of codon

Description : Degeneration of a genetic code is attributed to the (a) first member of a codon (b) second member of codon (c) entire codon (d) third member of a codon.

Last Answer : d) third member of a codon.

Description : A 75-year-old man had been receiving gentamicin (an aminoglycoside antibiotic) to treat an urinary tract infection. After three months of therapy patient's serum creatinine levels were 10 mg/ ... Type II allergic reaction b)Type III allergic reaction c) Pseudo allergic reaction d) Overdose toxicity

Last Answer : d) Overdose toxicity