Two parter:

A.) What is wrong with the program segment below? The program does not contain syntax errors.

B.) Fix the programming error(s)

num = 1;

while (num < 9)
{
cout << num;
num = num - 1;
}

Answers

Answer 1

Answer:

the variable num is not declared so the compiler doesn't define it.

add int before num:

int num = 1;

while (num < 9)

{

cout << num;

num = num - 1;

}

now the code will run but it won't stop as it will never break the condition (num < 9).


Related Questions

Type the correct answer in the box. Spell all words correctly.
Alan maintains the efficiency of a printing plant by supervising plant operations and implementing safety procedures. What does he work as?
Alan is working as a _____________.

Answers

Answer:

Alan is a Maintenance Supervisor.

Explanation:

Answer:

printing plant manager

Explanation:

Drag the tiles to the correct boxes to compete the pairs. Identify the types of chemical reactions occurring in the chemical equations.

Answers

The question is incomplete. The complete question is :

Drag the tiles to the correct boxes to compete the pairs. Identify the types of chemical reactions occurring in the chemical equations.

combustion reaction , photosynthesis , respiration

water + carbon dioxide + sunlight → oxygen + glucose

methane + oxygen → water + carbon dioxide + heat

glucose + oxygen → carbon dioxide + water + energy

Solution :

The chemical reactions that is occurring in the following chemical equations are :

Photosynthesis

water + carbon dioxide + sunlight → oxygen + glucose

Plants uses the light energy from the sun in the presence of water and carbon dioxide produces food by the process of photosynthesis. It produces glucose and oxygen.

Respiration

glucose + oxygen → carbon dioxide + water + energy

The cellular respiration process produces ATP with the breakdown of the glucose and oxygen. During respiration process, carbon dioxide is obtained along with water and energy.

Combustion reaction

methane + oxygen → water + carbon dioxide + heat

Combustion reaction is a chemical reaction in which methane is the main ingredient. Combustion takes place as things burn in the presence to methane and oxygen to form carbon dioxide, water and heat.

Three types of common program errors are syntax, runtime, and logic. (5 points)
O True
O False

Answers

Answer:

True

Explanation:

True,My good sir/maam


what is the answer???​

Answers

Answer:

I think it should be C

Explanation:

A group of two or more computers that are link together.

List two examples of following types of communication

Answers

Verbal Communication. Verbal communication occurs when we engage in speaking with others. ...
Non-Verbal Communication. What we do while we speak often says more than the actual words. ...

Answer:

Explanation:

sign language is communication

touch is communication

You are the network administrator for a city library. Throughout the library, there are several groups of computers that provide public access to the internet. Supervision of these computers has been difficult. You've had problems with patrons bringing personal laptops into the library and disconnecting the network cables from the library computers to connect their laptops to the internet. The library computers are in groups of four. Each group of four computers is connected to a hub that is connected to the library network through an access port on a switch. You want to restrict access to the network so only the library computers are permitted connectivity to the internet. What can you do to fix this problem

Answers

Answer: Configure port security on the switch

Explanation:

Since there need to be a restriction on access to the network so that the library computers will be the only ones that are allowed connectivity to the internet, the thing that can be done to fix the problem is to configure a port security on the switch.

When a port security is configured, it helps in securing the network and this will in the prevention of unknown devices from being connected to the network.

also have a good day people !!

Answers

Answer:

Thx u2!!

Explanation:

Everyone have a good day!

Answer:

You too and thank you for 50 points!!

Explanation:

Match the roles to the task they perform.

gather requirements
create software framework
identify errors in the software
develop program code for software

Role

software architects
business analysts
programmers
testers

Answers

Software Architects: “develop program code for software”

Business Analysts: “gather requirements”

Programmers: “create software framework”

Testers: “identify errors in the software”

Other Questions
Why would the city of Carmel-by-the-Sea, California, see a self-serving purpose in passing an ordinance prohibiting the wearing of two-inch-heeled shoes within city limits? 31/6 Please please help Sarah is filling 6 vases with water. Each vase will get of a liter of water. How many liters of water will be in the 6 vases? A. B. C. D. Which is a correctly formed compound sentence? Daniel was very excited to watch his favorite team play. But they lost. Daniel was very excited to watch his favorite team play but they lost. Daniel was very excited to watch his favorite team play, but they lost. Daniel was very excited to watch his favorite team play; but they lost.. PLEASE HELP!! i will love you forever omgwrite a short scene, in first person showing a time you were underestimated. true or false? aging is a normal process that lead to normal changes in body structure and function Characteristics of RAM please help solve for x step by step ASAP! Cmo le llamaban al instrumento de labranza? a. hacha c. juego de pelota b. coa d. repelente de mosquitos Lia has a ribbon 325 4/5m long. She cuts off a 150 3/5m long piece; then she divided the rest of the ribbon into 3 parts of equal length. Find the length of each part. What is the relationship between the rock cycle and the plate tectonics? 1. Find the surface area of the triangular pyramid.12 yd17.3 yd20 ydWhat is the surface area of the triangular pyramid Can someone please explain how to do this thanks. I have a test tomorrow:/ PLEASE HELP ME!!Brainliest for most helpfulIf you use bit. ly I will ban youDon't try meAll I need is a decimal Please help me find the answer , thank you. What is the surface area of the rectangular prism shown above? A graduated cylinder contains 30 mL of water. You place an object into the cylinder and the water level rises to 52mL. What is the volume of the object? 14 17 20 please helppppppp!!!!!!!!!!! A cylinder has a radius of 5 centimetersand a height of 17 centimeters. What isthe total surface area of the cylinder?Use 3.14 for GUYS PLEASE ASAP I WILL FAIL IF U GUYS DONT ANSWER PLEASE