Answer:
A. To isolate errors in the outcomes of code.
<em>Hope this helps! ^-^</em>
<em>-Isa</em>
Answer:
i really dont know but i think it is b to reinforce your interest in the position and thank your interviewer
Explanation:
Answer/Explanation:
In this scenario, you can:
- look at the existing CloudWatch logs for keywords related to the application error to create a custom metric;
- create a CloudWatch alarm for that custom metric which invokes an action to restart the EC2 instance;
- create alarms that automatically stop, terminate, reboot, or recover your EC2 instances using Amazon CloudWatch alarm actions;
- use the stop or terminate actions to help you save money when you no longer need an instance to be running; and
- use the reboot and recover actions to automatically reboot those instances or recover them onto new hardware if a system impairment occurs.
Cheers
Answer:
The solution code is written in Java.
- public class Main {
- public static void main(String[] args) {
- System.out.print("Please enter a number: ");
- Scanner console = new Scanner(System.in);
- int n = console.nextInt();
- calculateSum1(n);
- calculateSum2(n);
- calculateSum3(n);
- calculateSum4(n);
- }
- public static void calculateSum1 (int num){
- int sum1 = 0;
- for(int i=1; i <= num; i++){
- sum1 += i*i*i;
- }
- System.out.println("Sum 1 : " + sum1);
- }
- public static void calculateSum2 (int num){
- int sum2 = num * num * (num + 1) * (num + 1) / 4;
- System.out.println("Sum 2 : " + sum2);
- }
- public static void calculateSum3 (int num){
- int sum3 = 0;
- for(int i=1; i <=num; i++){
- sum3 += i;
- }
- sum3 = sum3 * sum3;
- System.out.println("Sum 3 : " + sum3);
- }
- public static void calculateSum4 (int num){
- int sum4 = (num * (num + 1) * (2*num + 1)) / (4+2);
- System.out.println("Sum 4 : " + sum4);
- }
- }
Explanation:
Firstly we create four different methods that calculate the sum of the first n cubes in different ways (Line 13 - 43).
This is important to understand the concept of operator precedence to work out the different ways of summation.
For example, The operator * and / will always have higher precedence than +.
On another hand, any expression enclosed within the parenthesis will have highest precedence and therefore the value will be evaluated prior to others.
This is also important to understand the expression evaluation will always start from left to right.
Accenture is a company that was established with the aim of handling electronic waste. They were very much concern about how electronic waste is being disposed and as such they try to create ways to handle it. The e-stewards program was set up with the sole aim of management of electronic waste. its objectives includes;
- Make strategic and better world through well managed recycling solution to all electronic waste (e-waste) issues.
- The program also focus on making sure that electronic waste are been handled properly and they are not dumping of electronic waste in poor countries
- The objective also centers around no export of harmful electronic wastes.
- They also capitalizes on reuse and resale
- They are not only interested in stopping e-waste but to channeled it to repair, republish and re-manufacture
For better understanding, lets explain what E-waste means
- E-Steward objective is centered on managing and handling of electronic waste. It was a project that was birth out of rising concern about electronic waste, especially due to rising concerns that electronic waste generated by rich countries was being shipped off to poor countries.
- Accenture e-steward make sure that electronic waste are well disposed, no more shipping of electronic waste to poor countries and also recycling of electronic waste product.
- E-waste in the above simply means non functional or disposed electronic equipment such as computers, cell phones, television sets, etc.
From the above, we can therefore say that the e-stewards program is concerns about how electronic waste generated by rich countries was being shipped off to poor countries and also the recycling of electronic waste product such as television, computers etc.
Learn more about E-waste from:
brainly.com/question/15391967