Write an application that stores the following nine integers in an array: 10, 15, 19, 23, 26, 29, 31, 34, 38. Display the integers from first to last, and then display the integers from last to first.

Answers

Answer 1

Following are the code to this question:

Program Explanation:

Defining an array "arr1" of an integer value is declared, which stores 9 elements. In the next step, an integer variable "i" is declared, which uses two for loops to print the value in the given order.In the first for loop, it starts from 0 and ends when its value is less than 9, and prints the array value.In the second for loop, it starts from 9 and ends when the index value is equal to 0, and prints the array value in reverse order.

Program:

#include <iostream>// header file

using namespace std;

int main()//main method

{

int arr1[]= {10, 15, 19, 23, 26, 29, 31, 34, 38};//defining array of integer values

int i;//defining integer variable

cout<<" Array from first to last: ";//print message

for(i=0;i<9;i++)//use for loop to print array

{

cout<<arr1[i]<<" ";//print array value

}

cout<<"\n Array from last to first : ";//print message

for(i=9-1;i>=0;i--)//defining for loop to print array in reverse order

{

cout<<arr1[i]<<" ";//print array

}

return 0;

}

Output:

Array from first to last: 10 15 19 23 26 29 31 34 38  

Array from last to first : 38 34 31 29 26 23 19 15 10  

Learn more:

brainly.com/question/12906023


Related Questions

What is the output of the following code
X = 06
y = 0
print (x ** y)

Answers

Answer:

x=6 and y=0

Explanation

Salvado has a flash dish of is GB
and wants to store of music files
950 kbs each. How many files
will he be able to share on his
flash disk
of​

Answers

Answer:

About 1,655 files or exactly 1655.646315789473684210526315785

1578

Source(s):

1.5 gb = 1,500 mb<---wrong right --->1536

Explanation:

Select the correct navigational path to edit the name of a cell range using name manager

Answers

Answer:

Formula, Name Manager, Edit

Explanation:

for work

Answer:

Formula, Name Manager, Edit

Explanation:

Just did the assignment for Edge 2021

Plz click the Thanks button :)

<Jayla>

Instructions

Drag and drop to arrange the port types in

order of their speed capability from lowest

to highest

