JAVA dan anlayan biri bakabilirmi

pastella82

Banned
Katılım
19 Şub 2009
Mesajlar
1,495
Reaction score
0
Puanları
0
Lab 08 for Thursday Labs (Sections 02 & 04)
Part (a)
Problem:
The approximation for sin (x) is the series sin(x) =  x - x3 / 3! + x5 / 5! - x7 / 7! + x9 / 9! -x11 / 11! ...
Write a program to compute the series for n terms. Note that x and n are input values. Compare your result with Math.sin(x).
Sample execution:
degree in radians: 0.8
How many terms do you want (must be positive): 33

    Sine at 0.8 is     0.7173560908995229 approximately for the first 33 terms and
                            0.7173560908995228 by Math class.
Part (b)
Problem:
Given an input string, find and display
the number of occurences of the letter 'i' (case-insensitive)
the number of digits (characters '0' through '9' in the string)
the string without any digits in it 
Sample execution:
Type the text and press enter:
My name is Ozlem. My birthday is on 2nd of December. I live in Ankara. My phone number is 1234567.
The number of eyes is 7
The number of digits is 8
The text without digits is
"My name is Ozlem. My birthday is on nd of December. I live in Ankara. My phone number is ."


Arkadaşlar bunun java da yazılması lazım cok acil yardımcı olursanız sevinrim ..
bi kardeşimizin ödevi
 
Geri
Üst