Answer: D. Turing conceived the structure of a programmable computer.
Explanation: The passage describes how Alan M. Turing described the theoretical aspect of a programmable computer. There is no reference to a physical machine or Turing working on an actual (physical) computer.
The Turing machine, although it does sound like a physical computer was an abstract idea, conceived in mathematical form of what a programmable machine would be like. Alan Turing is considered one of the founding fathers of theoretical computer science.
Answer:
# include<iostream>
#include<conio.h>
using namespace std;
void main ()
{
float r, area;
cout<<"Enter the radius of the circle";
cin>>r;
area = 3.14 * (r^2);
cout<<"\nArea of Circle= "<<area;
getch();
}
Explanation:
In this program, float is selected as data type for both radius and area. As, both the value can be in decimal. r is the name of radius variable. area represents the area of circle. By using cout and cin enter the value of radius. By applying formula, calculate the area and shown on output.
Answer:
A pre-programmed function is a section of code which is reusable to perform certain routine. One benefit of using a pre-programmed function to analyze data is the code redundancy can be reduced. The function is only written for once and it can be called to perform a specific data analysis whenever it is needed.
Besides, a pre-programmed function also offer consistent analytical output as all data are processed by a same analytical procedure in the function.
<h3>Here is the program~</h3>
/*Pattern.Java.*/
import java.util.*;
public class Pattern_Prog
{
public static void main (String args[ ])
{
Scanner input = new Scanner(System.in);
int length;
System.out.print("Enter a word : ");
String word = input.next( );
length = word. length( );
for(int i = 0; i<= length; i++)
{
for(int j = 0; j<i; j++)
{
System.out.print(" ");
}
System.out.println(word.substring(0,length-i));
}
input.close( );
}
}
<h3>Hope it helps you!!</h3>