Question: I'm having issues with C++ considering the way that this code doesn't work: int central() { int userNum; userNum = 5; cout < < Anticipating

I'm having issues with C++ considering the way that this code doesn't work:

int central() {

int userNum;

userNum = 5;

cout << "Anticipating is troublesome." << endl;

cout << "Particularly of what might be on the horizon." << endl;

cout << "Customer num is:" << userNum << endl;

/* Your answer goes here */

bring 0 back;

On the off chance that it's not all that much difficulty, direct me with this line of code.

Subject: Computer Organization I

1.

a) what number milliseconds (ms) are in 1 second?

b) what number microseconds (s) are in 1 second?

c) what number nanoseconds (ns) are in 1 millisecond?

d) what number microseconds are in 1 millisecond?

e) what number nanoseconds are in 1 microsecond?

f) what number kilobytes (KB) are in 1 gigabyte (GB)?

g) what number kilobytes are in 1 megabyte (MB)?

h) what number megabytes are in 1 gigabyte?

I) what number bytes are in 20 megabytes?

j) what number kilobytes are in 2 gigabytes?

2. Quickly explain two accomplishments all through the whole presence of enrolling.

3. In the von Neumann model, explain the inspiration driving the:

a) dealing with unit

b) program counter

- D- -

Consider a program that allows an expert in one city to help a methodology on a patient in another city through a web affiliation. Who should attack the program? What kind of underhandedness may they need to cause? What kind of shortcomings may they experience to cause hurt? Could those shortcomings moreover cause hurt without a working, harmful, attacker?

Make two cin clarifications to get input regards into birthMonth and birthYear. By then make a statement to yield the month, a scramble, and the year. End with newline.

The program will be attempted with inputs 1 2000, and thereafter with inputs 5 1950. Ex: If the data is 1 2000, the yield is:

1-2000

Note: The data regards come from customer input, so make sure to use cin verbalizations, as in cin >> birthMonth, to get those information regards (and don't select qualities directly as in birthMonth = 1).

What is the yield of the going with segment of code if the value 4 is commitment by the customer?

int num;

int complete = 0;

cout << "Enter a number from 1 to 10: ";

cin >> num;

switch (num)

{

case 1:

case 2: full scale = 5;

case 3: full scale = 10;

case 4: full scale = hard and fast + 3;

case 8: full scale = complete + 6;

default: full scale = complete + 4;

}

cout << full scale << endl;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!