Add two more statements to main() to test inputs 3 and -1. Use print statements similar to the existing one (don't use assert).
*Sample Program*
#include
using namespace std;
// Function returns origNum cubed
int CubeNum(int origNum) {
return origNum * origNum * origNum;
}
int main() {
cout << "Testing started" << endl;
cout << "2, expecting 8, got: " << CubeNum(2) << endl;
/* Your solution goes here */
cout << "Testing completed" << endl;
return 0;
}
Must be done in C++. Please Bold your inputed code. Note that you can only write inside the //your answer comment. Break up comment when your answer is done to actually run it.

Answers

Answer 1

#include

using namespace std;

// Function returns origNum cubed

int CubeNum(int origNum) {

return origNum * origNum * origNum;

}

int main() {

cout << "Testing started" << endl;

cout << "2, expecting 8, got: " << CubeNum(2) << endl;

/* Your solution goes here */

cout << "3, expecting 27, got: " << CubeNum(3) << endl;

cout << "-1, expecting -1, got: " << CubeNum(-1) << endl;

cout << "Testing completed" << endl;

return 0;

}

read more about this at https://brainly.com/question/13150927

#SPJ4


Related Questions

What is block chain?

Answers

Answer:

Block Chain is a system of recording information that makes it difficult or impossible to change, hack, or cheat the system.

A blockchain is essentially a digital ledger of transactions that is duplicated and distributed across the entire network of computer systems on the blockchain.

Hope this helps.

x

Blockchain is a distributed database existing on multiple computers at the same time. It is constantly growing as new sets of recordings, or ‘blocks’, are added to it. Each block contains a timestamp and a link to the previous block, so they actually form a chain. The database is not managed by any particular body; instead, everyone in the network gets a copy of the whole database. Old blocks are preserved forever and new blocks are added to the ledger irreversibly, making it impossible to manipulate by faking documents, transactions, and other information. All blocks are encrypted in a special way, so everyone can have access to all the information but only a user who owns a special cryptographic key is able to add a new record to a particular chain.

14.
b
The memory, which is utmost accessible to the processor is
A: Cache memory
B: RAM
C: Hard disk
D: Flash memory

Answers

Answer is A : Cache memory

Which Fiber implementation is often referred to as Fiber To The Premises (FTTP)? Check all that apply.

Answers

Answer:

FFTH Fiber to the home, FFTB Fiber to the building.

working with the tkinter(python) library



make the window you create always appear on top of other windows. You can do this with lift() or root.attributes('-topmost', ...), but this does not apply to full-screen windows. What can i do?

Answers

To make a tkinter window always appear on top of other windows, including full-screen windows, you must use the wm_attributes method with the topmost attribute set to True.

How can I make a tkinter window always appear on top of other windows?

By using the wm_attributes method in tkinter and setting the topmost attribute to True, you can ensure that your tkinter window stays on top of other windows, even when they are in full-screen mode.

This attribute allows you to maintain the window's visibility and prominence regardless of the current state of other windows on your screen.

Read more about python

brainly.com/question/26497128

#SPJ1

2.10 LAB - Select employees and managers with inner join
The Employee table has the following columns:
• ID-integer, primary key
.
FirstName-variable-length string
• LastName-variable-length string
ManagerID - integer
.
Write a SELECT statement to show a list of all employees' first names and their managers' first names. List only employees that have a
manager. Order the results by Employee first name. Use aliases to give the result columns distinctly different names, like "Employee and
"Manager".
Hint: Join the Employee table to itself using INNER JOIN.

I have the code, however I have the employees as managers and the managers as the employees in the table. Here is the code I have.

SELECT emp.FirstName AS Employee, mgr.FirstName as Manager FROM Employee AS emp

INNER JOIN Employee AS mgr

ON emp.ID = mgr.ManagerID

ORDER BY mgr.ManagerID; no

2.10 LAB - Select employees and managers with inner joinThe Employee table has the following columns:

Answers

The statement to show a list of all employees' first names and their managers' first names is in explanation part.

What is SQL?

SQL is an abbreviation for Structured Query Language. SQL allows you to connect to and manipulate databases. SQL was adopted as an American National Standards Institute (ANSI) standard in 1986.

Here's an example SQL query to show a list of all employees' first names and their managers' first names, ordered by employee first name:

SELECT e1.FirstName AS Employee, e2.FirstName AS Manager

FROM Employee e1

INNER JOIN Employee e2

ON e1.ManagerID = e2.ID

ORDER BY Employee;

Thus, in this we order the results by the Employee column (i.e., the first name of the employee). The query only returns employees that have a manager (i.e., their ManagerID column is not null).

For more details regarding SQL, visit:

https://brainly.com/question/13068613

#SPJ9

Assignment: Create a program that can try out every possible logical combination of the variables A, B, and C, and determine which combinations will yield a true statement. A few things to take note of, first there are eight different possible combinations of the three variables. Make certain you test all eight of the combinations. The code itself will account for 50pts. Include the combinations of A, B, and C that cause the statement to be true for an additional 50pts. (1) (A and B) or (A and C) (2) (A and C) and (B and !C) (3) (A or B) and !(B or C) (4) (A or (B and C)) and (!A and !B) (5) ((B and C) or (C and A)) and (!(A or B) and C) Please read each of the five carefully and make sure your code accurately reproduces the logical statement given for each problem. Note that the exclamation symbol indicates the logical “NOT” operator, and the parentheses indicate which order the statements are to be performed in. Keep in mind since you’re testing all possible combinations of input for all five logical statements, you’ll have forty answers generated by your program, in total.

Answers

Answer: To solve this problem, you can use nested loops to generate all possible combinations of A, B, and C. Then, you can evaluate each logical statement for each combination of A, B, and C. If the statement is true, you can print the combination of A, B, and C that made the statement true.

Here's an example of Python code that generates all possible combinations of A, B, and C and evaluates the first logical statement:

```

for a in [True, False]:

   for b in [True, False]:

       for c in [True, False]:

           if (a and b) or (a and c):

               print(a, b, c)

```

You can modify this code to evaluate the other four logical statements by changing the logical operators and the order of the variables.

(a)Make logic circuit for the following Boolean expressions:
(xyz) + (x'y'z)

Answers

Answer:

The logic circuit for the Boolean expression (xyz) + (x'y'z) is shown below:

```

   x   y   z

   |   |   |

   |   |   |

   |   |   |

   |   |   |

   |   |   |

   |   |   |

   |   |   |

   |   |   |

   |   |   |

   |   |   |

   |   |   |

   |   |   |

   |   |   |

   |   |   |

   |   |   |

   |   |   |

  / \ / \ / \

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |   |   |   |

 |

Explanation:


How would you explain a number system to someone who had never seen numbers before

Answers

Answer:

Use a number of items (likes apples) to show the amount each number correlates to.

Explanation:

What are some ways you can work with templates? Check all that apply.
A. creating a new template from scratch
B. scanning a template from a printed page
C. using many different templates in one document
D. using a preexisting template
E. modifying a preexisting template

Answers

What are some ways you can work with templates? Check all that apply.

Answer: (A,D,E) see picture below for help also.
What are some ways you can work with templates? Check all that apply.A. creating a new template from

Answer:

Look at the other answer that guy knows what he is talking about

Explanation:

definition of letter in communication skills

Answers

Answer:

Explanation:A letter is a written message conveyed from one person to another person through a medium. Letters can be formal and informal. Besides a means of communication and a store of information, letter writing has played a role in the reproduction of writing as an art throughout history.

Answer:

A letter is a written message conveyed from one person to another person through a medium. Letters can be formal and informal. Besides a means of communication and a store of information, letter writing has played a role in the reproduction of writing as an art throughout history.

Excellent written and verbal communication skills. Confident, articulate, and professional speaking abilities (and experience) Empathic listener and persuasive speaker. Writing creative or factual. Speaking in public, to groups, or via electronic media. Excellent presentation and negotiation skills.

What Should be the first step when troubleshooting

Answers

The first step in troubleshooting is to identify and define the problem. This involves gathering information about the issue, understanding its symptoms, and determining its scope and impact.

By clearly defining the problem, you can focus your troubleshooting efforts and develop an effective plan to resolve it.

To begin, gather as much information as possible about the problem. This may involve talking to the person experiencing the issue, observing the behavior firsthand, or reviewing any error messages or logs associated with the problem. Ask questions to clarify the symptoms, when they started, and any recent changes or events that may be related.Next, analyze the gathered information to gain a better understanding of the problem. Look for patterns, commonalities, or any specific conditions that trigger the issue. This analysis will help you narrow down the potential causes and determine the appropriate troubleshooting steps to take.

By accurately identifying and defining the problem, you lay a solid foundation for the troubleshooting process, enabling you to effectively address the root cause and find a resolution.

For more questions on troubleshooting

https://brainly.com/question/29736842

#SPJ8

highlight the function of the system sofyware in the computer system​

Answers

System software manages the computer itself. It runs in the background, maintaining the basic functions of the computer so that users can run higher-level application software to perform specific tasks. Essentially, system software serves as a foundation for application software to run on.

What is a System software?

System software is the most important type of software required to manage the computer system's resources.

Internally, system software runs and interacts with application software and hardware. Furthermore, it serves as a link between a hardware device and the end user.

System software runs in the background and manages all aspects of the computer's operation. Low-Level Software is so named because it runs at the most basic level of a computer and is usually written in a low-level language. When we install the operating system on one device, it is automatically installed on another.

System software contributes to the creation of the user interface and allows the operating system to communicate with the computer hardware in a computer system​.

To learn more about System software, visit: https://brainly.com/question/13738259

#SPJ9

Use the drop-down menus to complete statements about how to use the database documenter

options for 2: Home crate external data database tools

options for 3: reports analyze relationships documentation

options for 5: end finish ok run

Use the drop-down menus to complete statements about how to use the database documenteroptions for 2:

Answers

To use the database documenter, follow these steps -

2: Select "Database Tools" from   the dropdown menu.3: Choose "Analyze"   from the dropdown menu.5: Click on   "OK" to run the documenter and generate the desired reports and documentation.

How is this so?

This is the suggested sequence of steps to use the database documenter based on the given options.

By selecting "Database Tools" (2), choosing "Analyze" (3), and clicking on "OK" (5), you can initiate the documenter and generate the desired reports and documentation. Following these steps will help you utilize the database documenter effectively and efficiently.

Learn more about database documenter at:

https://brainly.com/question/31450253

#SPJ1


similarities between incremental and
prototyping models of SDLC

Answers

Prototype Model is a software development life cycle model which is used when the client is not known completely about how the end outcome should be and its requirements.

Incremental Model is a model of software consequence where the product is, analyzed, developed, implemented and tested incrementally until the development is finished.

What is incremental model in SDLC?

The incremental Model is a process of software development where conditions are divided into multiple standalone modules of the software development cycle. In this model, each module goes through the conditions, design, implementation and testing phases.

The spiral model is equivalent to the incremental model, with more emphasis placed on risk analysis. The spiral model has four stages: Planning, Risk Analysis, Engineering, and Evaluation. A software project frequently passes through these phases in iterations

To learn more about Prototype Model , refer

https://brainly.com/question/7509258

#SPJ9

to do a case insensitive compare which of the following expressions could be used to test the equality of two strings, str1 and str2?

Answers

In order to do a case insensitive compare which of the following expressions could be used to test the equality of two strings, str1 and str2 is :strcmpi (str1, str2);

Explanation: strcmpi function is a string function that is used for comparing two strings in a case-insensitive manner in the C programming language. It's declared in string.h library, and it takes two string pointers as arguments. It returns an integer value that indicates the relation between two strings.

The strcmpi() function compares two strings, ignoring case distinctions. It returns an integer less than, equal to, or greater than zero if str1 is found, respectively, to be less than, to match, or to be greater than str2. The function is case-insensitive because it compares only the values of the character codes and does not account for case (upper- or lower-case letters).

Therefore, in order to do a case insensitive compare which of the following expressions could be used to test the equality of two strings, str1 and str2 is strcmpi(str1, str2).

for more such question on strings

https://brainly.com/question/30392694

#SPJ11

The spoken version of your company's purpose is called
A An elevator pitch
B. A vision statement
C. Your values
D. Differentiation

Answers

Answer:

The answer to this question is given below in the explanation section. The correct answer is A

Explanation:

The spoken version of the company's purpose is also called an elevator pitch. because it has to be short enough to fit into a conversation that takes place on an elevator.

however the other options are not correct that tells the purpose of a company, because the vision statement shows what you will be at what stage in next coming year (in terms of growth, product /services etc). Your values are about what uniqueness you have in your product/service etc that you are providing to your customers/clients. While differentiation is not a spoken version of your company.

Answer:

A

Explanation:

Write some code that reads in a name as a string and an age as an integer into the variables name and age. It then prints the message "The age of NAME is AGE" on a line by itself, where NAME and AGE represent the values read into the variables name and age respectively. For example, if your code read in "Rohit" and 70 then it would print out "The age of Rohit is 70" on a line by itself. There should NOT be a period in the output. Use the up or down arrow keys to change the height.

Answers

Answer:

Following are the code to this question:

import java.util.*;//import package

public class Main//defining class Main

{

public static void main(String[] as)//defining main method

{

Scanner obx= new Scanner(System.in);//creating Scanner class Object

String name = obx.next();//input String value in name variable

int age = obx.nextInt();//input integer value in age variable

System.out.println("The age of " + name + " is " + age);//print value with message

}

}

Output:

Rohit

70

The age of Rohit is 70

Explanation:

The description of the given java code can be defined as follows:

In the above java code, two-variable "name and age " is declared, in which name is string variable and age is an integer variable. In the next step, the scanner class object is created, in which we input values in the variable and use the print method to print its value with the message.

When multiple architects work on a construction plan, which section of a construction plan will help them keep track of when the changes are made and by whom?
A.
framing plan
B.
schedule
C.
title block
D.
bill of materials

Answers

Answer:

I believe that it is . A. framing plan

Explanation:

But I am not certain But I do know that it IS NOT B..

Answer:

the answer is schedule!!!

Explanation:

differences between a small office and a big office​

Answers

the size and what’s in the office

Make the following changes to excel spreadsheet:


1) Put an X to mark the appropriate cells to show that everyone in Sales attended Part 2


2) Highlight the cells and fill the cells with Red containing the names of the individuals in Claims that did not attend Part 3


3) Format Column H to be 'Currency' with 2 decimal places. Be sure it includes the $ automatically.


4) Each individual must pay $25 for each session they attended. Using a formula of your choice, fill Column H with the total owed for sessions attended, subtracting anything already paid. You may choose to add a header. (Hint: IF or COUNTIF are two possible choices)


5) Sort the entire file (except the headers) A-Z by Last name


6) Add a filter to all Columns, but do not filter the file


7) Bold 'Total Paid'


8) Add conditional formatting to the Total Owed cell for anyone who owes more than $25 for the conference. Have the cell turn red if the total owed is more than $25.


how do I do, uhh, any of this

Answers

This prompt has to do with the use of Microsoft Excel.

1) Simply highlight the cells that correspond with those in "Sales" under column E. Then insert "X" [See attached]

2) Under column F, trace the cells that correspond with "Claims" then simply use the "Fill color" Tool under the "Home" Tab to highlight those in red. Note that the "Fill Color" is represented by a cup of paint. [See attached]

3) To format column "H" to meet the above requirements,

First, highlight the entire column. To do this, place your cursor on the top of the column where it is labeled "H". Then double click;Next, type the following short-cut keys in sequence on your keyboard. Alt + H + AN.  Then select "English $ United States". This will Format Column H to be 'Currency' with 2 decimal places automatically.

4) To get this right, enter the following formula in Cell H5. =IF(COUNTIF(D5:F5, "X"), 25 * COUNTIF(D5:F5, "X"), 0)

Press the "Enter Key". Next, place your cursor on the lower end of Cell H5 until it changes to a black "+" sign. Click and hold, then drag down onto Cell H18.

5) To sort by Last Name,

Click and hold cell A4, then drag the mouse diagonally across the sheet highlighting as you go. Stop at cell H18.Use the following short-cut keys to call up the "Sort Data" dialogue box: Alt + A + SSUnder the section labeled  "Column" select "Sort by Last Name"Under "Sort On" select "Cell Values"Under "Order" select A-ZClick Ok.


6) To add a filter to all columns,

highlight all columns as you have done beforeClick the data tabselect filter

7) Select the cell containing "Total Paid", that is cell G4, then use Ctrl + B to make it bold.

8) To format numbers in a column in Excel so that numbers above a certain value are highlighted in red, you can use the CONDITIONAL FORMATTING feature. Here is an example of how you could do this:

Select the column that contains the numbers you want to format.On the HOME tab, in the STYLES group, click the CONDITIONAL FORMATTING button.From the dropdown menu, choose NEW RULE.In the NEW RULE dialog box, select the FORMAT ONLY CELLS THAT CONTAIN option.In the Format, only cells with dropdown, choose the greater than or equal to operator.In the value or formula field, enter the value that you want to use as the threshold (e.g. 25).Click the FORMAT button to open the FORMAT CELLS dialog box.In the FORMAT CELLS dialog box, choose the formatting options that you want to apply to the numbers above the threshold (e.g. red font color).Click the OK button to apply the formatting.

What is the use of Excel Formatting?

Formatting in Excel is a clever approach for changing the presentation of the data in the spreadsheet. We may style the font of the cells or the table in a variety of ways by utilizing the "Styles" and "Format" tabs provided in the "Home" page.

Conditional Formatting (CF) is a function that lets you apply formats to a cell or range of cells and have that formatting altered based on the cell's or formula's value. For example, you may make a cell bold only when its value is larger than 100.

Learn more about Microsoft Excel Formatting:
https://brainly.com/question/25863198
#SPJ1

Make the following changes to excel spreadsheet: 1) Put an X to mark the appropriate cells to show that

Consider the following classes.
public class Dog
{
/* code */
}

public class Dachshund extends Dog
{
/* code */
}
Assuming that each class has a default constructor, which of the following are valid declarations?

I. Dog sadie = new Dachshund();
II. Dachshund aldo = new Dachshund();
III. Dachshund doug = new Dog();

Group of answer choices

I only

II only

III only

I and II only

II and III only

Answers

Assuming that each class has a default constructor, Only I and II are valid declarations.

What is default constructor?

In object-oriented programming, a constructor is a special method that is called when an object is created. It initializes the object's data members and prepares the object for use.

Dog sadie = new Dachshund();

This is valid because Dachshund is a subclass of Dog, so a Dachshund object can be assigned to a Dog variable.

Dachshund aldo = new Dachshund();

This is also valid because it creates a Dachshund object and assigns it to a Dachshund variable.

Dachshund doug = new Dog();

This is not valid because a Dog object cannot be assigned to a Dachshund variable. While a Dachshund is a Dog, a Dog is not necessarily a Dachshund.

Thus, only I and II are valid declarations.

For more details regarding default constructor, visit:

https://brainly.com/question/31053149

#SPJ3

what is the advantages of your solutions ​

Answers

Answer:

One of the key benefits of using IT solutions is that they provide the opportunity to use the latest technology in the market. This is because the IT solution always offers the best equipment and technologies in the market, and also, they are upgraded at zero additional costs.

Explanation:

Because of inability to manage those risk. How does this explain the team vulnerability with 5 points and each references ​

Answers

The team is vulnerable due to a lack of risk assessment. Without risk understanding, they could be caught off guard by events. (PMI, 2020) Ineffective risk strategies leave teams vulnerable to potential impacts.

What is the inability?

Inadequate contingency planning can hinder response and recovery from materialized risks. Vulnerability due to lack of contingency planning.

Poor Communication and Collaboration: Ineffective communication and collaboration within the team can make it difficult to address risks collectively.

Learn more about inability  from

https://brainly.com/question/30845825

#SPJ1

in short explain 5 uses of internet in your life?​

Answers

Electronic mail. At least 85% of the inhabitants of cyberspace send and receive e-mail. ... Research.Downloading files.Discussion groups. ... Interactive games. ... Education and self-improvement. ... Friendship and dating. ... Electronic newspapers and magazines.

1) What is the first compartment of the 3 Sink Setup filled with?
O Multi-purpose detergent solution and water at least 110°F/37°C
O Baking soda solution and water at least 110°F/37°C
Isopropyl alcohol solution and water at least 110°F/37°C
Sanitizer solution and water at least 110°F/37°

Answers

The first compartment of the 3 Sink Setup is typically filled with option D:  a Sanitizer solution and water at least 110°F/37°

What is the first compartment of the 3 Sink Setup filled with?

The first part of the 3 Sink Setup is for cleaning and getting rid of germs.  People often call it the spot where you sanitize things. In this compartment, we mix a special cleaning liquid with water to make a sanitizer solution. We suggest keeping the water in this area at least as warm as 110°F/37°C.

Sanitizer is used to get rid of germs on things like dishes and kitchen surfaces. It stops germs from spreading and makes sure food is safe.

Learn more about  Sanitizer solution  from

https://brainly.com/question/29551400

#SPJ1

"Write program that takes in a positive integer as input; and outputs a string of 1s and 0s representing the integer in binary: For an integer x, the algorithm is: As long a3 Output X / 13 greater than (remainder is either or Note: The above algorithm outputs the Os and 1's in reverse order: You will need to write a second function to reverse the string: Ex: If the input is: the output is: 110 The program must define and call the following two functions. Define a function named IntToReverseBinary() that takes an int as a parameter and returns a string of 1s and 0s representing the integer in binary (in reverse). Define a function named StringReverse0) that takes a string as a parameter and returns a string representing the input string in reverse_ string IntToReverseBinary(int integerValue) string StringReverse(string userString)"

Answers

Here's an implementation of the program in Python, using the provided algorithm and functions:

def IntToReverseBinary(integerValue):

   binaryString = ""

   while integerValue >= 2:

       if integerValue % 2 == 0:

           binaryString += "0"

       else:

           binaryString += "1"

       integerValue //= 2

   if integerValue == 1:

       binaryString += "1"

   elif integerValue == 0:

       binaryString += "0"

   return binaryString

def StringReverse(userString):

   reversedString = ""

   for i in range(len(userString)-1, -1, -1):

       reversedString += userString[i]

   return reversedString

# Sample usage

inputValue = 13

binaryString = IntToReverseBinary(inputValue)

reversedString = StringReverse(binaryString)

print(reversedString)

What is the implementation program?

The program first defines the IntToReverseBinary() function, which takes an integer integerValue as input and returns a binary string representing the integer in reverse order. The function implements the provided algorithm by repeatedly dividing the input integer by 2 and appending the remainder (0 or 1) to the binary string. The function then reverses the order of the binary string using the StringReverse() function and returns the result.

The StringReverse() function takes a string userString as input and returns the reversed string. The function simply iterates over the characters of the input string in reverse order and appends each character to a new string.

Finally, the program demonstrates the usage of the functions by computing the binary string of the input integer (inputValue = 13), reversing it using StringReverse(), and printing the result. The output of the program for this input value is "101", which is the binary representation of 13 in reverse order.

Learn more about implementation program here: https://brainly.com/question/28436675

#SPJ1

What Is Red Hat OpenShift Deployment?

Answers

Red Hat OpenShift delivers a complete application platform for both traditional and cloud-native applications, allowing them to run anywhere

KDS Company has 3 departments: 1. Dept X 2. Dept Y 3. Dept Z. Design a program that will read as input each department's sales for each quarter of the year, and display the result for all divisions. Use a two dimensional array that will have 3 rows and 4 columns and show how the data will be organized.

Answers

Answer:

In C++:

#include<iostream>  

using namespace std;  

int main() {  

  int depts[3][4];

  char dptcod [3] ={'X','Y','Z'};

  for (int rrw = 0; rrw < 3; rrw++) {  

      for (int cll = 0; cll < 4; cll++) {  

          cout<<"Dept "<<dptcod[rrw]<<" Q"<<(cll+1)<<": ";

          cin>>depts[rrw][cll];  }  }  

      for (int rrw = 0; rrw < 3; rrw++) {  

          int total = 0;

          for (int cll = 0; cll < 4; cll++) {  

              total+=depts[rrw][cll]; }

              cout<<"Dept "<<dptcod[rrw]<<" Total Sales: "<<total<<endl;}  

  return 0; }

Explanation:

This declares the 3 by 4 array which represents the sales of the 3 departments

  int depts[3][4];

This declares a character array which represents the character code of each array

  char dptcod [3] ={'X','Y','Z'};

This iterates through the row of the 2d array

  for (int rrw = 0; rrw < 3; rrw++) {  

This iterates through the column

      for (int cll = 0; cll < 4; cll++) {

This prompts the user for input

          cout<<"Dept "<<dptcod[rrw]<<" Q"<<(cll+1)<<": ";

This gets the input

          cin>>depts[rrw][cll];  }  }  

This iterates through the row of the array

      for (int rrw = 0; rrw < 3; rrw++) {

This initializes total sum to 0

          int total = 0;

This iterates through the column

          for (int cll = 0; cll < 4; cll++) {

This calculates the total sales of each department

              total+=depts[rrw][cll]; }

This prints the total sales of each department

              cout<<"Dept "<<dptcod[rrw]<<" Total Sales: "<<total<<endl;}  

I hope this helps a little bit

In order to average together values that match two different conditions in different ranges, an excel user should use the ____ function.

Answers

Answer: Excel Average functions

Explanation: it gets the work done.

Answer:

excel average

Explanation:

Suppose a computer runs at least two of following processes: A for movie watching, B for file downloading, C for word editing, D for compiling

Suppose a computer runs at least two of following processes: A for movie watching, B for file downloading,

Answers

Answer: This may not be the answer you are looking for but, In order for a computer to run multiple things at once you need to have a memory cell that is kept at a cool 13.8 Degrees celsius for it to work at max capacity.A internal fan to keep the internal parts at 15.3 degrees. The Arctic F12 and Arctic F12-120 is a good fan for that.

Explanation:

Other Questions
Which of the following is the missing value? a. 0.27 b. 0.30 c. 0.37 d. 0.50 What is the value ofi? Explain. Match the definition to the vocabulary word:1. An opening that limits the quantity of light that can enter an optical instrument.2. Highest point; acme.3. Characterized by or characteristic of exceptionally early development or maturity.4. A position, condition, or place affording some advantage or a commanding view.5. The state, quality, or character of being notorious or widely known.6. Affecting or moving the emotions.a. Notoriety d. Vantage b. Aperture e. Poignant c. Precocious f. Culmination Which statement about the early relations between european settlers and American indians is most likely true? To know with ___ is to know without a doubtcertitudephenomenondeism. what is the level of organization for All living organisms on Earth A publicly held corporation has 100,000,000 shares outstanding. A wealthy investor that buys 8,000,000 shares of the company as a passive investor:A. must file a 13d report with the SECB. must file a 13g report with the SECC. must file a 13f report with the SECD. is not required to file a report with the SEC a hot spot is interpreted to have formed from:a. extreme heating of the seas near the equator b. abundant magma produced within a subduction zone c. abundant magma formed within a typical mid-ocean ridge d. a rising plume of hot mantle material Is Antarctica in south pole? or North pole? or neither? Im just wondering- AbChoose the word from the drop-down menu that describes each process in the most exact way.Use a sharp knife to the onionUse an oven to v the cake.Sur the cake batter until it isPour the pasta into the strainer so that the water wout. how do humans benefit from estuaries?A.fishing B.recreation C.transportation D.all of the above Contrast clonal selection with Lamarck's idea for the inheritance of acquired characteristics (see Concept 22.1). please helpppp!!! its timed!!!! thank u for helping!!!!! Choose the coefficient with the greatest value.Choose the coefficient closest to 0. He has two cars or he have? if effective capacity is 75% of design capacity, how many chairs should the dental office should plan for? Tthe american revolution and the french revolution both supported:________ Part A : How does the author use structure to convey a sense of tension in the passage?so the first part A i put C- by utilizing flashback to capture the soldiers dreams of home.now you have to answer part B i put in the photo below Find the similarity between the shape of bullet train and the shark. What is the name of this kind of shape? Also, tell the reason behind such a shape How and why do you think society classifies animals into categories ? Why and how do so many people have different views and morals of the role of animals in our lives? Use your own thoughts and this week's readings to answer your question chegg (This is from chapter 2 human animal borders)