<u>Answer:</u>
I am writing <em>partial code in</em> <em>c++ to calculate weighted average</em>. The weighted average should be calculated based on multiplying the test score and its <em>respective weight and finally add all the test score.</em>
<u>Explanation:</u>
<em>int arrtestscore[100];</em>
<em>int arrweight[100];</em>
<em>int n;</em>
<em>double weightedavg;</em>
<em>cout<<”Enter the number of test score for which weighted average needs to be calculated”;</em>
<em>cin>>n;</em>
<em>for(int x = 0; x <n;x++)</em>
<em>{</em>
<em> cout<<”Enter test score :” + (x+1) ;</em>
<em> cin>>arrtestscore[x];</em>
<em> count<<”Enter the respective weight:”;</em>
<em> cin>>arrweight[x];</em>
<em>}</em>
<em>for (int i=0; i<n;i++)</em>
<em>{</em>
<em> weightedavg = weightedavg + (arrtestscore[i] * arrweight[i])</em>
<em>}</em>
<em>cout<<”weighted average = “ <<weightedavg; </em>
Answer: as a whale attack
Explanation:
A whale attack is simply refered to as an attack that is utilized by cybercriminals and in this case, a senior player such as the CEO is targeted in the company and the aim is to steal sensitive information from them or steal money or gain access to their computer for fraudulent purposes.
Based on the explanation above, the attack called into is a whale attack.
Answer:
Micro controller or MCU (Microcontroller Unit)
Explanation:
Micro Controller Unit is basically a computer on a chip with all components fabricated onto it. It is the core component of a computer.
A Micro Controller has:
- Central Processing Unit CPU
- Random access memory RAM
- Read-only memory ROM
- I/O peripherals
- Timers
- Serial COM ports
all fabricated on a single chip so that it may be connected via buses for providing the desired functionality.
<h3>I hope it will help you!</h3>