Answer:
c. 27
Explanation:
Answer:
Implemented using Python
n = int(input("Sides: "))
if(n>=1 and n <=50):
for i in range(1,n+1):
for j in range(1,i+1):
print('*',end='')
print("")
for i in range(n,0,-1):
for j in range(i,1,-1):
print('*',end='')
print("")
else:
print("Range must be within 1 and 50")
Explanation:
This line prompts user for number of sides
n = int(input("Sides: "))
The line validates user input for 1 to 50
if(n>=1 and n <=50):
The following iteration uses nested loop to print * in ascending order
for i in range(1,n+1):
for j in range(1,i+1):
print('*',end='')
print("")
The following iteration uses nested loop to print * in descending order
for i in range(n,0,-1):
for j in range(i,1,-1):
print('*',end='')
print("")
The following is executed if user input is outside 1 and 50
else:
print("Range must be within 1 and 50")
Answer:
Following are the program in the C++ Programming Language.
//header file
#include<iostream>
//header file
#include <bits/stdc++.h>
//namespace
using namespace std;
//set main function
int main()
{
//set float type variables
float a,s,m,d,c,b,g;
//print message and get variable from the user
cout<<" Enter The First Number : ";
cin>>c;
//print message and get variable from the user
cout<<" Enter The Second Number: ";
cin>>b;
again:
//get variable from the user for Operation
cout<<" Enter the Operation which you want : ";
char choice;
cin>>choice;
//Addition
a=c+b;
//Subtraction
s=c-b;
//Multiplication
m=c*b;
//Division
d=c/b;
//Modulus
g=fmod(c, b);
//set switch statement
//here is the solution
switch(choice)
{
case '+':
cout<<"Addition: "<<a<<endl;
goto again;
break;
case '-':
cout<<"Subtraction: "<<s<<endl;
goto again;
break;
case '*':
cout<<"Multiplication: "<<m<<endl;
goto again;
break;
case '/':
cout<<"Division: "<<d<<endl;
goto again;
break;
case '%':
cout<<"Modulus: "<<g<<endl;
goto again;
break;
default:
cout<<"Exit";
break;
}
return 0;
}Explanation:
Here, we define the required header files then, we set main function.
Answer:
C.system prototyping
Explanation:
Prototyping produces a quickly constructed working version of the proposed information system.
Planning
↓
Analysis
↓
Design
↓
System prototyping
↓
Implementation
Answer:
c. system prototyping
Explanation:
system prototyping produces a full-featured, working model of the information system.
Answer: Exception
Explanation: A throw statement is a statement that whenever it gets executed ,it stops the flow of the execution immediately. The throw statement has a throw keyword for stopping of the execution which is denoted as the exception. A checked or unchecked exception can only be thrown. The compiler of a program has the function of giving warning if there are chances of exception.
Answer:
Confidentiality of Information
Explanation:
Because when you work for a company that confidential information, the company usually asks it employees not to discuss or share information with anyone. The company usually asks their employees to sign a Confidentiality Contract.
Answer:
A structured chart is a sequential representation of program design
Explanation:
It is true that a real-time system which is a term to describe an operating system working in relation to real-time is actually a form of the online system. Hence, option B is not correct.
It is also true that Batch totals are not incorporated while designing real-time applications because Batch Data processing is carried out in a separate manner and at a time when the computer is free. Thus Option C is not Correct
It is also true that 4GL which stands for Forth generation programming language is used for application prototyping. Again Option D is not Correct.
However, a structured chart is not a sequential representation of program design, but rather a break down to the infinitesimal module in the program design. Hence, option A is the correct answer.