Write a ruby program with the following specification

Assignment Help Programming Languages
Reference no: EM13951792

Write a Ruby program with the following specification:

Input: A list of numbers from the keyboard.

Output: The second smallest number in the list, along with its position in the list, with 1 being the position of the first number.

Reference no: EM13951792

Questions Cloud

What is the aftertax cost of debt based : What is the aftertax cost of debt based on the following information: Bond Price: -895 Coupon Pmt: $45 per period, paid semi-annually Maturity: 9 years Tax Rate: 40%
How far out along the high wire did he walk : A circus performer begins his act by walking out along a nearly horizontal high wire. He slips and falls to the safety net, 25.0 ft below. The magnitude of this displacement from the beginning of the walk to the net is 26.7 ft. (a) How far out alo..
Example of effective branding : Conduct research and present to the class an example of effective branding. Was it an example ofprivate branding, generic branding, manufacture branding? Do you think that the company targeted a specific consumer group?
What is the accounting break-even point : Night Shades Inc. (NSI) manufactures biotech sunglasses. The variable material cost is $1.15 per unit, and the variable labor cost is $2.07 per unit. What is the variable cost per unit? Suppose NSI incurs fixed costs of $670,000 during a year in whic..
Write a ruby program with the following specification : The second smallest number in the list, along with its position in the list, with 1 being the position of the first number.
Degrees of freedom affect a chi-square distribution : Using a data set of 40 LDL cholesterol levels of women, we get a 95% confidence interval estimate: 916.591
Calculate your profit if the exchange rate rises : Suppose your company imports computer motherboards from Singapore. The exchange rate is currently 1.5136 S$/US$. You have just placed an order for 37,000 motherboards at a cost to you of 231.10 Singapore dollars each. Calculate your profit if the exc..
Explain and describe marxist critical theory : In at least a one-page, single-spaced Word document, explain and describe Marxist Critical Theory
Describe how the securities industry is regulated : How could the Internet help you to research an investment? Describe how the securities industry is regulated. What are four general sources of funds?  Audit standards require the auditor to consider the combined amount of misstatement early in the au..

Reviews

Write a Review

Programming Languages Questions & Answers

  Estimate probability of default for a credit application

What would you suggest as the target variable and what would you recommend that Joe do to achieve his business goal?

  Describe how to create users for sales organization unit

Describe how you would create users for sales organization unit and how you can set up user groups in this particular situation (global, universal, domain local).

  Use three or more dimensions in the array

1. Come up with an idea of an array that would use three or more dimensions (such as year, month, and day). Present the idea with a brief introduction. 2. Discuss what information would be stored at different locations in the array.

  Derive the cube class from the base square class.

In your derived class have the default values for side be 1. For the cube class include a public function calcVal that evaluates the volume of the cube. (Hint: The volume of the cube is side * square :: calcVal.)

  Confi gure the repository and define the repository

Configure the repository and define the repository usernames and passwords - Install the subversion package.

  Write the lisp functions

Write the subsequent LISP functions, add2, add5 and double, if they executed will produce the following results:

  Create application which permits user to input a price

Create an application which allows a user to input a price until suiatble sentinel value is entered. Output is a price of each item on each day,one through seven.

  Write program for real estate agent

Write a program for a real estate agent. The program should perform the following tasks: ask users for the average house price for the each of past 5 years for a single family residence of 1500 square feet.

  Write a program with a windows-style interface

write a program with a Windows-style interface to carry out the task. A form contains two text boxes and one large label between them with no preset caption. When the first text box receives the focus, the label reads "Enter your full name.

  Add a new customer to the database.

Find the total number of people whose cars were involved in accidents in 1989.

  Program to calculate monthly gross pay for super supermarket

Owners of Super Supermarket would like to have program which calculates monthly gross pay of their employees. Input for this program is employee ID number, hourly rate of pay.

  Write program to calculate distance and time hurricane take

Write C++ program that will calculate the distance and time it will take (days/hours) for hurricane to reach Ft. Lauderdale if: Hurricane is at coordinates 16 N, 64 W, just SE of South Fla. off in Atlantic, with a speed of 20 mph.

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