Hi pupil here's your answer ::
________________________
RAM ::
● Data can be read and written on the RAM chip at any number of times.
● The operating system, application programs and the user data is stored in Ram only until the computer is powered on.
● Ram is a volatile memory that loses its contents when the computer is switched off.
● The size of RAM makes a difference in the processing, i.e. the bigger size of the RAM the greater is the speed of processing.
ROM ::
● Data can only be read from the ROM chip.
● Only system programs are stored in ROM. It can't be used to store user data and other programs.
● ROM is non volatile memory the data stored in ROM is permanent in nature.
● Size of the ROM has nothing to do with processing.
________________________
hope this helps. . . .
Answer:
184
Explanation:
Given the codes
- int cost = 82;
-
- if (cost < 100)
- {
- cost = cost + 10;
- }
-
- if (cost > 50)
- {
- cost = cost * 2;
- }
-
- if (cost < 100)
- {
- cost = cost - 20;
- }
The initial value of cost is 82.
The if condition in Line 3 will pass and therefore cost = 82 + 10 = 92
The if condition in Line 8 will pass and therefore cost = 92 * 2 = 184
The if condition in Line 13 will fail l and therefore the if block will be skipped.
At last, the we get cost = 184.