To be able to write algorithms in pseudocode, one needs to learn the programming language.
<h3>How to write an algorithm in the pseudocode?</h3>
For writing the algorithms in a pseudocode, one must be able to understand the programming language, for which each of the steps shall be arranged properly in a sequential manner.
The instruction to be given to the code are to be written in uppercase, whereas lowercase is used for displaying the messages in the sentence. The command of input, is used for asking questions.
Hence, the ways to write an algorithm in a pseudocode is explained above.
Learn more about pseudocode here:
brainly.com/question/13208346
#SPJ1
Answer:
The statements are given below:
output.open("pi"); // opening the file by the of stream object
output << "3.14159";
output.close(); // closing the file
Explanation:
In this we open the file with the help of output stream object .The statement output.open("pi"); is opening the file after after opening the file "pi". The output object print the 3.14159 message in console and finally the output stream file is close with the help of output.close() statements .
Answer:
Robotics Engineer
Explanation:
This is a designation for those like Zac who have loads of patience, and also a lot of experience in Engineering. It's the Engineers like Zac who is responsible for figuring out the robots on paper. And this takes quite an effort as they have to do a lot of research as well as should be technically sound as well as sophisticated in Robotics. Note, Zac assists in assembling Robots, and this can only be done by a Robotics Engineer. And Zac also carries regularly the inspection of the industries which have bought his organization's Robots. And he finds if they are functionally sound. And that can be done by only a Robotic Engineer, And he is hence, certainly a Robotic Engineer.
Answer:
Following are the code to this question:
def capital(val):#defining a method that takes string value as parameter
x=True#defining boolean variable
r=''#defining string variable
for i in val:#defining loop to convert the first character into upper case
if i.isalpha() and x:#defining condition to check input value is string
r=r+i.upper()#change value into uppercase and hold value in r variable
x=False#assign value false in boolean variable
elif i=='.' or i=='?' or i=='!':#check symbols
r=r+i#add value in r variable
x=True#assign value True in boolean variable
else:
r=r+i#add all value in r variable
return r#return r variable value
val=input()#input value in val variable
print(capital(val))#called the function which print the return value
Output:
please find the attachment.
Explanation:
- In the above python program, a method "capital" is declared, which accepts a "val" a string value in its parameter, and inside the method one boolean "x" and one string "r" variable is used, in which r stores return value.
- In the next step, for loop is declared, inside the loop, the conditional statement is used, in if the block it checks string value and converts the first character into upper case and assigns value false in the boolean variable.
- In the next step, elif block is defined that adds value in r variable and at the last, it will return function value, at the last step "val" variable is declared that input value from the user and pass into the method and print its return value.
The correct answer is option D, the last one! <3