Answer:
115200000 bits
Explanation:
Given Data:
Total Time = 3 minute = 3 x 60 sec = 180 sec
Sampling rate = 40,000 bits / sample
Each sample contain bits = 16 bits /sample
Total bits of song = ?
Solution
Total bits of song = Total Time x Sampling rate x Each sample contain bits
= 180 sec x 40,000 bits / sec x 16 bits /sample
= 115200000 bits
= 115200000/8 bits
= 14400000 bytes
= 144 MB
There are total samples in one second are 40000. Total time of the song is 180 seconds and one sample contains 16 bits. so the total bits in the song are 144 MB.
Runs out of memory
has uninitialized variables
uses undefined behaviour
A you are out of date
B re-install the application and reboot your computer
Answer:
#include <iostream>
using namespace std;
void filterEvens(int myArray[]) {
for (int i = 0; i < 8; ++i) {
if(myArray[i]%2==0){
cout<<myArray[i]<<" ";
}
}
}
int main(){
int myArray[8];
for(int i =0;i<8;i++){
cin>>myArray[i];
}
filterEvens(myArray);
return 0;
}
Explanation:
The solution is provided in C++
#include <iostream>
using namespace std;
The function filerEvens is defined here
void filterEvens(int myArray[]) {
This iterates through the elements of the array
for (int i = 0; i < 8; ++i) {
This checks if current element is an even number
if(myArray[i]%2==0){
If yes, this prints the array element
cout<<myArray[i]<<" ";
}
}
}
The main begins here
int main(){
This declares an integer array of 8 elements
int myArray[8];
The following iteration allows input into the array
<em> for(int i =0;i<8;i++){</em>
<em> cin>>myArray[i];</em>
<em> }</em>
This calls the defined function filter Evens
filterEvens(myArray);
return 0;
}
Hello <span>Charlesreid9517
</span><span>
Answer: Files containing graphics are available from a variety of sources
Hope This Helps
-Chris</span>