[See keyboard instructions here.

Answers

Answer:

The answer is below

Explanation:

Given that there are no specific options here. Here are some of the most common port types in order of their speed capability from lowest to highest.

In Bytes and Bits per second, that is:

1. USB 1.1 = 1.5 MB/s - 12Mbit/s

2. Firefire 400 = 50 MB/s - 400Mbit/s

3. USB 2.0 = 60 MB/s - 480Mbit/s

4. FireWire 800 = 100 MB/s - 800Mbit/s

5. USB 3.0 = 625 MB/s - 5Gbit/s

6. eSATA = 750 MB/s - 6Gbit/s

7. USB 3.1 = 1.21 GB/s. - 10Gbit/s

8. Thunderbolt = 1.25 GB/s * 2 (2 channels) - 10Gbit/s * 2 (2 channels)

9. Thunderbolt 2 = 2.5 GB/s - 20Gbit/s

10. Thunderbolt 3 = 5 GB/s - 40Gbit/s

Determines the steps in the process, the material, and the tools to make

high quality products.

Answers

Explanation:

In order to make high quality products and tools:

1. We should select the proper raw material that we want to make product with.

2. Every metal or every material have certain properties or characteristics. So choose the material properly for the product so that the right amount of hardness or stiffness or any other characteristics necessary for the product is maintained.

3. The process selection should also be carefully chosen.

4. The product should be such that it is made out of limited resources but can give maximum output.

5. Post production process should be done properly such as annealing,  tempering, etc to maintain its properties.

Network Access Protection (NAP) analyses the ________ of a computer.

Answers

Answer:

virus in a virus

Explanation:

Could you please check my answers to this layout user defined data types

Answers

movieStars = ['Carrie Fisher', 'Harrison Ford'] is a list. Dictionaries have curly braces not brackets.

movieCost = 4.95 is a float

movieRatings = {5:'language', 3:'violence'} as I stated previously, dictionaries have curly braces and lists have brackets.

movieAwards = ('Oscar', 'Golden Globe', 'Director's Guild') is a tuple

movieID = 132 is an int. Integers are whole numbers with no quotation marks.

movie = 'Star Wars' is a string. Strings have quotes around them.

Create a formula for sheet Inventory that highlights any rows where the Reorder level is below the On Hand level in yellow on excel 2016. Will mark brainliest if you can tell me how.

Answers

Answer:

Highlight the actual inventory level column and click on condition formatting, click on the drop-down button and select "Formula is" to input the formula "=B4 <= C4", select the color pattern to format the row if the condition is met and click ok.

Explanation:

Assuming the reorder level (column C4 and the on-hand level or actual inventory (column B starting at row 4) are columns in the Excel worksheet. The reorder level is the minimum level of inventory before inventory is populated. So the formula compares the value of the actual level with the reorder level, if any row is less than or equal to the reorder level, the row is formatted with the selected color.

Answer:

Highlight the actual inventory level column and click on condition formatting, click on the drop-down button and select "Formula is" to input the formula "=B4 <= C4", select the color pattern to format the row if the condition is met and click ok.

Explanation:

Is the willingness to put a customer’s needs above ones own needs and to go beyond a job description to achieve customer satisfaction

Answers

Answer:

customer-serious orientation

Explanation:

Customer-serious orientation can be defined as the willingness to put a customer’s needs above ones own needs and to go beyond a job description to achieve customer satisfaction.

This ultimately implies that, a customer-serious oriented business firm or company puts the needs, wants and requirements of its customers first without considering their own needs in a bid to satisfy and retain them.

Hence, customer-serious orientation requires the employees working in an organization to show and demonstrate positive attitudes and behaviors at all times.

Describe the main roles of the communication layer, the network-wide state-management layer, and the network-control application layer in an SDN controller.

Answers

Answer:

1.

Role of communication layer:

-it has the responsibility of transferring information among network controlled devices.

-it provides up to date view of the state of the network to SDN controller which shows that a new device has being added to the network as well as the link that was attached being non-existent.

2.

Role of network wide state management layer:

-it is responsible for the controller having the network's state information

-it also helps in the making of ultimate control decisions.

c

role of network control application layer:

- It is responsible for the reading and also the writing of the state of the network as well as flow tables which are in the layer of state management.

- It also notifies of changes such as state-event change. this helps to take actions with regards to the event notification.

A programmer must add 1 to the value stored in the int variable sum. One way is given to get you started. Write two more distinct ways to add 1 to the value stored in sum.

Answers

Answer:

option 1: sum++

option 2: ++sum

Explanation:

In programming, a variable a container or memory location assigned to a value. The C++ syntax specifies the memory location type of value on the declaration. The major types of variables in C++ are; integer, float, double, char, string, and boolean.

To add 1 to an integer variable, the variable value could be summed with one and assigned to that same variable or '++before' and 'after++' with adds one to the variable before and after the execution of a statement.

(Python)Write an expression using Boolean operators that prints "Eligible" if user_age is greater than 17 and not equal to 25.


Sample output with input: 17

Ineligible

Answers

user_age = input("Input Age: ")

if int(user_age) <= 17:

   print("Ineligible")

elif int(user_age) == 25:

   print("Ineligible")

else:

   print("Eligible")

:Here is some basic code.  It takes an input, turns it into an int type value, and checks the parameters that you gave me.  It errors out when you put in anything but a number.

Answer:

user_age = int(input())

if (user_age > 17) and (user_age != 25):

   print('Eligible')

else:

   print('Ineligible')

Explanation:

the code is very easy to do because it asks for it in Boolean operators.  So user_age = int(input()) ## asks for user input

then it checks the status by seeing if the number is greater than 17 and not equal to 25.  we know that > is greater and we know that != means not equal.  Therefore, this will rule out both and then give the eligible or ineligible statement.

Please Helpppp Me User Interface Design ensures that the interface has elements that are easy to ________________. (Choose all that apply)


Question 1 options:


a) access



b) understand



c) change location



d) remove



e) use to facilitate actions

Answers

Answer:

understand is the answer

HTML question please help

Answers

Answer:

background-color: (Color)

Explanation:

This is actually CSS coding, as you would code it like:

Body {

background-color: (Color)

}

Write the function powersOf3ToN(n) that takes a possibly-negative float or int n, and returns a list of the positive powers of 3 up to and including n. As an example, powersOf3ToN(10.5) returns [1, 3, 9]. If no such powers of 3 exist, you should return the empty list. You may not use loops/iteration in this problem.

Answers

Answer:

def powersOf3ToN(n):

   try:

       num = int(round(n))

   except (ValueError, NameError, TypeError):

       print("Parameter of the function must be integer or float")

       quit()

   num_list = range(num)

   val_list = [pow(3,x) for x in num_list if pow(3,x) in num_list]

   print(val_list)

powersOf3ToN(30)

Explanation:

The python code prints out a list of integer numbers that are equivalent to the power of three. The function accepts integer and floating numbers but not strings or it prints an error message and quits the program.

