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

Review the items below to make sure that your Python project file is complete. Once you have finished reviewing your variables.py assignment, upload it to your instructor.1. Make sure your variables.py program prints the following things, in this order:a) Hello world!b) Spamc) Eggsd) SpamEggse) Spam Eggsf) Spam Eggsg) 7 9h) 20i) 13j) 5k) 13l) 10.8m) 2.72. Make sure that you have saved your program. TIP: If there is an asterisk before the file name in the variables.py text editor window, you need to save your work.

Answers

Answer:

print('Hello world!')

print('Spam')

print('Eggs')

print('SpamEggs')

print('SpamEggs')

print('Spam Eggs')

print(7)

print(20)

print(13)

print('5k')

print(13)

print('10.8m')

print(2.72)

Explanation:

Integers and floats don't need quotes, but if you want to combine it with a string, then you need a quote. Hope that this solution is what you are looking for!

You have a Windows system that has both wired and wireless network connections. The wired connection is on the internal private network, but the wireless connection is used for public connections. You need to allow help desk users to use Remote Assistance to help you while working on the wired network, but you want to block any such access from the wireless network. How can you configure Windows Firewall to allow and deny access as described

Answers

Answer: D. Enable the remote Assistance exception only on the private profile

Explanation:

Can someone help me please?

Answers

Answer:

ummm this is hard i think answer is 5 robuk am pro

Explanation:

cuz me say soo

what is the best protection method for sharing pii

Answers

Answer:

What is the best protection method for sharing (PII)? Digitally sign and encrypt the email..

Explanation:

Hope it helps you..

Your welcome in advance..

(ㆁωㆁ)

what is the first thing you should do when you open a savings account

Answers

Answer:

Compare your options. There are many financial institutions that offer savings accounts. .

Explanation: PLS MARK BRAINLIEST

True or False: Visual Studio is not a part of Unity. You could use a different code editor to edit your C# scripts if you wanted to.

Answers

Answer:

True

Explanation:

Visual Studio and Unity are two different things. Visual Studio is an IDE developed by Microsoft, and Unity is a game engine developed by another company. Visual Studio is the default editor in Unity, but you are able to use something different.

Source: https://docs.unity3d.com/Manual/ScriptingToolsIDEs.html

There are different kinds of true statement.  Visual Studio is not a part of Unity is a true statement.

Is Visual Studio a part of Unity?Visual Studio is known to for  Mac Tools and also for Unity is said to be part of  the installation of Visual Studio for Mac.

You can verify the type of Visual Studio differs for Mac and other product.

Learn more about Visual Studio from

https://brainly.com/question/4925305

The rolling movement of the mouse causes a corresponding movement of the ___________ or ______________ on the screen​

Answers

Answer:

cursor or pointer

Explanation:

beacause the main js crom the algorithm

Which operating system is designed to operate a desktop computer or portable device used by an individual?

Embedded OS
Stand-alone OS
Network OS
Client OS

Answers

Answer:

Embedded operating system

The Embedded OS designed to operate a desktop computer or portable device used by an individual option (A) is correct.

What is a computer?

A computer is a digital electronic appliance that may be programmed to automatically perform a series of logical or mathematical operations. Programs are generic sequences of operations that can be carried out by modern computers.

An operating system is a piece of system software that controls computer resources, hardware, and common services for software programs.

The embedded operating system is designed to operate a desktop computer or portable device used by an individual.

Thus, the Embedded OS designed to operate a desktop computer or portable device used by an individual option (A) is correct.

Learn more about computers here:

brainly.com/question/21080395

#SPJ2

2
2. When designing a kitchen to be handicapped acces-
sible, toe space of deep and 8" to 11" high is
needed under the cabinets for wheelchair footrests.

Answers

Answer:

ok.... ..............

!!HELP!!
I need to know what the code is!!

Answers

What is the webpage link then click ctrl i that will show source code I am not for shure if this helps if not let me know

what are the parts of a file?​

Answers

Answer:

A computer file is made up of three elements: characters, fields and records.

Explanation:

Hope this helps! :D

what is the set of events that occurs between the moment you turn on the computer and the moment you can begin to use the computer

Answers

Answer:

Booting

Explanation:

Booting is the process that occurs when you press the power button to turn your computer on. During this process (which may take a minute or two), the computer does several things: It runs tests to make sure everything is working correctly. It checks for new hardware.

30 points!!! Due Tomorrow. ICT test on memory, CPU, motherboard and dedicated/embedded systems and general purpose systems. Any tips?​

Answers

Answer:

Just get it right and don't get stressed

Explanation:

An embedded system is a computer system—a combination of a computer processor, computer memory, and input/output peripheral devices—that has a dedicated function within a larger mechanical or electronic system.[1][2] It is embedded as part of a complete device often including electrical or electronic hardware and mechanical parts. Because an embedded system typically controls physical operations of the machine that it is embedded within, it often has real-time computing constraints. Embedded systems control many devices in common use today.[3] In 2009 it was estimated that ninety-eight percent of all microprocessors manufactured were used in embedded systems.[4]

