Question

You must manually create a data table as shown in Table 2 into worksheet "Prob2". You should format the cells manually (i.e., not via code) in Excel. The upper left corner of Table 2 (i.e., the label "Container Type") should be entered in cell B2. Note that the worksheet “Prob2” does not display gridlines.

Table 2. Data for Problem 2.

Material Mass, g Container Type PET 400mL bottle PE 1 liter milk bottle Glass 750 mL bottle Al 440 mL can Steel 440 mL can PET High-density PE Soda glass 5000 series Al alloy Plain carbon steel 25 38 325 20 45 Embodied Energy, MJ/kg 84.0 81.0 15.5 208.0 32.0 Energy/Liter, MJ/L 5.3 3.8 6.7 9.5 3.3 4 6

SOLUTION REQUIREMENTS

Write a sub procedure named Sort_by_Embodied that will:

Use the End property of the Range object to copy and paste the data in Table 2 one row at a time. The upper left corner of the copied data (i.e., the label "Container Type") should be pasted in cell B10.

Sort the data in the copy of Table 2 numerically in ascending order based on the values shown in the column labeled “Embodied Energy” (use the Sort method of the Range object).

Use the Rows property of the Range object to give every other row in the sorted copy of Table 2 its own background color. You are at liberty to pick the color.

Ensure that no revolving border remains after executing any copy-pasting operations.

Ensure that no flickering occurs when you run your sub procedure.

End the sub procedure by selecting cell A1.

Assign the sub procedure Sort_by_Embodied to a rectangular shape button. The caption of the rectangular shape button should read “Sort by Embodied Energy”. The rectangular shape button should be visually appealing and its upper left corner should be aligned with the upper left corner of cell H2.

Write a sub procedure named Clear_Table that will clear the range B10:F15.

Assign the sub procedure Clear_Table to a rectangular shape button. The caption of the rectangular shape button should read “Clear”. The rectangular shape button should be visually appealing and its upper left corner should be aligned with the upper left corner of cell K5.

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

1. Writing Good Programs The only way to learn programming is program, program and program. Learning programming is like learuppercase. Use nouns for variables (e.g., radius) and class names (e.g., Circle). Use verbs for methods (eg. getArea(), ¡s ESystem.out.println System.out.println( Take note of the source-code indentation!! Whenever you open a block withndent all theHints: * Trying nested-if and switch-case statenents public class PrintNumberInword Save as PrintlumberIndord.java public s2.2 Exercises on Loop (Iteration) Exercise SumAndAverage (Loop): Write a program called SumAndAverage to produce the sum of 12. Modify the program to use a do-while loop. int number lowerbound int sum 8; do sum + nurber; ) while (number upperbound)

Add a comment
Know the answer?
Add Answer to:
You must manually create a data table as shown in Table 2 into worksheet "Prob2". You...
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
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