Answer:
Difference between laptops and desktop computer are:
- Desktop computers contain wide variety of components, but laptops are realtively expensive than desktop computers because laptop has high speed and better graphics designs which increased the cost of whole system.
- Desktop computer processors are larger in size and it is more efficient and powerful as compared to laptops because laptop processor still has some limitations.
- Laptop uses less power as compared to desktop computer because laptop contain small components and that is why it needs less power.
- Desktop computers are easy to upgrade and in laptops hard drive and memory, these two components needs to be upgraded.
An array of integers named parkingTickets has been declared and initialized to the number of parking tickets given out by the city police each day since the beginning of the current year.
Explanation:
- A variable named ndays has been declared and initialized to hold the size of the array.
- The first element of the array contains the number of tickets given on January 1; the last element contains the number of tickets given today.
- A variable named mostTickets has been declared, along with a variable k.
- If today were January 18, ndays would have the value 18; if today were February 3, ndays would have the value 34
mostTickets=0;
for (k=0; k< ndays; k++)
{
if (parkingTickets[k]>mostTickets) mostTickets=parkingTickets[k];
}
Answer:
Garbage in, garbage out
Explanation:
In computer science, garbage in, garbage out is the concept that flawed, or nonsense input data produces nonsense output or garbage
<span>getchar() only reads a single character input from any input stream.
getche() </span><span>reads a single character from the keyboard and displays immediately on output screen without waiting for enter key
scanf() reads the whole input line according to the data type you specified.</span>