Collectively, skills like the ones listed above are Technical skills. These skills refer to the Knowledge and ability to perform specific tasks. However, Soft skills are also important, because they relate to the ability to interact and communicate effectively with people.
Answer:
The program written in C++ is as follows'
#include<iostream>
using namespace std;
int main()
{
string names[3];
cout<<"Please enter three names: "<<endl;
for (int i = 0; i< 3;i++)
{
cin>>names[i];
}
for (int i = 2; i>= 0;i--)
{
cout<<names[i]<<endl;
}
return 0;
}
Explanation:
This line declares an array for 3 elements
string names[3];
This line prompts user for three names
cout<<"Please enter three names: "<<endl;
This following iteration lets user input the three names
for (int i = 0; i< 3;i++) { cin>>names[i]; }
The following iteration prints the three names in reverse order
for (int i = 2; i>= 0;i--) { cout<<names[i]<<endl; }
Answer:
The program to this question can be given as follows:
Program:
#defining variable quarters, dimes, and nickels.
quarters=int(input("Enter value of quarters: ")) #input value by user dimes=int(input("Enter value of dimes: ")) #input value by user nickels=int(input("Enter value of nickels: ")) #input value by user
#defining variable pennies
pennies = ((25*quarters)+(10*dimes)+(5*nickels))
#calculate value in pennies variable
print('Total number of coins in pennies is: ',pennies)#print value
Output:
Enter value of quarters: 3
Enter value of dimes: 2
Enter value of nickels: 1
Total number of coins in pennies is: 100
Explanation:
In the above python program code, firstly three variable "quarters, dimes, and nickels", all of these variable uses input function, that is used to take input value from the user side, in these variable, an int is used that defined, that user input only integer value.
- After taking input from the user a new variable "pennies" is defined, which is uses the user input values and calculates its addition.
- In the next line, print function is used, which uses variable "pennies" to print its calculated value.