Want this question answered?
ALGORITHM SAMPLE i = 0 REPEAT OUTPUT ("Enter a number: ") INPUT (number[i]) i ++ UNTIL (number[i] 0) THEN counter++ sum = sum + number[i] END IF END FOR DISPLAY (counter) DISPLAY (sum / counter) END SAMPLE
Since all decent programming languages have the multiplication operator, you simply multiply them. If you want to go into a bit more detail, it would be a bit like this: Ask user for number "a" Ask user for number "b" Calculate result = a * b Show result (End) Use the appropriate flow chart symbols for input, etc.
C#.net ProgramsProgram # 1:This program takes three positive numbers from user. Compute and display the average of the two larger numbers. using System;using System.Collections.Generic;using System.Text;namespace Average_of_three_Nos{class Program{static void Main(string[] args){string no1, no2, no3;int n1, n2, n3;int average;Console.WriteLine("Enter First Number");no1 = Console.ReadLine();n1 = Int32.Parse(no1);Console.WriteLine("Enter Second Number");no2 = Console.ReadLine();n2 = Int32.Parse(no2);Console.WriteLine("Enter third Number");no3 = Console.ReadLine();n3 = Int32.Parse(no3);average = (n1 + n2 + n3) / 3;Console.WriteLine("Average of three Numbers : "+ average);}}}Program #2:This program will take two positive numbers as its input and then find GCD of them.using System;using System.Collections.Generic;using System.Text;namespace GCD{class Program{static void Main(string[] args){Program obj = new Program();string no1, no2;int n1, n2;Console.WriteLine("Enter First Number");no1 = Console.ReadLine();n1 = Int32.Parse(no1);Console.WriteLine("Enter Second Number");no2 = Console.ReadLine();n2 = Int32.Parse(no2);int g=obj.find_gcd(n1, n2);Console.WriteLine("GCD=" + g);}int find_gcd(int a, int b){int c;if(a
identification division. program-id. greatest. environment division. data division. working-storage section. 77 a pic 999. 77 b pic 999. 77 c pic 999. procedure division. greatest. display "ENTER THE THREE NUMBERS:". accept a. accept b. accept c. if a > b and a > c display a "is greatest" else if b > c display b "is greatest" else display c "is greatest". display " thank you". stop run.
Write a c program that reads your first name and surname when you enter them. Each part of your name should not be more than 12 characters. Finally, have the program display your full name.
1.Start Algorithm 2.Enter first number 3.Enter second number 4.Enter third number 5.Enter fourth number 6.Enter fifth number 7.Add five number 8.display five number / 2 9.Display result 10.End Algorithm
You don't have to program it in. Try pressing the 2nd button followed by poly (which is the PRGM key). After that the calc. should say: (POLY order=) After seeing this press the number 2 and then ENTER. The calc. should display a2= a1= a0= and that is where you type in your values pressing enter after each number
It displays the power to which '10' would have to be raised in order to get the number you entered. That's the definition of the 'logarithm' or 'log' of a number. Examples: Enter 100. Hit 'log x'. Display '2', because 102 = 100. Enter 1000. Hit 'log x'. Display '3', because 103 = 1000. Enter 2. Hit 'log x'. Display '0.30103', because 100.30103 = 2. Enter 0.1. Hit 'log x'. Display ' -1 ', because 10-1= (1/101) = 0.1
program SumAndDifference; var num1, num2, sum, difference: integer; begin write('Enter first number: '); read(num1); write('Enter second number: '); read(num2); sum := num1 + num2; difference := num1 - num2; if sum > difference then written('The sum is greater: ', sum) else written('The difference is greater: ', difference); end. This program will prompt the user to enter two numbers, calculate their sum and difference, and then compare the two values. If the sum is greater than the difference, it will display the sum; otherwise, it will display the difference.
ALGORITHM SAMPLE i = 0 REPEAT OUTPUT ("Enter a number: ") INPUT (number[i]) i ++ UNTIL (number[i] 0) THEN counter++ sum = sum + number[i] END IF END FOR DISPLAY (counter) DISPLAY (sum / counter) END SAMPLE
To program the Regency Z30 TURN UNIT "ON" 1. Press "MANUAL" 2. Enter the frequency you want, example 162.475 3. Press "ENTER" The display will show "Ch_" with the _ (underscore) flashing 4. Enter the number of the channel where you wish to store the frequency. Note: channels 1 thru 9 must have a zero before them, example 01, 02,........ 09 If you want to add more frequencies at this time, got to step 2. To lock out a channel, press "SCAN" and while the unit is scanning,enter the channel number. Repeat this action to unlock a channel. To increase or decrease the scanning rate, press the "SPEED / ENTER" key while the unit is scanning. To create a delay after a transmission, press the "DELAY" key while the unit is scanning. You can change the display by pressing the "CHANNEL / DISPLAY" key. There are 3 choices: display only the channel number, only the frequency,or alternate displaying the channel number and the frequency.
sum=0 i=1 echo "Enter any number " read num while [ $i -le 10 ] do sum=`expr $num \* $i` i=`expr $i + 1` echo "Table of a number is " $sum done
Since all decent programming languages have the multiplication operator, you simply multiply them. If you want to go into a bit more detail, it would be a bit like this: Ask user for number "a" Ask user for number "b" Calculate result = a * b Show result (End) Use the appropriate flow chart symbols for input, etc.
DRAW A FLOWCHART TO ENTER A NUMBER FROM 1 TO 7 AND TO DISPLAY THE CORRESPONDING DAY OF THE WEEK
Hold ALT+Mode. Go down to program. Hit enter
All the smallest factors of a number must be its smallest factor, which for any number is 1, so: loop loop loop print "Enter an integer number: ": input n until num(n) do print "Please enter a number" repeat until n = int(n) do print "Please enter an integer" repeat print "Smallest factor of ":n:" is 1" repeat
BC 560XLT 16-Channel Direct Entry Programmable ScannerPROGRAMMING CHANNELS1. Turn on your scanner by turning the volume clockwise.2. The scanner might strart scanning. If so, press MANUAL to stop thescanning.3. Enter the channel number that you want to program and press MANUAL.4. Enter a frequency including the decimal point. The decimal point showsup on the display as a -- (dash).5. Press Enter to store the frequency.6. To confirm the proper entry, press REVIEW. The programmed frequencyappears on the display one digit at a time.7. To program more channels repeat steps 3-4.