Question

int kilobyte, megabyte, gigabyte, units; kilobyte = 8; megabyte = 8; gigabyte = 2; units =...

int kilobyte, megabyte, gigabyte, units; kilobyte = 8; megabyte = 8; gigabyte = 2; units = kilobyte + gigabyte; megabyte = 8; gigabyte= 7;

find values of gigbytes, megabytes, kilobyte, units

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution

gigabyte=7
megabyte=8
kilobyte=8
units=10


Explanation

initially

kilobyte = 8;

megabyte = 8;

gigabyte = 2;

after the statement

units = kilobyte + gigabyte;

executed

units=8+2

units =10

after executing statements

megabyte = 8; gigabyte= 7;

megabyte value will be 8 and value of gigabyte will be changed to 7

so final output will be

gigabyte=7
megabyte=8
kilobyte=8
units=10

--

for better understanding i have created program

1 #include<iostream> 2 using namespace std; 3 int main() 4- int kilobyte, megabyte, gigabyte, units; kilobyte = 8; megabyte =

--

all the best

please upvote

Add a comment
Know the answer?
Add Answer to:
int kilobyte, megabyte, gigabyte, units; kilobyte = 8; megabyte = 8; gigabyte = 2; units =...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • What is arithmetic overflow? When does it occur and how can it be detected? Explain with...

    What is arithmetic overflow? When does it occur and how can it be detected? Explain with an example. – 15 pts Fill in the blanks by doing necessary conversions (MB= megabyte, Mb = Megabit, KB= Kilobyte, TB = Terabyte, Tb = Terabit, GB = Gigabyte). Show step by step computations for each – 25 pts 10        MB      = ________ KB 1000    MB      = ________ Mb 1000    Mb       = ________ KB 1          Tb        =...

  • Pete’s Electronics is a small company that produces 8 gigabyte flash drives in a perfectly competitive...

    Pete’s Electronics is a small company that produces 8 gigabyte flash drives in a perfectly competitive market. The market price for 8 gigabyte flash drives is $10 each.   Complete the table below with the total revenue (TR), marginal revenue (MR), and average revenue (AR) for Pete’s Electronics. Instructions: Enter your answers as a whole number. Pete's Electronics Flash Drive Production Revenues Quantity (8GB flash drives) TR (dollars) MR (dollars) AR (dollars) 10 $ $ $ 25 40 55 70 85

  • finite mathematics an applied approach 11th edition, Sullivan, Chp 2, project page 101. // Should be in the book souliti...

    finite mathematics an applied approach 11th edition, Sullivan, Chp 2, project page 101. // Should be in the book soulitions but can't find it. 1. You decide to compare the basic charges for two cell phone plans that include texting and Web access. Here are the monthly costs for two plans.* Plan A includes a flat rate of $39.99 for 450 anytime minutes plus $.02 for each text message (sent or received) and $1.99 per megabyte of data usage (50...

  • Gigabyte, Inc. manufactures three products for the computer industry: Gismos (product G): annual sales, 8,000 units...

    Gigabyte, Inc. manufactures three products for the computer industry: Gismos (product G): annual sales, 8,000 units Thingamajigs (product T ): annual sales, 15,000 units Whatchamacallits (product W ): annual sales, 4,000 units The company uses a traditional, volume-based product-costing system with manufacturing overhead applied on the basis of direct-labor dollars. The product costs have been computed as follows: Product G Product T Product W Raw material $ 35.00 $ 52.50 $ 17.50 Direct labor 16.00 (.8 hr. at $20) 12.00...

  • Gigabyte, Inc. manufactures three products for the computer industry: Gismos (product G): annual sales, 8,000 units...

    Gigabyte, Inc. manufactures three products for the computer industry: Gismos (product G): annual sales, 8,000 units Thingamajigs (product T ): annual sales, 15,000 units Whatchamacallits (product W ): annual sales, 4,000 units The company uses a traditional, volume-based product-costing system with manufacturing overhead applied on the basis of direct-labor dollars. The product costs have been computed as follows: Product G Product T Product W Raw material $ 35.00 $ 52.50 $ 17.50 Direct labor 16.00 (.8 hr. at $20) 12.00...

  • File_Size_(MB) Transfer_Time_(sec) 48 17.3 59 30.3 81 27.8 74 24.3 22 8.3 21 12.9 31 16.4...

    File_Size_(MB) Transfer_Time_(sec) 48 17.3 59 30.3 81 27.8 74 24.3 22 8.3 21 12.9 31 16.4 49 18.6 99 32.5 22 19.6 51 29.2 99 31.6 68 26.7 69 23.6 98 44.6 32 23.8 87 35.1 81 29.6 29 14.6 97 32.9 Before taking the plunge into videoconferencing, a company ran tests of its current internal computer network. The goal of the tests was to measure how rapidly data moved through the network given the current demand on the network....

  • Gigabyte, Inc. manufactures three products for the computer industry: Gismos (product G): annual sales, 8,000 units...

    Gigabyte, Inc. manufactures three products for the computer industry: Gismos (product G): annual sales, 8,000 units Thingamajigs (product T): annual sales, 15,000 units Whatchamacallits (product W): annual sales, 4,000 units The company uses a traditional, volume-based product-costing system with manufacturing overhead applied on the basis of direct- labor dollars. The product costs have been computed as follows: Raw material Direct labor Manufacturing overhead* Total product cost Product G $ 35.00 16.00 (.8 hr. at $20) 140.00 $191.00 Product T $...

  • howthe   output   of   the   following   4   program segments (a)    const int SIZE=8;    int values[SIZE]...

    howthe   output   of   the   following   4   program segments (a)    const int SIZE=8;    int values[SIZE] = {10, 10, 14, 16, 6, 25, 5, 8};    int index;    index=0;    res = values[index];    for (int j=1; j<SIZE; j++)    {        if (values[j] > res)        {            res = values[j];            index = j;        cout << index << res << endl;        }    }    cout <<...

  • Consider the following code segment. int[]arr={1, 2, 3, 4, 5, 6, 7, 8}; for(int k=3; k<arr.length-1;...

    Consider the following code segment. int[]arr={1, 2, 3, 4, 5, 6, 7, 8}; for(int k=3; k<arr.length-1; R++ arr[k]-arr[k+1]; What are the contents of arr as a result of executing the code segment? a. {1, 2, 3, 5, 6, 7, 8, 8) b. {2, 2, 4, 5, 6, 7, 8, 8} C. {2, 4, 6, 5, 6, 7, 8,8} d. {4, 2, 4, 4, 6, 7, 8, 8) e. {6, 6, 4, 5, 6, 7, 8, 8} int) arr={7, 2.5, 3.0,...

  • Given the binary search function, answer following question: int binarySearch(int a[], int size, int target, int...

    Given the binary search function, answer following question: int binarySearch(int a[], int size, int target, int low, int high) { while (low <= high) { int mid = (low + high) / 2; if (a[mid] == target) return mid; else if (a[mid] < target) low = mid + 1; else high = mid 1: } return -1; } 1) If array a[] = {4, 5, 18, 25, 66, 70, 78}, size = 7, target = 71, low = 0, high...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT