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
Alja [10]
3 years ago
10

Write a small program basic c++, that defines a negative integer (between ‐1 and ‐255), converts it to a positive value and then

displays it on the console window.
Computers and Technology
1 answer:
ANEK [815]3 years ago
4 0

Answer:

#include <iostream>

using namespace std;

int main() {

int a=-156;//negative integer between -1 and -255.

a*=-1;//multiplying a to -1 so that it can become positive.

cout<<a;//printing a.

return 0;

}

Explanation:

The above written program is in C++ and in the program an integer a is defined with a negative value in the program it is -156.Then to convert it to positive integer we have to multiply a to -1 after that printing the value of a on the screen.

You might be interested in
A class is a type of object that defines the format of the object and the actions it can perform. True False
vodka [1.7K]
True. It’s the objects classification or class, for short.
8 0
3 years ago
"The fact that we could create and manipulate an Account object without knowing its implementation details is called"
ladessa [460]

Answer:

Abstraction

Explanation: Abstraction is a software engineer terminology that has been found to be very effective and efficient especially as it relates to object-oriented computer programming. It has helped software engineers and other computer experts to effectively manage account objects without having a knowledge of the details with regards to the Implementation process of that account object.

6 0
3 years ago
I will mark brainliest
Angelina_Jolie [31]

Answer:

specialized limitations

Explanation:

beacause the others is an application product

4 0
3 years ago
Which items may interfere with a wireless connection and may cause disruptions or delays in submitting assignments in blackboard
GarryVolchara [31]

The items that may cause to interfere a wireless connection causing a delay then in homework or assignment submission would then be large metals such as c. microwave ovens. Hope this answer would then be of big help to you.

4 0
4 years ago
Read 2 more answers
Is a type of bullying that takes place when a person intentionally posts negative information about another that is not true
MakcuM [25]

Cyberbullying is bullying that takes place over digital devices like cell phones, ... posting, or sharing negative, harmful, false, or mean content about someone else. It can include sharing personal or private information about someone else ... as well as any negative, mean, or hurtful content

6 0
3 years ago
Other questions:
  • To add text to a slide when using presentation software, you need to add a text box. To add a text box, click the Text Box butto
    6·2 answers
  • 7.
    6·1 answer
  • The way a program is proceed is know as control flow and are :Sequence(one line after the other), Decision-making(either this or
    8·1 answer
  • A computer has been stored, uncovered, in a dusty closet for several months. Why might this situation cause the operating system
    13·1 answer
  • What was the process called that required the photographer to have a tent or darkroom handy so that chemicals could be mixed qui
    7·1 answer
  • Which type of fiber-optic connector, containing one fiber-optic strand per connector, is connected by pushing the connector into
    7·1 answer
  • Can someone solve this for me please? It’s part of an escape room.
    13·2 answers
  • Please answer me fast ​
    6·2 answers
  • Write pseudocode for the question below:
    15·1 answer
  • When network traffic is encrypted, it is invisible and its content and purpose are masked.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!