1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
olganol [36]
3 years ago
11

9.4 Code Practice

Computers and Technology
1 answer:
stepladder [879]3 years ago
6 0

I've included my code in the picture below. Best of luck.

You might be interested in
. Many contemporary languages allow two kinds of comments: one in
larisa [96]
Shabaka. Ajswvansja nakash a slaps alpaca sma sharkskin a jab .
7 0
2 years ago
which type of webpages will automatically adjust the size of the content to display appropriately relative to the size of the sc
Studentka2010 [4]

Answer:

Responsive.

Explanation:

HTML is an acronym for hypertext markup language and it is a standard programming language which is used for designing, developing and creating web pages.

Generally, all HTML documents are divided into two (2) main parts; body and head. The head contains information such as version of HTML, title of a page, metadata, link to custom favicons and CSS etc. The body of the HTML document contains the contents or informations of a web page to be displayed.

The responsiveness of a webpage is an ability of the design to respond to the end user's digital device and screen size.

In Computer programming, a responsive web design makes it possible for various websites to change layouts in accordance with the user's digital device and screen size.

This ultimately implies that, a responsive design is a strategic approach which enables websites to display or render properly with respect to the digital device and screen size of the user.

Hence, responsive webpages will automatically adjust the size of the content to display appropriately relative to the size of the screen of the device on which it is displayed.

3 0
3 years ago
Consider the following code segment. The code is intended to read nonnegative numbers and compute their product until a negative
leonid [27]

Answer:

Option D The negative number entered to signal no more input is included in the product

Explanation:

Given the code as follows:

  1.        int k = 0;
  2.        int prod = 1;
  3.        while (k>=0)
  4.        {
  5.            System.out.println("Enter a number: ");
  6.            k= readInt( );
  7.            prod = prod*k;
  8.        }
  9.        System.out.println("product: "+prod);

The line 7 is a logical error. Based on the while condition in Line 3, the loop shall be terminated if k smaller than zero (negative value). So negative value is a sentinel value of this while loop. However, if user enter the negative number to k, the sentinel value itself will be multiplied with prod in next line (Line 7) which result inaccurate prod value.

The correct code should be

  1.        int k = 0;
  2.        int prod = 1;
  3.        while (k>=0)
  4.        {
  5.            prod = prod*k;
  6.            System.out.println("Enter a number: ");
  7.            k= readInt( );
  8.        }
  9.        System.out.println("product: "+prod);
5 0
3 years ago
Researchers today can use technology such as CAT scans and fMRI scans to measure brain activity. Some researchers ask their subj
Lerok [7]

Answer:

Introspection , Titchener

Explanation:

7 0
3 years ago
What are 5 ways we can reduce our energy?
Burka [1]
1. Wear the right clothes

Dress for the temperature. Layering clothes and wearing wool helps keep you warm in winter, and means you can turn your heater down.

2. Shut doors and close curtains

Heating or cooling the whole house can be expensive. Where possible, shut doors to areas you are not using and only heat or cool the rooms you spend the most time in.

Make sure your curtains or blinds seal your windows properly, and keep your curtains closed at night, and during the day when there is a heat-wave. Block draughts around doors and windows to stop air leaking out, or in.

3. Set your thermostat

In winter heating can account for over 30% of your bill. Set your thermostat between 18 and 20 degrees. Every degree above 20 can add 10% to your heating bill. In summer, set your thermostat to 26 degrees or above.

4. Turn heaters and coolers off when you don't need them

Turn off when you leave the room, or go to bed. With some ducted heating systems you can turn off the heating in the rooms that are unoccupied. Make sure all your heating or cooling is turned off when you leave the house.

5. Wash clothes using cold water

You can save around $115 per year by washing clothes in cold water. You can also save by making sure you select the shortest appropriate washing cycle and waiting until you have a full load.

the others

6. Run your fridge efficiently

Your fridge is always on, making it one of your most expensive appliances. Make sure the door seal is tight and free from gaps so cold air can't escape. An ideal fridge temperature is 4 or 5 degrees and an ideal freezer temperature is minus 15 to minus 18 degrees Celsius. If you have a second fridge or freezer, only turn it on when you need it.

7. Insulate your roof

An insulated ceiling makes a big difference to your energy bills. If you already have insulation installed, check that it is properly installed and has the right rating (measured in 'R-value'). In Victoria, insulation rated R3.5 or higher should be used for ceilings.

8. Stop standby power waste

Did you know your phone charger is still using energy even when your phone is not attached? Up to 10% of your electricity could be used by gadgets and appliances that are on standby.

A standby power controller will automatically reduce standby time and switch appliances off when not in use. You may be eligible for a discounted standby power controller. See Energy Saver Incentive.

9. Save energy in the kitchen

Thaw frozen food in your fridge to reduce cooking time. When you are cooking, use the microwave when you can – it uses much less energy than an electric oven. If you use the stove, keep lids on your pots to reduce cooking time. Use the economy cycle on your dishwasher and only run it when it's full.

10. Use energy-efficient light globes

Replace old incandescent and halogen light globes with energy-efficient globes. Energy-efficient globes save power and last longer. Light globes can sometimes be replaced for free or at reduced cost. 

8 0
3 years ago
Other questions:
  • Which practice represents the trait of effective communication?
    6·2 answers
  • What natural boundary separated british territory from louisiana?
    7·1 answer
  • What appears in the document after you have inserted a video?
    14·2 answers
  • Which of the following is a trend that began during the Vietnam War and continued with the Internet?
    5·1 answer
  • Andy, a developer, is designing a new program. Which tool should Andy use to help him complete his task?
    13·1 answer
  • A device that protects electronic equipment from an increase in power, but not a decrease or outage is a ___.
    12·1 answer
  • TRUE OR FALSE - SQL language is used to query data in a Relational Database?
    5·1 answer
  • You manage a network that uses a single switch. All ports within your building connect through the single switch. In the lobby o
    14·1 answer
  • NumA = 3 <br>numB = 2<br>Result = numA ** numB
    12·1 answer
  • DRAW A FLOWCHART THAT WILL ASK THE USER TO ENTER AND DISPLAY THEIR PERSONAL DETAILS SUCH AS NAME AND AGE.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!