Well, we're not going to do it for you.
There's some example code and tutorials at http://www.cplusplus.com/doc/tutorial/ . It's for C++, but the code is simple enough that it shouldn't make a difference. Adapt that, and it should do exactly what you want.
Accept 5 numbers in an array and display it.
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.
draw a flowchart to display the first tenth even number
//C program to accept a string from user and //display its ascii value and //then display sum of all ascii value of strings #include<stdio.h> #include <string.h> int main() { char String[100]; int Sum,Index; Sum=0; //Sum is initially zero printf("Enter the string:\n"); gets(String); //Accept String from User for(Index=0;Index<strlen(String);Index++) { Sum+=(String[Index]); //Adds (the ASCII values of) the String characters. } printf("The sum is %d\n",Sum); //Printing it as %d gives the equivalent ASCII value. return 0; }
The specifications for a software application will be what that application needs to be able to do. The designwill be how the software engineers plan to do it.A simple specification may be something like "This application must be able to take two numbers as input and display their sum."The design could be:# Accept two values via command line # Add values # Display sum or...# Display calculator GUI # Accept two values via mouse input # Add values # Display sum
Accept 5 numbers in an array and display it.
program that display the area of a circle of a reduce
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.
start, inputbox,inputbox,inputbox,inputbox,inputbox,progresh,display,stop
draw a flowchart to display the first tenth even number
Start accept 7 number calculate sum print sum stop
start accept a,b and c c=a+b display c stop
write a c program to accept a number and generate a square root cube and exponential values
Convert this in flow chart and see if it can help Start Display "Enter 2 numbers" Accept 2 numbers A & B Divide the A with B Is result Zero? ---- No - A is not Dividable with second Yes - A is Dividable with second End
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.
Design an algorithm that will accept a perons's name from the screen entered as surname, first name, separated by a comma. Your program is to display the name as frist name, followed by three blanks, followed by the surname. -defining diagram -pseudocode algorithm
No, there are no Universities in Egypt that will accept a student without an SAT score.