g P4. (5pts) IPv4 tunneling was introduced to solve this issue of forwarding IPv6 packets via IPv4 routers. Please explain how this mechanism works.

Answers

Answer:

In IPv4 tunneling, IPv6 packets are encapsulated in the IPv4 packets, adding a header comparing the source IP, the packet entry point to the tunnel and the destination point, as well as the exit point of the tunnel.

Explanation:

IPv6 is the latest version of the network address. They eliminate the exhaustion of addresses experienced in IPv4, but is it not used in all networks which makes it hard to communicate with other networks with IPv4 and with IPv6 addresses through IPv4 medium.

To avoid the needed to reconfigure other IPv4 networks to IPv6 and establish communication between the networks, IPv4 tunneling is used to transmit IPv6 packets from one IPv6 network to other IPv6 networks through the IPv4 transmission cables or mediums.

how do i change my desktop theme on my chromebook?

Answers

Answer:

open Chrome.

At the top right, click More. Settings.

Under "Appearance," click Themes. You can also go to the gallery by visiting Chrome Web Store Themes.

Click the thumbnails to preview different themes.

When you find a theme you'd like to use, click Add to Chrome.

Explanation:

Could someone help! I need to write a Python program based on Graphical User Interface.
The sum of the terms of an arithmetic progression and the identification of that value
with being “LESS OR EQUAL TO 50” or “GREATER THAN 50”
The program must have a program presentation window, containing at least one image and
two buttons, which will open other windows: one for data entry (the value of the first term,
reason and number of terms) and another for presentation by group members (credits). At
window for data entry (with another image), there will be a button that when pressed (clicked)
will show the calculated sum value and the identification of that value. This may appear in the same
(data entry) window.

Answers

Answer:

I can help with the code for performing the maths but the GUI aspect of it

During which part of the international

Answers

????

can you elaborate? I want to help you

Cloud vendors that are hosting hardware, operating system, database, and other software, which clients can then use to build their own applications, are said to be providing: _______

a. Software as a Service.
b. Hardware as a Service.
c. Platform as a Service.
d. Service Oriented Architecture.
e. Service Level Agreement.

Answers

Answer:

a. Software as a Service.

Explanation:

These Cloud vendors are said to be providing Software as a Service. This is because regardless of that the underlying specs are in regards to hardware, operating systems, database, etc. The vendor is selling a subscription to their cloud software which bundles all of these services together. Therefore, what they are ultimately providing is a Software that the individual can use as a service, and enjoy all of the included benefits/capabilities.

How does SQL allow implementation of the entity integrity and referential integrity constraints?

Answers

Explanation:

Entity Integrity

The Entity Integrity helps to ensure each row in a table to be a uniquely identifiable entity. For example, product ID column  of products table is a primary key for the table.

Entity integrity ensures any two properties for the primary keys. The primary key for a row is unique. The primary key is not null, no component of the primary key my be set tonal. This property is unique and the second property ensures that primary key has a meaning has a value.

Referential integrity

The Referential integrity make sure that the relationship between tables remains or data is inserted, deleted or even modified. It specifies that the value that appears in a certain relation for a given set of some attributes, it also appears for the certain set of attributes in some other relation.

Referential triggered actions:

The Referential integrity actions are mostly triggered by physical and not by logical, or updates to unique value.

System trigger implement referential integrity actions.

Best practices for designing an interface include being purposeful in page layout, think about defaults and making the interface complex.

Question 5 options:
True
False

Answers

True because they don’t have to like a lot more than you think you have to like that lol

10. In cell R8, enter a formula using the AVERAGEIF function to determine the average number of post-secondary years for students who have been elected.

Answers

Answer:

On cell R8, type in the formula  "=AVERAGEIF(M2:M31,"Elected",D2:D31)".

Explanation:

Microsoft Excel is a spreadsheet application developed by Microsoft as a part of the office package, used for statistical analysis of data. It has several tools used for this purpose.

The AVERAGEIF function is used to give the average of numeric column based on a condition. The formula above uses the word 'Elected' in the M column to calculate the average of numbers in the D column.

The formula to enter in cell R8 is =AVERAGEIF(M2:M31,"Elected",D2:D31)

The AVERAGEIF function is used to calculate the average of a range of numbers if a certain condition is true.

From the complete question,

The range is M2 to M31

The condition is to check is the students in range D2 to D31 have been elected

The syntax of the AVERAGEIF function

=AVERAGEIF(range,criteria,average_range)

So, the formula to enter in cell R8 is =AVERAGEIF(M2:M31,"Elected",D2:D31)

