Write a mobile app

Assignment Help Basic Computer Science
Reference no: EM13753667

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.

Reference no: EM13753667

Questions Cloud

What problems nation experience in articles of confederation : What problems did the new nation experience under the Articles of Confederation? Why did these problems develop?
Compare and contrast the major determinants of healthcare : Analyze the current health care delivery structure in your state. Compare and contrast the major determinants of healthcare market power.
How do commercial banks and federal banks create money : What are the uses of money? How do commercial banks and Federal banks create money? Is monetary policy conducted independently in the United States? Explain your answer. Is it important for monetary policy to remain independent from all parties? W..
Write a paper about rise of islamic empires : Write a paper about rise of Islamic Empires and expansion of Europe into these Islamic Empires.
Write a mobile app : Write a mobile app (using TouchDevelop) that calculates the sum (which computes e×) of n + 1 terms as
How do effects of tariffs differ from effects of quotas : Who gains and who loses from a tariff? How do the effects of tariffs differ from the effects of quotas? If you were a small country, what would you rather utilize? 200 word answer
What are visitors really buying : What is Las Vegas selling? What are visitors really buying? Discuss these questions in terms of the core benefit actual product, and augmented product levels
Write the subsequent demand equation : Write the subsequent demand equation, with Qd as the dependent variable; Price, Advertising, Product Development, and Rel Price as the independent variables - Classify the relationship between these products as complements or substitutes. The form..
Briefly define lyndon b johnsons idea of the great society : Briefly define Lyndon B. Johnson's idea of "The Great Society" and then discuss the controversy over it.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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