Hey!
I believe the answer to 1. Should be A. Rule of Thirds.
Answer:
C++.
Explanation:
<em>Code snippet.</em>
#include <map>
#include <iterator>
cin<<N;
cout<<endl;
/////////////////////////////////////////////////
map<string, string> contacts;
string name, number;
for (int i = 0; i < N; i++) {
cin<<name;
cin<<number;
cout<<endl;
contacts.insert(pair<string, string> (name, number));
}
/////////////////////////////////////////////////////////////////////
map<string, string>::iterator it = contacts.begin();
while (it != contacts.end()) {
name= it->first;
number = it->second;
cout<<word<<" : "<< count<<endl;
it++;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////
I have used a C++ data structure or collection called Maps for the solution to the question.
Maps is part of STL in C++. It stores key value pairs as an element. And is perfect for the task at hand.
Answer:
Following are the program in Python langauge
person_name = input() # Read the person name by the user
person_age=0 #declared a vaiable person_age
person_age = int(input()) # read person_age by the user
person_age=person_age+5 # add 5 to person_age
print('In 5 years',person_name,'will be',person_age) # display the output
Output:
Amy
4
In 5 years Amy will be 9
Explanation :
Following is the description of code:
- Read the value of the "person_name" variable by the user by using the input function.
- Declared a variable person_age and initialized 0 with them.
- Read the value of "person_age" variable by user by using input function and convert into int by using int function
- Add 5 to "person_age" variable and store again them into the "person_age" variable.
- Finally, display the output which is mention in the question.
Answer:g
public static int addOddMinusEven(int start, int end){
int odd =0;
int even = 0;
for(int i =start; i<end; i++){
if(i%2==0){
even = even+i;
}
else{
odd = odd+i;
}
}
return odd-even;
}
}
Explanation:
Using Java programming language:
- The method addOddMinusEven() is created to accept two parameters of ints start and end
- Using a for loop statement we iterate from start to end but not including end
- Using a modulos operator we check for even and odds
- The method then returns odd-even
- See below a complete method with a call to the method addOddMinusEven()
public class num13 {
public static void main(String[] args) {
int start = 2;
int stop = 10;
System.out.println(addOddMinusEven(start,stop));
}
public static int addOddMinusEven(int start, int end){
int odd =0;
int even = 0;
for(int i =start; i<end; i++){
if(i%2==0){
even = even+i;
}
else{
odd = odd+i;
}
}
return odd-even;
}
}
The way in which this client is benefiting from switching to a cloud-based enterprise platform is in terms of<em><u> efficiency.</u></em>
An enterprise platform is a base upon which companies can<u> build on the technology they have</u>. Some of the many benefits of this include:
- <em>Efficiency </em>
- Simplicity
- Expandability
and many more. A cloud-based enterprise platform allows a company to keep up to modern-day standards and stay competitive.
A cloud-based enterprise platform allows all of the users to access the data remotely, making work much more simple and removing the space limitations of on-site legacy systems, which allows the client to expand and hire new workers.
One of the ways in which this client is benefiting from switching to a <em>cloud-based enterprise platform</em> is in terms of efficiency. By removing the on-site model of work, this client will allow her workers to access the database and interchange information which other sectors all from a single server, <u>increasing efficiency greatly.</u>
To learn more visit:
brainly.com/question/24053883?referrer=searchResults