Read about Excel formulas at:

https://brainly.com/question/14299634

How do people make video games

Answers

Answer:

requieres a lot of hardcore coding

Explanation:

Google Slides is most similar to which of the following programs?
a
Adobe Photoshop
b
Microsoft Word
с
Microsoft PowerPoint
d
Microsoft Project

Answers

Answer:

Option C: Microsoft PowerPoint is the correct answer

Explanation:

Google slides is a tool to make presentations using different options like adding pictures, animations and videos. Microsoft office suite also provide a software for this purpose which is Microsoft power point.

Hence,

Option C: Microsoft PowerPoint is the correct answer

Answer:

the answer is c microsoft powerepoint

Explanation:

it just is

can a 3048 hp motherboard support a i7 10700k cpu?

Answers

Answer:

Yes

Explanation:

Answer:

yes it can

Explanation:

no need to explain

What is the purpose of an End User License Agreement?
to ensure that software users understand their rights and responsibilities
to ensure that software users understand how to use and install the program
to require users to erase installer files after a software migration project
to license users to make multiple changes to proprietary software

Answers

Answer: A. To ensure that software users understand their right and responsibilities

Explanation:

End-User License Agreements are vital for preserving the rights of the company owner/licensor. The correct option is A.

What is an End-User License Agreement?

End-User License Agreements are vital for preserving the rights of the company owner/licensor as well as outlining the terms of usage and controlling the end expectations of the user.

The purpose of the end-user license agreement is to ensure that software users understand their rights and responsibilities.

Hence, the correct option is A.

Learn more about the End-User License Agreement:

https://brainly.com/question/14681311

#SPJ2

Please help! I need to submit this quick!

Answers

Answer:

B, C, A

Explanation:

i think those are right

Which 4 methods allow clients to process digital payments from customers using QuickBooks Online Payments

Answers

Answer:

Debit and credit cards

eChecks using ACH Processing

Mobile apps and digital wallets

Pay-enabled invoices

Explanation:

Answer:running card through card reader, entering payment manually as a sales receipt, sending sales receipt to a customer via email, taking client payment via the Pay Now button in an email.

Explanation:

5.19 LAB: Exact change - functions
Write a program with total change amount as an integer input that outputs the change using the fewest coins, one coin type per line. The coin types are dollars, quarters, dimes, nickels, and pennies. Use singular and plural coin names as appropriate, like 1 penny vs. 2 pennies.

Ex: If the input is:

0
or less, the output is:

no change
Ex: If the input is:

45
the output is:

1 quarter
2 dimes
Your program must define and call the following function. The function exact_change() should return num_dollars, num_quarters, num_dimes, num_nickels, and num_pennies.
def exact_change(user_total)

Answers

Answer:

def exact_change(user_total):

    if user_total <=0:

         print("No change")

    else:

         num_dollars = int(user_total/100)

         user_total = user_total % 100

         num_quarters= int(user_total/25)

         user_total = user_total % 25

         num_dimes= int(user_total/10)

         user_total = user_total % 10

         num_nickels= int(user_total/5)

         num_pennies= user_total % 5

         if num_dollars >= 1:

              if num_dollars == 1:

                   print(str(num_dollars)+" num_dollars")

              else:

                   print(str(num_dollars)+" amountdollars")

         if num_quarters>= 1:

              if num_quarters== 1:

                   print(str(num_quarters)+" quarter")

              else:

                   print(str(num_quarters)+" quarters")

         if num_dimes>= 1:

              if num_dimes== 1:

                   print(str(num_dimes)+" dime")

              else:

                   print(str(num_dimes)+" dimes")

         if num_nickels>= 1:

              if num_nickels== 1:

                   print(str(num_nickels)+" nickel")

              else:

                   print(str(num_nickels)+" nickels")

         if num_pennies>= 1:

              if num_pennies== 1:

                   print(str(num_pennies)+" penny")

              else:

                   print(str(num_pennies)+" pennies")

           

user_total = int(input("Enter user_total Here:  "))

exact_change(user_total)

Explanation:

The explanation is long. So, I added it as an attachment.

Answer:

Written in Python:

def exact_change(user_total):

   num_dollars = user_total // 100 #convert to dollars

   user_total %= 100 #get remainder after conversion

   num_quarters = user_total // 25 #convert to quarters

   user_total %= 25 #get remainder after conversion

   num_dimes = user_total // 10 #convert to dimes

   user_total %= 10 #get remainder after conversion

   num_nickels = user_total // 5 #convert to nickels

   user_total %= 5 #get remainder after conversion

   num_pennies = user_total

   return(num_dollars, num_quarters, num_dimes, num_nickels, num_pennies)

