Computer Science, asked by aryanlakshayta, 1 year ago

Write algorithm for the following problems.
(a) to read name and phone number and print both​

Answers

Answered by charlie1505
55

Answer:

Step1:

Start

Step2 :

Accept name and phone no

step3

Print it both then create object of class and call the method where the name and mob no defined

step 4:

display output

step 5:

stop

Answered by vishakasaxenasl
4

Answer:

Following is the algorithm for reading names and phone numbers and printing both​:

Explanation:

Algorithms are always independent of the language used for development. Below algorithm can be implemented in any language

Step I: First create two variable names with character data type and phone with integer data type for storing the name and phone number.

Step II: Now call the system input method as per the language used for development to ask the user to enter their name and phone number.

Step III: Store both values in the respective variables.

Step IV: Print both values by the system output method on the screen.

Step V: lastly, terminate the execution and end the program.

#SPJ2

Similar questions