What is wrong with this code?

```
float CalcCost( int unit )
{
float cost;
cost = 5.59 * unit;
return cost;
}

```

A. The function name is invalid.
B. The return type should be int.
C. You can’t have math statements inside a function.
D. Nothing is wrong with it.


D. Nothing is wrong with it.

Computer Science & Information Technology

You might also like to view...

When considering the abstract data type description for the linked list, we need to think of it as an abstract data type for a list (not necessarily linked) because:

A. in some programming languages (existent or future), it may be possible to make a list, but not a linked list B. in some programming languages (existent or future), there may be a variety of ways of making a list, including linked lists C. we could use an array for a list D. All of the above

Computer Science & Information Technology

You can use the Windows 10 Sports app to view football sports news

Indicate whether the statement is true or false

Computer Science & Information Technology

________ is another name for the security key you need to access a system when using EnCase

Fill in the blank(s) with correct word

Computer Science & Information Technology

Incident response is part of the ________ class of security controls.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology