23. Write a pseudocode algorithm for dialing a phone number.
Step 1: keep phone number on note.
Step 2: Lift the receiver
Step 3: Is there a dial tone?
If yes, then dial telephone, go to step 4.
If no, then put down the receiver.
Go to step 2}
Step 4: Speak
Step 5: Put down the receiver.
if you have any doubt then please ask me without any hesitation in the comment section below , if you like my answer then please thumbs up for the answer , before giving thumbs down please discuss the question it may possible that we may understand the question different way and we can edit and change the answers if you argue, thanks :)
Write pseudocode for an algorithm that is given the length and width, in feet, of a rectangular carpet and determines its total cost given that the material cost is $23/square yard.
Write the pseudocode for an algorithm called copystack that copies the contents of one stack into another. The algorithm passes two stacks, the source stack and the destination stack. The order of the stacks must be identical. Note: please number the steps, Thanks
Write pseudocode for the conversion of infix to prefix notation algorithm Pseudocode may use the following Input : A * B + C / D Output : + * A B/ C D
WRITE THE ALGORITHM PSEUDOCODE FOR EACH OF THE FOLLOWING(NO CODE JUST PSEUDOCODE) 1.DETERMINE THE DAY OF THE WEEK FOR ANY GIVEN DATE WITHIN THE SAME WEEK (EX. TODAY IS 03/24 TUE, SO 03/23 MUST BE MON) 2. DETERMINE THE DAY OF THE WEEK FOR ANY GIVEN DATE WITHIN THE SAME MONTH (EX. TODAY IS 03/24 TUE, SO 03/15 MUST BE SUN) 3. DETERMINE THE DAY OF THE WEEK FOR ANY GIVEN DATE WITHIN THE SAME NON LEAP YEAR (DO NOT...
Write a pseudocode algorithm to search for a value in a graph (you can assume that each node v has a value field i.e. v.value). Compute the time complexity of your algorithm
C++ Write a pseudocode algorithm for a program that reads the subtotal and the tip rate, then computes the tip and total.
Write the pseudocode to produce a bill for cell phone charges. Data fields will include the date, number called, number of minutes, and cost (rate × minutes). Data should be loaded into an array. Include totals for the number of minutes and cost.
Subject: Algorithm
need this urgent please thank you.
4. Give pseudocode for an algorithm that will solve the following problem. Given an array A[1..n) that contains every number between 1 and n +1 in order, except that one of the numbers is missing. Find the miss sorted ing mber. Your algorithm should run in time (log n). (Hint: Modify Binary search). A pseudocode means an algorithm with if statements and loops, etc. Don't just write a paragraph. Also, if your...
1) Use the Euclidean algorithm (write in pseudocode) to find the greatest common divisor of 8 898 and 14 321. 2) Program the Euclidean algorithm in 1) by using C++ programming language. 3) What is the greatest common divisor of 8 898 and 14 321? 4) Next, extend the Euclidean algorithm (write in pseudocode) to express gcd(8 898; 14 321) as a linear combination of 8 898 and 14 321. 5) Continue the programming in 2) to program the Extended...
Please do the following: a-) Write a pseudocode that receives a positive number from the user, and then, starts printing and keep printing the word “CS” until the number of the printings matches the received number from the user. b-) Write an algorithm for the same problem. c-) Draw a flowchart for the same problem