Answer:
All the mention codes are correct.
Explanation:
In the task1, a "name" variable is declared, that store a string, and in the next step, the built-in method "title, lower and upper" is defined, in which the title method capitalized the first character of the given word in each sentence, upper method change each character into upper case and the lower method changes each character into lower case.
In task2, a message variable is declared, that holds a string value in which the count method is used that counts the space character value.
In task3, a string value is used in the message variable, which uses a replace method to change the given string value.
In task3, a response variable is declared that uses an input method for input a string value, and inside the print method, len method is used that counts each input character number.
Answer:
Following are the program in c++ language
#include <iostream> // header file
using namespace std;// namespace
int main() // main function
{
int num; // variable declaration
long int f=1; // variable declaration
do
{
cout<<"Enter the Positive value:";
cin>>num;
} while(num<0); // i check whether number is non negative or not
while(num>0) // iterating over the loop
{
f=f*num; // calculate the factorial
num--; // decrement the value of num by 1
}
cout<<" factorial is :"<<f; // display the factorial .
return 0;
}
Output:
Enter the Positive value:7
factorial is :5040
Explanation:
Following are the description of the program .
- Read the input by user in the "num" variable of "int" type..
- The do-while will check the enter number is nonnegative number.
- While(n>0) loop is calculating the factorial in the "f" variable .
- Finally display the factorial .
Answer: Google doesn't have the answer.
Explanation:
I tried
Firewalls are connected with a network device which blocks untrusted network forming a barrier in between trusted and un-trusted network.
Answer:
A block diagram is a diagram of a system in which the principal parts or functions are represented by blocks connected by lines that show the relationships of the blocks. They are heavily used in engineering in hardware design, electronic design, software design, and process flow diagrams.
Explanation:
In your question you asked architure but maybe it is architecture (•;