Question: 1. Write a program to calculate approximate value of e, with following equation, input the value of n from the keyboard, e=1+1/1!+1/2+1/3+...1/n!. Keep 4

1. Write a program to calculate approximate value of e, with following equation, input the value of n from

1. Write a program to calculate approximate value of e, with following equation, input the value of n from the keyboard, e=1+1/1!+1/2+1/3+...1/n!. Keep 4 digits after the decimal point. 2. Input the scores of two courses which are JAVA and Mathematics from the keyboard, and output the corresponding level for both courses according to the following grading system: score: level 0-59: E, 60-69: D, 70-79: C, 80-89: B, 90-100: A 3. Print all the "narcissus numbers" in the range of 100-1000. The so-called "narcissus number" refers to a three-digit number, whose cube sum equals the number itself. For example, 153 is a "narcissus number" because 1^3 +5^3 + 3^3 = 153.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 Calculate the approximate value of e n intinputEnter the value of n ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!