Touchdevelop- prompt for the accuracy value

Assignment Help Computer Engineering
Reference no: EM13753196

Write a mobile app (using TouchDevelop) that calculates the sum (which computes e×) of n + 1 terms as

sum = 1 + x/ 1! + /2! + / 3! + /4! + ...

Values x and n should be read (prompted to enter). Calculate each sequential term base on the previous one to get the best calculation performance (so, the next one = the previous term * (x / i) where i the current control variable - index). Don't use the math function. Use only one loop. The output should be in the table format as follows (remember to use the reverse wall order shown in class):

x = ?, n = ?

iteration # termValue sum
...
Example:

x = 1, n = 2

iteration # termValue sum

1 1 2

2 0.5 2.5

e× = 2.71828..., where x = 1

Each row corresponds to values in each iteration except the last row which should give the final result in the text box (see p.38 ch3 of our text [3] and also the last exercise in class). A very last line of the output should give the return value of e× from the formula exp(x : Number) : Number (see p.186 of our text).

Test for x = 1, n = 5 and n = 10 - the expected result should be better for n = 10 and you will expect the sum around 2.71828.... Next test for x = 2, n = 5, and n = 10.

Create a 2nd loop the sum s until the sequential term is less than accuracy. Prompt for the accuracy value. Test for accuracy 0.01, 0.001 and 0.0001. Provide a flowchart.

screenshots of at least four (4) sets of sample inputs (test cases). This time a flowchart is treated.

Reference no: EM13753196

Questions Cloud

Internet security and network neutrality : Compose an executive summary highlighting the paper's contents and reasoning for your chosen topic. Internet Security and Network Neutrality
Complexities of the us financial system : The U.S. financial system has many complexities, and it is impacted by several environmental factors, including federal regulations and the economy.
Analysis of operating activities : Explain the concepts of income measurement and their implications for analysis of operating activities Describe ways to analyze revenue and expense recognition and discuss possible risks for financial analysis
Businesses to engage in international business : 8. Create 3 businesses to engage in international business with your country. The first business should be an example of trade: describe a new, foreign firm in your country that is based on exporting or importing. The next 2 businesses should be exam..
Touchdevelop- prompt for the accuracy value : Create a 2nd loop the sum s until the sequential term is less than accuracy. Prompt for the accuracy value. Test for accuracy 0.01, 0.001 and 0.0001. Provide a flowchart.
Write paper on using quality control tools : Prepare a 3-page APA formatted paper on using quality control tools.
Compare john locke and rousseaus view of social contract : Compare and Contrast John Locke and Rousseau's views of the state of nature and the nature of the social contract. Which elements of human nature does each author stress?
Double-declining balance method : A machine which cost $300,000 is acquired on October 1, 2014. Its estimated salvage value is $30,000 and its expected life is 8 years. Calculate depreciation expense for 2014 and 2015 by the double-declining balance method. Show all figures used and ..
Describe what action the organization should take : Mark works for the Wonder Mattress Company in the IS department. He is in charge of looking at new technologies that come on the market and determining if they can be used for the company. A recommendation of what action the organization should tak..

Reviews

Write a Review

Computer Engineering Questions & Answers

  How many have to be recycled

The bolts have a mean diameter of 1.000 cm, normally distributed with standard deviation of 0.010 cm - a bolt and a hole are randomly selected from supplies of parts with these characteristics.

  Which is a method for copying a file or folder

Which of the following locations is not a valid place from that to delete a file and send it to the Recycle Bin.

  As a software engineer what are the means of tracking you

as a software engineer what are the means of tracking you would use to track and monitor the reuse history of a

  Questionlets make a discussion prevalence of project

questionlets make a discussion prevalence of project failure. think of or find cases of a project that didnt have the

  Design an entity relationship diagram

modify an Entity Relationship Diagram for the information content of your textbook.

  Call a unary language an arithmetic progression

Call a unary language an arithmetic progression if it is the set {\(x^{m+ni}\)} : i >= 0 for some m and n show that if a unary language is regular , then it is the union of a finite set and a finite number of arithmetic progressions

  What information can be brought to bear

We do know that the client has an advertising plan and budget in place where in he is presently spending 5% on creation of ad and 95% on airing of the commercial. It has been seen that the quality of advertise designing is falling and not upto the..

  Create an application that declares objects of each kind

make a Building class and two subclasses, House, and School. The Building class contains fields for square footage and stories. The House class contains additional fields for number of bedrooms and baths.

  Comprise any information which you think will be useful in

as a network manager in a medium-size corporation it is your responsibility to use a proactive approach to providing

  Make a form with a text property of friends

On the Entry tabPage add 4 textboxes to take entry for a first name, last name, birth month, and birthday and add a MaskedTextbox to take entry for a phone number formatted as 999-9999.

  How many hour work each week to pay for gas to fuel the car

As a part time student and a part time worker, you earn $4.50 an hour. Your parents would buy you a used car, but you must pay for the gas. gas costs $1.10/gallon and you use 20 gallons/week. How many hours will you work each week to pay for the g..

  Demonstrate three multimedia applications

The seminar mentions that many tools already exist for deployment of multimedia applications such like (Camtasia, Blender and Paint.NET). Select such a tool, present its uses, advantages and limitations. Demonstrate three multimedia applications t..

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