The arithmetic operator % is the C++ symbol for the ____ operation.

A. addition
B. percentage
C. modulus
D. division


Answer: C

Computer Science & Information Technology

You might also like to view...

Which is the correct way to declare a pointer to a variable x ( x is a float)?

A. float *x_ptr B. float* x_ptr C. float * x_ptr D. all are correct.

Computer Science & Information Technology

A clothing manufacturer has asked you to create an application that will calculate the total sales of that manufacturer in a week. Sales values should be input separately for each clothing item, but the amount of sales for all five week- days should be input at once. The application should calculate the total amount of sales for each item in the week and also calculate the total sales for the manufacturer for all the items in the week. Because the manufacturer is a small company, it will produce at most ten items in any week. The application is shown in Fig. 17.32.


a) Copying the template to your working directory. Copy the C:ExamplesTutorial17ExercisesSalesReport directory to your C:SimplyJava directory.
b) Opening the template file. Open the SalesReport.java file in your text editor.
c) Inputting data from the user. Add code starting in line 231 to input the data from the user. Variable nameOfItem stores the name of the item. This must be assigned to the itemNames array, indexed with itemCount (which stores the number of items added). Variables monday, tuesday, wednesday, thursday and friday store the sales data for each of the five weekdays. These variables must be assigned to the two-dimensional dailyItems array. The first index to this array should be itemCount, and the second will range from 0 to 4. Finally, increment variable itemCount to record that another item’s sales data has been added.
d) Iterating over all the items added. Inside method displaySales, after variable sal- esTotal has been declared (line 270), add code to begin

Computer Science & Information Technology

Which tab is used to change the number of columns?

A) View B) Preview C) Layout D) Home

Computer Science & Information Technology

When do compositing nodes have their effects?

A. Before the render B. After the render C. During the render D. When you load the scene

Computer Science & Information Technology