GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

When possible, you should avoid using constants in a program…

When possible, you should avoid using constants in a program. 

Read Details

Write out the exact screen output for each program segment….

Write out the exact screen output for each program segment. If provided with multiple spaces, each space stands for a line and in sequence. The second space stands for the 2nd line on the output screen. Fill in the output in the spaces accordingly.  If there is no output on that line, you must type in “No output” in the spaces provided. Leaving the space blank will be considered as “The student did not answer this question.” will result in a 0 to that question.  If the segment does not generate any output, type in “No output” in all the spaces provided. 

Read Details

Use the previous two problems and Venn Diagram you created,…

Use the previous two problems and Venn Diagram you created, find how many people plan to visit exactly two places.

Read Details

routes.py @application.route(‘/plotly_example’, methods=(‘GE…

routes.py @application.route(‘/plotly_example’, methods=(‘GET’, ‘POST’))@login_requireddef plotly_example(): locations = classes.Location.query.all() output = plotly_map(locations) return render_template(‘plotly_map.html’, source=output) def plotly_map(locations): data = [ Scattermapbox( lat=[location.latitude for location in locations], lon=[location.longitude for location in locations], text=[location.name for location in locations], mode=’markers’, )] layout = Layout( autosize=True, hovermode=’closest’, mapbox=dict( accesstoken=mapbox_access_token, bearing=0, center=dict( lat=mean([location.latitude for location in locations]), lon=mean([location.longitude for location in locations]) ), pitch=100, zoom=10 ), ) fig = dict(data=data, layout=layout) output = plotly.offline.plot(fig, include_plotlyjs=False, output_type=’div’) return(output) plotly_map.html {% block content %} {{ source|(1) }} {% endblock %} Which filter should be used for (1) to render the json output on plotly_map.html?

Read Details

Assuming age is an Integer, change the expression    NOT (ag…

Assuming age is an Integer, change the expression    NOT (age < 5)to an equivalent positive logic expression.[l1]

Read Details

Note: This an extra-points question. Given the following pro…

Note: This an extra-points question. Given the following program: Specify exactly what is output in the blanks below, one line in each blank. If nothing will appear on a line, type No ouput in that blank. (Note: This question is worth 5 extra credit points.)[l1] [l2] [l3] [l4] [l5] [l6] [l7] [l8] [l9] [l10]

Read Details

The control structure in which one step follows another, spe…

The control structure in which one step follows another, specifying the order in which the computer will execute the steps, is called the  [l1_1]  control structure. The control structure that allows for branching (choosing between multiple alternative paths) is called the  [l1_2]  control structure. The control structure that allows for a section of code to run multiple times is called the [l1_3] control structure.

Read Details

Given the following program segment: Specify exactly what i…

Given the following program segment: Specify exactly what is output in the blanks below, one line in each blank. If nothing will appear on a line, type No output in that blank.[l1] [l2] [l3]

Read Details

‘A’ and ‘B’ each stand for a boolean expression or value. ‘1…

‘A’ and ‘B’ each stand for a boolean expression or value. ‘1’ stands for true; ‘0’ stands for false. Fill in the missing values of the AND truth table below, use either ‘1’ or ‘0’:  A B AND 0 0 [B1] 0 1 [B2] 1 0 [B3] 1 1 [B4]   Fill in the missing values of the OR truth table below, use either ‘1’ or ‘0’:  A B OR 0 0 [B5] 0 1 [B6] 1 0 [B7] 1 1 [B8]

Read Details

Given the following program segments. What data type does fu…

Given the following program segments. What data type does function getCalories() return? [B1]Fill in the blanks to make the program work correctly. Function void main()     Declare Real foodCalories = 0     Set [B3] = getCalories()  //type the missing item here     Display “The food calories is: “, foodCaloriesEnd Function Function Real getCalories()     Declare Real calories = 0     Display “How many calories are in the food?”     Input calories     [B2] calories //type the missing statement hereEnd Function  

Read Details

Posts pagination

Newer posts 1 … 55,783 55,784 55,785 55,786 55,787 … 73,089 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top