.
Answers are in explanation part.
Step-by-step explanation:
Law of Cosines for side c:
a) c = 3.561
b) c = 4.136
c) c = 3.09
d) c = 12.5
e) c = 1.978
f) c = 9.173
g) c = 5.196
Law of Cosines for angle C:
h) C = 82.819°
i) C = 60°
j) C = 21.787°
k) C = 68.676°
l) Sides (8, 5, 1) cannot form a triangle. It is impossible.
m) C = 118.454°
see attached
Explanation:
Two methods are shown in attached notes... Method I is based upon Experimental Rate Trends; Method II is the 'Ratio Method'.
Solution :
#include
//Converts to binary string.
* hexadecimalBinary(char* hexdec)
{
long = 0;
char *string = (sizeof(char) * 9);
while (hexdec[i]) {
//Simply assign binary string for each hex char.
switch (hexdec[i]) {
strcat(string, "0000");
break;
strcat(string, "0001");
strcat(string, "0010");
strcat(string, "0011");
strcat(string, "0100");
strcat(string, "0101");
strcat(string, "0110");
strcat(string, "0111");
strcat(string, "1000");
strcat(string, "1001");
case 'A':
case 'a':
strcat(string, "1010");
case 'B':
case 'b':
strcat(string, "1011");
case 'C':
case 'c':
strcat(string, "1100");
case 'D':
case 'd':
strcat(string, "1101");
case 'E':
case 'e':
strcat(string, "1110");
case 'F':
case 'f':
strcat(string, "1111");
default:
printf("\nInvalid hexadecimal digit %c",
hexdec[i]);
string="-1" ;
}
i++;
return string;
int main()
{ //Take 2 strings
char *str1 =hexadecimalToBinary("FA") ;
char *str2 =hexadecimalToBinary("12") ;
//Input 2 numbers p and n.
int p,n;
scanf("%d",&p);
scanf("%d",&n);
//keep j as length of str2
int j=strlen(str2),i;
//Now replace n digits after p of str1
for(i=0;i<n;i++){
str1[p+i]=str2[j-1-i];
//Now, i have used c library strtol
long ans = strtol(str1, NULL, 2);
//print result.
printf("%lx",ans);
return 0;
Cost of 7 gallons=$24.50
Cost of 1 gallon=24.50/7=3.5
Cost of 15 gallons=15*3.5=52.5
Cost of 15 gallons will be $52.5
The answer is in the image
It will provide an instant answer!