Write program that inputs integers from keyboard

Assignment Help Programming Languages
Reference no: EM1361217

Write a program that inputs 20 integers from the keyboard and stores them in an array called A. You are then To:

1. Output the numbers in the original input order.

2. Output the numbers in reverse order.

3. Output the # of numbers that were input that are strictly between 17 and 35.

4. Input a number X, search the array to see if X appears in A. If it does, output a message so stating and then print out the subscript of each position in which X occurs, that is, print I whenever A(I) = X. If X never appears in A, then print a message so stating.

Reference no: EM1361217

Questions Cloud

Ecological and economic perspective : What impact does two (2) of your meals have on our world from an ecological and economic perspective. You can pick breakfast, lunch or dinner.
Show the equilibrium effects on consumption and hours worked : Show the equilibrium effects on consumption and hours worked of and increase in G of this type are ambiguous but that output increases.
What ambiguity exists in the statement : Suppose f is a function that returns the result of reversing the string of symbols given as its input, and g. What ambiguity exists in the statement x?
Find how many revolutions : A magnetic computer disk 8 cm in diameter is initially at rest. A small dot is painted on the edge of the disk. A small dot is painted on the edge of the disk. The disk accelerates at 600 rad/s^2 for 1/2 s , then coasts at a steady angular velocit..
Write program that inputs integers from keyboard : Write a program that inputs 20 integers from the keyboard and stores them in an array called A. You are then To: Output the numbers in the original input order.
What is the magnitude of the trains acceleration : assume a block of mass 25.0 kg rests on a horizontal plane, and the coefficient of static friction between the surfaces is 0.220. what is the actual static frictional force that acts on the block if an external force of 25.0 N acts horizontally on..
What is the distance between the point of first contact : A 1500kg car skids to a halt on a wet road where coefficient of friction = 0.46. How fast was car traveling if it leaves 68m long skid marks.
Protein vegetarians integrating diet : Imagine that you have decided to become a complete vegetarian, giving up all meat, poultry, and fish. Using what you know about food protein, use your first posting to describe how you plan to make sure you are getting all the required amino acids..
Express statements using quantifiers and logical connectives : Express each of these statements using quantifiers, logical connectives, and the predicates P(x), Q(x), R(x) and S(x). Does the fourth item follow from the first three taken together?

Reviews

Write a Review

Programming Languages Questions & Answers

  Use-professional translator in creting website-other country

When and why would you need to use the services of a professional translator to help prepare your website for an audience in another country?

  Program read weight of package of breakfast cereal in ounces

Write a program which will read the weight of package of a breakfast cereal in ounces and output weight in metric tons as well as number of boxes

  Methods to declare and initialize one dimensional arraay

What is an array? Show different methods to declare and initialize one dimensional array. Draw how an integer array of 6 elements having base address 5001 is stored in memory.

  Sequence of statements to find first comma in string line

Write a sequence of statements that finds first comma in String line , and assigns to variable clause portion of line up to, but not including the comma.

  Write program that uses recursive function to count number

Write a program that uses a recursive function to count the number of blobs in a square grid. Input to the program should consist of the locations of the asterisk in the grid.

  Pseudocode of program that will prompt user for number

Write pseudocode and flowchart for a program which will prompt user for a number, prompt the user for an operator (+,-,*,/), prompt the user for another number.

  Software system to manage records of patients

A software system is to be developed to manage the records of patients who enter a clinic for treatment. The records include records of the all regular patient monitoring.

  Create a main loop to accepts text commands

Using the ADT described in Dale p280-282, implement a FIFO Queue. Then create a main loop that accepts text commands as specified below and executes the appropriate FIFO queue functions.

  Display total amount owed in fixed-point notation

Enter your C++ instructions into a source file named Introductory11.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the total amount owed in fixed-point notation with two decimal places.

  Unix systems administration

Unix Systems Administration

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Write a shell script to read students first names

Write a shell script that reads 5 students' first names, last names and grades and then it calculates the average, maximum and minimum grade.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd