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

  User-s ability to navigate the web site correctly

This can paralyze a user's ability to navigate the Web site correctly. Examples include opening new browser windows or using meta-refresh to force a page.

  Create child processes

Create child processes

  Class to create and draw five squares

Now write applet DrawSquares that uses your Square class to design and draw 5 squares. This code must be very simple.

  Estimate the storage space for telephone book

Estimate the storage space (number of bytes) required for each of the following items: A telephone book with 10,000 entries consisting of names, addresses and phone numbers. Use your phone book to estimate the average length of an entry.

  Write program to prompt user to enter string of caharacter

Write a program that prompts the user to enter a string of 87 characters the program should display the middle character in the string if there is an odd number characters in the string.

  Benefits of programming with objects and classes

How is it different from programming with functions alone? Write down benefits of programming with objects and classes in Web applications?

  Develop logic to accept number of passengers-zones as input

Develop the logic for a program that accepts the number of passengers and zones crossed as input. the output is the ticket charge.

  Program to print total balances forward and total withdrawal

At the end of report, print total balances forward, total deposits, total interest earned, total withdrawals and total final account balances.

  Write program to prompt for and accept current salary

Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases.

  Program to perform a search of an employee list

Write a /bash/bin program to perform a search of an employee list.

  Write a script to declares and sets variable

Write a script that declares and sets a variable thats equal to the total outstanding balance due. If that balance due is greater than $10,000.00.

  Creating a software package for amazon

Suppose you are creating a software package for Amazon.com that needs users to enter their own passwords. Your software requires that users' passwords meet the following criteria:The password should be at least six characters long.

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