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

  What ethical social and political issues arise with the use

information is data that is framed in a specific context. in this sense information is contextual data that has a level

  Create a sql query that returns the names of the students

Write down a SQL query that returns the names of the students (lname, fname), and the major of the major with most students. If more than one major is tied for most students, then list all the names of the students from both majors (as well as the..

  Suppose that the user will enter only a single digit

suppose that the user will enter only a single digit. Write down C program to display in words what number is entered when a single digit is entered.

  Using the argosy university online library resources and

information technology evolves rapidly and businesses must stay abreast of that evolution in order to remain

  Feedback the smartphone gives to you

Write down each interaction between you and your smartphone as a case - Record all the interactions, adding any feedback the smartphone gives to you.

  Questionproblem 1using java development kit and jgrasp

questionproblem 1using java development kit and jgrasp develop a program in response to following prompt-write down a

  Design appropriate it infrastructures to manage data

In the unlikely event of any discrepancy between the Academic Regulations and any other publication, including this module guide, the Academic Regulations, as the definitive document, take precedence over all other publications and will be applied..

  What is an important port near you what comes into this

the paper is to be at leastnbsp4 pages excluding the title page and bibliography. apa is to be used in citations.

  Questionwrite down a function that creates a cell array and

questionwrite down a function that creates a cell array and structure array and populate them with data about element

  Data storage problem in the database tables

You must select the data storage problem of your interest and recognize the different pieces of the data which must be stored within the database.

  Examine the challenges of developing applications that run

assess the effectiveness and efficiency mobile base applications provide to capture geolocation data and customer data

  Define the cost per student for each class

Using the data below, create and populate a course table. Designate the CourseID field as a "Primary Key" and allow your database to automatically make a value for this field. Designate the "Technical" field type as "Yes/No" (Boolean).

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