The correct answer is..A?
Answer:
C
data converted from double to integer.
Answer:
Matlab code is:
>> 
>> 
>> 
>> 
>> 
>>
>> ![Vc=[M(2,:) M(:,3)']](https://tex.z-dn.net/?f=Vc%3D%5BM%282%2C%3A%29%20M%28%3A%2C3%29%27%5D)
Explanation:
>>
>> 

1 7 13 19 25
3 9 15 21 27
5 11 17 23 29
>> 
>>
>> 

>> 
>>
>> 

>>
>>
>> ![Vc=[M(2,:) M(:,3)']](https://tex.z-dn.net/?f=Vc%3D%5BM%282%2C%3A%29%20M%28%3A%2C3%29%27%5D)

>>
The code is tested and is correct. If you put a semi colon ' ; ' at the end of every statement then your answer will be calculated but matlab doesn't show it until you ask i.e. typing the variable (Va, Vb, Vc )and press enter.
Answer:
#include <stdio.h>
void interchangeCase(char phrase[],char c){
for(int i=0;phrase[i]!='\0';i++){
if(phrase[i]==c){
if(phrase[i]>='A' && phrase[i]<='Z')
phrase[i]+=32;
else
phrase[i]-=32;
}
}
}
int main(){
char c1[]="Eevee";
interchangeCase(c1,'e');
printf("%s\n",c1);
char c2[]="Eevee";
interchangeCase(c2,'E');
printf("%s\n",c2);
}
Explanation:
- Create a function called interchangeCase that takes the phrase and c as parameters.
- Run a for loop that runs until the end of phrase and check whether the selected character is found or not using an if statement.
- If the character is upper-case alphabet, change it to lower-case alphabet and otherwise do the vice versa.
- Inside the main function, test the program and display the results.
Answer: my test says line graph soooo….
Explanation: if its what the test says