write code that removes the first and last elements from a list stored in a variable named my_list. assume that the list has been initialized and contains at least two elements.

Answers

Answer:

[24, 35, 9, 56 Approach #3: Swap the first and last element is using tuple variable.

You use a Windows desktop system to edit and produce audio files. Your system has two hard disks installed. Your applications are installed on the C: volume on the first hard disk. Because of the size of the audio files you produce, you keep them on a separate volume (D:) located on the second hard disk. Your Windows desktop system has system protection enabled on the both drives. You need to configure system protection on this system to maximize overall protection. What should you do

Answers

Answer:

You can go to the windows group policy settings and turn the security mode to thw highest or just installing a AV system that has a good reputation.

Hope this help please give the brainliest award would be much appreciated.

Please answer this thank you

As a good housekeeper, list down at least 5 ideal traits and why you should practice them in terms of housekeeping​

Answers

Cooking, for good food
Cleaning, a clean house

algorithm to convert Fahrenheit temperature into celsius temperature​

Answers

Lets use python

[tex]\\ \tt F=(float(input("Enter\:temperature\:in\:Fahrenheit:")))[/tex]

[tex]\tt C=(F-32)*5/9[/tex]

[tex]\tt print("Temperature\:in\:Celsius\:is",C°C)[/tex]

Output:-

[tex]\tt Enter\:temperature\;in\:Fahrenheit:32[/tex]

[tex]\tt Temperature\:in\:Celsius\:is\:0°C[/tex]

Answer:

Using c++ variable names

double c;

double f;

//set f to some temperature value or pass the value to the function

c=f-32;

c=f*(5/9);

//c is now the temp in celcius

a modem is required for ________________ internet access.

Answers

Broadband I believe!

Imagine that over the past few weeks, you have experienced an abundance of pop-up ads

appearing when you are using the Internet. You'll also noticed that your computer is

working more slowly than usual.

In a 200 - 300 word essay, diagnose the problem with your computer and explain what can be done to remedy the issue. In your essay, use information from the lesson to justify your

diagnosis and solution.

I

Answers

Answer:

Look below

Explanation:

You open the computer that you recently purchased and it is running slower than usual and your experiencing popups

What most people would think is that a virus has infected their computer. This can be diagnosed via a free online (REPUTABLE) tool such as Malwarebytes. If the tool detects a virus it can remove it and this will 99% of the time fix the problem.

Now after you have solved the problem there is another thing to learn, viruses don't just catch computers like a real virus so its User Error either by the owner of the computer or someone with access, If you are the only one who uses the computer you should learn some online safety such as not visiting websites people wouldn't consider reputable and don't run sketchy files (EXE, JAR, etc) don't download anything from a source you don't trust.

If it was a family member or friend's fault explain internet safety to them and how sometimes a simple mistake of not double-checking the website can lead to a virus. One time I was installing java on a friend's computer and just clicked the first link (an ad) not Javas website and it ended up in me getting in some trouble.

However, if you have solved the virus issue and your computer is still being slow you should check if Windows has been damaged, you can do this via Command Prompt a program that comes with your Windows Machine. Just type "sfc /verifyonly" and it will find if your windows files have been damaged.

-END

256 words

Pls mark me Brainliest i worked hard on this. Your assignment asks for information on the lesson however i used some complicated solutions to make up for that so your teacher/professor thinks your smart

What component uses thermal paste to attach the heat sink?

Answers

Answer:

Thermal compound is the answer

Deleting messages keeps them in the mailbox and on the server. How can they be removed from the server to reduce the quota?

Answers

Answer:

Left-click each message, and move it to the Trash folder.

Right-click the Deleted Items folder, and click Empty Folder.

Click the Folder tab, and click the Empty Folder in Clean Up group.

Right-click the Deleted Items folder, and click Mark All as Read.

import pickle
def enter():
f1=open("c:\\xics\\data.dat","wb")
n=int(input("Enter ni of students."))
for i in range(n):
rno=int(input("Enter roll no."))
name=input("Enter name")
marks=int(input("enter marks"))
d={"rno":rno,"name":name,"marks":marks}
pickle.dump(d,f1)
f1.close()

Answers

Answer:

Export ariana grande fort nite skin

Answer:

I M P O R T P I C K L E

Explanation:

coding word scramble

ICOAIPAPLTSN- a software program for end users

AADT- processed information

RAAEHWRD- physical parts of computer system

MRNPAGOGIMR- instruction given to the computer
plz answer as soon as possible

Answers

application, data, hardware, programming

The decoded words for the coding word are:

ICOAIPAPLTSN - ApplicationAADT - DataRAAEHWRD - HardwareMRNPAGOGIMR - Programming

What is coding words?

In the above decoded words, "ICOAIPAPLTSN" unscrambles to "Application." An application, often referred to as software or a program, is a set of instructions designed to perform specific tasks or functions for end users. Applications can be anything from productivity tools, games, communication software, and more.

Also, "AADT" unscrambles to "Data." Data refers to any piece of information or raw facts that are collected, stored, and processed by a computer system. Data can be in various forms, such as text, numbers, images, videos, and more.

Read more about coding here:

https://brainly.com/question/26134656

#SPJ3

Complete the sentence.
A(n)
A. Accessibility document
B. User manual
C. Code library
D. Version control document keeps track of the version numbers of an app and what changes were made váth each
version

Answers

Answer: D Version control document

Explanation: right on cs

A version control document keeps track of the version numbers of an application and what changes were made in each version.

What is version control?

Version control can be defined as a process through which changes to a document, file, application and software codes over time, are tracked, recorded and managed, especially for easy recall and modification of specific versions in the future.

In Computer technology, an example of a version control system that is commonly used by software developers across the world is Git.

Read more on version control here: https://brainly.com/question/22938019

#SPJ2

what is the version number for mysql returned from port 3306

Answers

Answer:

For MySQL, the default port is 3306, which means if you have installed MySQL externally, it will listen to the 3306 port. But when it gets installed with the WAMP package, it is now 3308 in a new version of WAMP because, from the latest version of the WAMP server (3.2.

whenever I try to make an account it says it can't sign me up at this time or something- can you help?-

Answers

Answer:

You can try emailing tech support and describing your issue. In order to get the best help as quickly as possible, try providing screenshots of what happens when you sign in or describe everything you see on the screen when the problem occurs, and quote error messages directly when possible.

Select all correct statements below: Group of answer choices A redundant link's switch port will be blocked by STP until needed. An Ethernet network can only have one active path at any time. Both frames and packets are prevented from being retransmitted through a network indefinately due to the TTL feature. STP is used to prevent Ethernet network performance degradation. An IP network can only have one active path at any time.

Answers

Snhahshshshshshhshshshsshhshshshshhs

what does a exponent do in excel ?​

Answers

Answer:

Exponents in Excel are one of the oldest concepts in Mathematics and are a very powerful one as you have to deal with powers. They are basically a shorthand notation for repetition or to depict how many times a number is getting multiplied to itself.

Explanation:

5.Write a program that calculates the factorial of a given number (for example, factorial of 5 = 120).

Answers

Answer:

Using c++ syntax

int givenNumber= 5; //can set to something else

int answer = 1;

for (int i = 1; i <= givenNumber; i++){

   answer *= i;

}

What is the maximum number of guesses it will take to find a number
between 1 and 64?

Answers

Answer:

10?

Explanation:

Other Questions
the price elasticity of demand of a straight-line demand curve is latoya filed her tax return on february 10th this year. when will the statute of limitations expire for this tax return? questions:1. Which vein carries deoxygenated blood from:a. upper part of the body to the heart?b. lower part of the body to the heart?2. Which chamber of the heart first receives deoxygenated blood fromthe upper and lower body part?Which chamber of the heart pumps deoxygenated blood going topulmonary artery? tissue cultures samples of cancer cells are taken from cancer patients In which continent is Uganda found Tell whether the lines through the given points are parallel, perpendicular, or neither.Line 1: (5, 7), (2, 5)Line 2: (-2, 3), (-4, - 1)Hello what is it What were the responsibilities of women in 19th century Russia? How does wood that is not burning differ from a nonflammable materials? what happened when the colonists that were fed up with british taxes and rough handing began to protest in Boston?? NO LINKS The cost of bananas varies directly with their weight. Miguel bought3 1/2 pounds of bananas for $1.12. Write an equation that relates the cost of the bananasto their weight. Then find the cost of 4 1/4 pounds of bananas How can we show magnetic field lines? What is fire? Is it matter or is it energy? Express the distance 4,300,000 meters using scientific notation in meters, and then in millimeters. Jared baked 20 cookies if 1/5 cookies were burned how many cookies burned simplify your answer you want to download some new songs on your mp3 player.Each song will use about 4.3MB of space.There is 7.8GB of free storage space on your mp3 player.At most how many songs can you download? what are the unique ICT needs for casinos? Ok so now theres a Tiky, a Wity, a Ru, a Zary, a Impos, a Mat, a Sagy, a Tod (and his small bot), a Kap, a Girfen, a Bofren, and a Sponge. Why did i do this? My mic is gone due to them. who was the last person to sign the declaration of independence HELP PLEASE I NEED HELPPPP!!!!!!!!!! An object is traveling at a constant velocity of 8 m/s when it experiences a constant acceleration of 3.5 m/s2 for a time of 40 s. What will its velocity be after that acceleration?