We use cookies to give you the best experience possible. By continuing we’ll assume you’re on board with our cookie policy

The Last Ride Together Essay Sample

essay
The whole doc is available only for registered users OPEN DOC

Get Full Essay

Get access to this section to get all help you need with your essay and educational issues.

Get Access

The Last Ride Together Essay Sample

Question 1:

Write a program to input a start limit S (S>0) and the last limit L (L>0). Print all the prime triplets between S and L (both inclusive), if S<=L otherwise your program should ask to re-enter the values of S and L again with a suitable error message.

Algorithm:
* Start
* To input the lower limit
* To input the upper limit
* To run the outer loop
* To run inner loop
* To calculate total number of prime numbers between lower and upper limits
* To declare array with it’s number of elements as ‘s’
* To run the outer loop
* To run the inner loop
* To store the prime numbers in array a[]
* To run a loop for every position of array a[]
* If condition matches for the number for prime triplets
* Continue till all Prime Triplets are printed

Question 2:

A unique digit integer is a positive integer (without leading zeros) with no duplicate digits. For example 7, 135, 214 are all unique digit integers whereas 33, 3121, 300 are not. Given two positive integers m and n, where m<n, write a program to determine how many unique digit integers are there in the range between m and n (both inclusive) and output them.

Algorithm:

* Start
* To input the starting limit
* To input the last limit
* To run the outer loop
* To store the value of ‘i’ as a string
* To run the inner loop
* To run a nested loop of the inner loop
* To check for repetition of any digit in the number
* To store all the unique digit integers in a string
* To store the frequency of unique digit integers
* To print the unique digit integers and their frequency

Question 3:

Write a program which inputs Natural numbers N and M followed by integer arrays A[ ] and B[ ], each consisting of N and M numbers of elements respectively. Sort the arrays A[ ] and B[ ] in Ascending order of magnitude. Use the sorted arrays A[ ] and B[ ] to generate a merged array C[ ] such that the elements of A[ ] and B[ ] appears in C[ ] in Ascending order without any duplicate elements. Sorting of array C[ ] is not allowed.

Algorithm:

* Start
* To enter the limit of first array (<21)
* To enter the limit of the second array (<21)
* To run a loop
* To enter the two arrays
* To sort the two arrays using bubble sort technique
* To copy the two arrays into a single array
* To sort the merged array using bubble sort technique
* To run a loop
* To print the elements of the i-th position
* To go to the next index of the next number

Question 4:

Write a program to input and store n integers (n > 0) in a single subscripted variable and print each number with their frequencies of existence. The output should contain number, asterisk symbol and its frequency and be displayed in separate lines.

Algorithm:

* Start
* To enter capacity
* To enter the numbers in an array
* To run outer loop
* To run inner loop
* To sort the numbers in the array
* To run outer loop
* To run inner loop
* To transfer the values of the array in another array
* To check frequency and print

Question 5:

Write a program to input an arithmetic expression in String form which contains only one operator between two numeric operands. Print the output in the form of number. ( If more than one operators are present, an error output message “ INVALID EXPRESSION” should appear).

We can write a custom essay

According to Your Specific Requirements

Order an essay

You May Also Find These Documents Helpful

Numerical Methods

The place in which the graph of a line crosses the x axis is known as the root of the equation. It is not always possible to find the solution of an equation by algebraic or analytical methods such as factorising. This applies to equations such as y=3x3-11x+7. To solve equations such as these, numerical methods such as change of sign, x=g(x) and Newton-Raphson can...

Decimal Search

In maths equations can be solved using various methods. A very common and efficient method in solving equations is algebraically. But not all equations can be solved algebraically; these equations must be solved using numeric methods. I will study three specific numeric methods on different equations. ~ Change of sign, decimal search process. ~ Newton-Raphson method. ~ Re-arrangement method. I will be testing the numeric...

Maths Coursework: Curve Fitting

I was firstly given the task of finding the equation of the quadratic graph which passes through the points (5,0), (3,0), (0,15). To solve this I began by drawing a rough sketch of what I thought the graph would look like with these points, as below: (0,15) (3,0) (5,0) I worked out that the graph would look like this, and next I worked out the...

Significant Study

This study aims to propose an intervention program covering the secondary mathematics subject. The academe, both faculty and students, shall benefit through having a guided program to increase the quality of the mathematics teaching-learning process. administrators and the university itself will also benefit once the proposal had been approved, executed and positively assessed, producing competent students, thus encouraging more patrons who seek for quality education....

Supreme Mathematics

1. Knowledge-the sum of what is known. knowledge is facts, awareness or familiarity gained by doing the knowledge. Who is knowledge? It symbolizes the black man. When can you knowledge? Anytime. Where? Everywhere. How is knowledge gained? Through study, learning, listening, trial and error, observing, reflection 2. Wisdom-who is wisdom? Symbolizes the woman. What is wisdom? Wisdom is wise actions, ways and words. Good judgment...

Get Access To The Full Essay
icon
300+
Materials Daily
icon
100,000+ Subjects
2000+ Topics
icon
Free Plagiarism
Checker
icon
All Materials
are Cataloged Well

Sorry, but copying text is forbidden on this website. If you need this or any other sample, we can send it to you via email.

By clicking "SEND", you agree to our terms of service and privacy policy. We'll occasionally send you account related and promo emails.
Sorry, but only registered users have full access

How about getting this access
immediately?

Become a member

Your Answer Is Very Helpful For Us
Thank You A Lot!

logo

Emma Taylor

online

Hi there!
Would you like to get such a paper?
How about getting a customized one?

Couldn't Find What You Looking For?

Get access to our huge knowledge base which is continuously updated

Next Update Will Be About:
14 : 59 : 59
Become a Member