if __name__ == '__main__':

   input_val = int(input()) #prompt user to input an integer

   num_dollars, num_quarters, num_dimes, num_nickels, num_pennies = exact_change(input_val) #recall exact_change function

   

   #define output statements to output number of exact_change variables:  

   #num_dollars, num_quarters, num_dimes, num_nickels, num_pennies  

   if input_val <=0: #if amount is zero

       print('no change') #print output

       

   else:

       if num_dollars > 1: #if number of dollars is greater than one

           print('%d dollars' % num_dollars) #print number of dollars

       elif num_dollars == 1: # if number of dollars equal 1

           print('%d dollar' % num_dollars) #print dollar in singular

       

       if num_quarters > 1: #if number of quarters is greater than one

           print('%d quarters' % num_quarters) #print number of quarters

       elif num_quarters ==1: # if number of quarters equal 1

           print('%d quarter' % num_quarters) #print quarter in singular

       

       if num_dimes > 1: #if number of dimes is greater than one

           print('%d dimes' % num_dimes) #print number of dimes

       elif num_dimes == 1: # if number of dimes equal 1

           print('%d dime' % num_dimes) #print dime in singular

           

       if num_nickels > 1: #if number of nickels is greater than one

           print('%d nickels' % num_nickels) #print number of nickels

       elif num_nickels == 1: # if number of nickels equal 1

           print('%d nickel' % num_nickels) #print nickel in singular

       

       if num_pennies >1: #if number pennies is greater than one

           print('%d pennies' % num_pennies) #print number of pennies

       elif num_pennies ==1: # if number of pennies equal 1

           print('%d penny' % num_pennies) #print penny in singular

Explanation:

It's really long, but it's necessary to get all the correct answers.

Other Questions
help me match these pleasee and explain! A chamber is divided into two halves by a non insulating movable partition. Air in one side is at a higher pressure than air in the other side. The partition is moved causing the higher pressure side to expand and the lower pressure side to contract. What is the sign, positive or negative, of the change in entropy for; the high pressure side, the low pressure side, and the total of the two Need help with this one PLEASE HELP ME WORH THIS How do you answer this? (this is for slopes.) The ratio of boys to girls in a class is 5:4. There are 36 students in the class. How many more boys than girls are there? how many solutions do the equations y=3x+4 and 3y-6x=2 have? Did early people move because they wanted to or because they had to? 10. Viruses and cells are different in many ways. In which of these ways are viruses and cells most similar?1. composition of outer covering2. composition of genetic material3. stages of reproduction4. stages of life cycle What is the x?? -19 = -2/3x YALL THIS IS SO FREAKING HARDWHAT DAY IS IT? Which type of front occurs when cold air and warm air are next to each other, but are at a standstill?warm frontstationary frontcold frontoccluded frontWhich is it? grade 6 science class, pls help me, thank u, I'm sure I'm the lowest grade on Brainly so yeah this would be easy for you lol. l m a o!!!! ;) thx A 90-day note issued on April 10 matures on: a. July 10. b. July 11. c. July 9. d. July 12. e. July 13. What is the equation of the line that passes through the point (3,-3)(3,3) and has a slope of 0? Write a paragraph of 6-8 sentences to give advice to your fellow peers about how they can balance their day to be productive and stress free. Juxtaposition is when two unlike things are positioned next to each other.Which of the following is an example of juxtaposition? What does the statement, "Excuse me. The women are the eyesight of Afghanistan, and unfortunately you all are blind. And I really want to give you some sight.'" mean? What was Jan saying to those that tried to stop her? Mi padre es un hombre _______. The central location of India at the head of the Indian Ocean is considered ofgreat significance. Why? PLEASE HELP!! WILL GIVE BRAINLIEST!! Identify the correct term for each definition.a. the bottom chamber of both sides of the heartb. the dome-shaped muscle at the base of the chest cavity that contracts and lowers to draw oxygen into the lungs then relaxes and lowers to push carbon dioxide outc. the liquid part of the bloodd. the protein that colors red blood cells and allows them to carry oxygen to the tissuese. the passageway out of the body for urinef. the top chamber of both sides of the heartg. the tube that carries food to the stomachh. the two branches of the windpipe that descend to the right and left lungsi. muscles that operate completely outside of conscious thoughtj. tiny blood vessels where pickup of wastes and delivery of oxygen and food takes place tiny filtering units in the kidneysk. a waste product that is made up of leftover parts of used proteins and is high in nitrogenl. urea and other waste substances that are collected in the bladder