Computer Science Homework Solutions
Problem
#9023

Bernoulli numbers VBA program

This is from an old final. I would like to see what it would look like to know what is to come in the class.

Attached file(s):
Attachments
Practice problem 6.doc  View File

Attachment Content Summary (Note: view attachment at the above link before purchasing. Actual attachment content may vary slightly from that shown below.)

Practice problem 6.doc
Even Bernoulli numbers can be generated by the following formula:

……]

Write a VBA program to evaluate the first 7 even Bernoulli numbers.
Use a for loop in your main program to define which Bernoulli number you
are generating. Within this loop call a subprogram to carry out the
actual evaluation. Return the answer to main and display it from there.
Continue evaluating a particular Bernoulli number until a series term
is less than 0.5e-6 or you have evaluated 20 terms.

Input the number of Bernoulli numbers to evaluate, the tolerance, and
the maximum number of terms from an input file. Echo these input values
through message box and to an output file. Other output should include
the number of Bernoulli number, its value, the number of terms used, and
the value of the last term.
Solution
What is this?
By OTA - Overall OTA Rating
Shawn Laliberte - 4.8/5
Purchase Cost Now
$2.19 CAD (was ~$23.94)
Included in Download
  • Plain text response
  • Attached file(s):
    • 9023sol.xls
    • ebfilein.txt
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • .java program - (Rectangle Class) Create a class Rectangle. The class has attributes length and width, each of which defaults to 1. It has methods that calculate the perimeter and the area of the rectangle. It has se ...
  • Java Address program with 3 classes - Implement a class called ShortAddress that has the following attributes: firstName, secondName, and phoneNumber. Then implement a class called FullAddress that inherits the above attributes while ...
  • C++ Input/Output - /*Note this is a practice exercise from my textbook and I'd like to see a working program and follow the steps to complete a similar exercise to turn it (Keep in mind I'm a beginner at C++ so use the ...
  • Program for generating perfect numbers - program for perfect numbers, i need to know how to write this program
  • Program in Java which defines two unconstrained arrays of user defined length - Write a program in Java which defines two unconstrained arrays of user defined length n, that contain n Random numbers each and which outputs the addition of pairs of elements. For example, given {1, ...
Browse