= is for assignment, == is for comparison.
So x=2 means: assign the value 2 to the variable x.
and
x==2 means: is variable x equal to 2, yes or no?
Answer:
1. Uncompressed audio formats
2. Formats with lossless compression
3. Formats with lossy compression
Explanation:
1. Uncompressed audio formats, such as WAV, AIFF, AU or raw header-less PCM;
2. Formats with lossless compression, such as FLAC, Monkey's Audio (filename extension .ape), WavPack (filename extension .wv), TTA, ATRAC Advanced Lossless, ALAC (filename extension .m4a), MPEG-4 SLS, MPEG-4 ALS, MPEG-4 DST, Windows Media Audio Lossless (WMA Lossless), and Shorten (SHN).
3. Formats with lossy compression, such as Opus, MP3, Vorbis, Musepack, AAC, ATRAC and Windows Media Audio Lossy (WMA lossy).
Answer:
Required code is given below.
Best Regards,
Please ask if any queries.
Explanation:
#include <stdio.h>
#include <string.h>
int main(void)
{
char input[100];
printf("Enter desired auto service:\n");
scanf ("%[^\n]%*c", input);
printf("You entered: %s\n",input);
if(strcmp(input,"Oil change") == 0){
printf("Cost of oil change: $35\n");
}
else if(strcmp(input,"Tire rotation") == 0){
printf("Cost of tire rotation: $19\n");
}
else if(strcmp(input,"Car wash") == 0){
printf("Cost of car wash: $7\n");
}
else{
printf("Error: Requested service is not recognized\n");
}
return 0;
}
Answer:
C. 40
Explanation:
The code uses IF and ELSE statements to carry execute a block of code if any of the statements hold true
OrderTotal here is greater than 100, and this allows the second IF ELSE block to be executed.
The code to be executed is discountAmount = OrderTotal * 0.2
This will be discountAmount = 200 *0.2
therefore, discountAmount = 40.
Answer: LAN(Local area network)
Explanation:
Local area network(LAN) is the network that is made to cover small amount for area for providing network and computer services.It can usually span in the areas such as a personal room, single building etc.
- It connects different peripheral devices like printer, switches, tabs etc with the computing system in small certain areas.
- According to the question, the individual should use LAN network for linking computer with the printer device.
- As the person has connected laptops, tablets,smartphones, network of printer etc within a network in single space, he is interacting these devices using local area network.