ratio |
||||
|
||||
|
|
||||
![]() ![]() |
Здравейте,
може ли някой да ми каже как да изчисля ratio-то, това е програмата: Use a 'driver' class(TextAnalyzerTest) containing main() whose purpose should beto instantiate an object of a another class called TextAnalyzer. The object's instance methods should be called from main() to access and process the text. The text should be read either from keyboard input or (better) from a text file and its string length should be no greater than 500 characters. Amongs other methods you may wish to develop, your program should include 5 methods which count a) number of printable characters (including symbols such as apostrophes etc.), b) number of consonants, and e) frequeny of each vowel. Methods a)-d) should return a single statistical count, whilst method e) should return (or update) an array. Once all methods are assembled in your program, use the data to derove and print to the screen the following statistics; i) string length ii) ratio of printing to non-printing characters iii) ratio of vowels to consonants and iv) a list of the frequency with which each vowel appears in the string as a percentage of the number of printing characters. |
|||
|
---------------------------
Потребител от: 02.05.06 | Всички уроци от Lord4eto | Всички скриптове от Lord4eto ---------------------------------------------------------- As you well know, appearances can be deceiving... ...which brings me back to the reason why we're here. We're not here because we're free. We're here because we are not free. |
||||
|
|
||||
|
||||
|
|
||||
![]() ![]() ![]() |
Цитат от Lord4eto@14.08.2008 22:06: Здравейте,може ли някой да ми каже как да изчисля ratio-то, това е програмата: Use a 'driver' class(TextAnalyzerTest) containing main() whose purpose should beto instantiate an object of a another class called TextAnalyzer. The object's instance methods should be called from main() to access and process the text. The text should be read either from keyboard input or (better) from a text file and its string length should be no greater than 500 characters. Amongs other methods you may wish to develop, your program should include 5 methods which count a) number of printable characters (including symbols such as apostrophes etc.), b) number of consonants, and e) frequeny of each vowel. Methods a)-d) should return a single statistical count, whilst method e) should return (or update) an array. Once all methods are assembled in your program, use the data to derove and print to the screen the following statistics; i) string length ii) ratio of printing to non-printing characters iii) ratio of vowels to consonants and iv) a list of the frequency with which each vowel appears in the string as a percentage of the number of printing characters. Искаш превод така ли ? |
|||
|
---------------------------
Потребител от: 24.06.08 | Всички уроци от westony | Всички скриптове от westony http://sig.garena.com/1462486.png |
||||
|
|
||||
|
|
||||
![]() ![]() |
Цитат от westony@15.08.2008 10:39: Цитат от Lord4eto@14.08.2008 22:06: Здравейте,може ли някой да ми каже как да изчисля ratio-то, това е програмата: Use a 'driver' class(TextAnalyzerTest) containing main() whose purpose should beto instantiate an object of a another class called TextAnalyzer. The object's instance methods should be called from main() to access and process the text. The text should be read either from keyboard input or (better) from a text file and its string length should be no greater than 500 characters. Amongs other methods you may wish to develop, your program should include 5 methods which count a) number of printable characters (including symbols such as apostrophes etc.), b) number of consonants, and e) frequeny of each vowel. Methods a)-d) should return a single statistical count, whilst method e) should return (or update) an array. Once all methods are assembled in your program, use the data to derove and print to the screen the following statistics; i) string length ii) ratio of printing to non-printing characters iii) ratio of vowels to consonants and iv) a list of the frequency with which each vowel appears in the string as a percentage of the number of printing characters. Искаш превод така ли ? Мисля че съм написал "как да изчисля ratio" а не превод :) |
|||
|
---------------------------
Потребител от: 02.05.06 | Всички уроци от Lord4eto | Всички скриптове от Lord4eto ---------------------------------------------------------- As you well know, appearances can be deceiving... ...which brings me back to the reason why we're here. We're not here because we're free. We're here because we are not free. |
||||
|
|
||||
|
|
||||
![]() ![]() |
Здравей. Ratio означава отношение. От математиката отношение е просто сравнява чрез деление на двете стойности, за които трябва да сметнеш. В едно от условията трябва да изчислиш отношението между гласни и съгласни. Примерно, ако имаш 10 гласни и 5 съгласни, ratioto e 10:5.Но и двете числа се делят на 5. Делиш и получаваш ratio 2:1. На всяка съгласна се падад по 2 гласни. Отношението може да се представи и с десетична дроб. Например за 7 гласни и 3 съгласни , като разделиш се получава отношение 2,33.... гласни на една съгласна. Иска се да преброиш, гласни и съгласни и да направиш това деление. Успех!
|
|||
|
Това мнение е редактирано от Vikito на 19.08.2008 01:15
---------------------------
Потребител от: 13.12.07 | Всички уроци от Vikito | Всички скриптове от Vikito |
||||
|
|
||||
|
|
||||
![]() ![]() |
Цитат от Vikito@19.08.2008 00:35: Здравей. Ratio означава отношение. От математиката отношение е просто сравнява чрез деление на двете стойности, за които трябва да сметнеш. В едно от условията трябва да изчислиш отношението между гласни и съгласни. Примерно, ако имаш 10 гласни и 5 съгласни, ratioto e 10:5.Но и двете числа се делят на 5. Делиш и получаваш ratio 2:1. На всяка съгласна се падад по 2 гласни. Отношението може да се представи и с десетична дроб. Например за 7 гласни и 3 съгласни , като разделиш се получава отношение 2,33.... гласни на една съгласна. Иска се да преброиш, гласни и съгласни и да направиш това деление. Успех! |
|||
|
---------------------------
Потребител от: 02.05.06 | Всички уроци от Lord4eto | Всички скриптове от Lord4eto ---------------------------------------------------------- As you well know, appearances can be deceiving... ...which brings me back to the reason why we're here. We're not here because we're free. We're here because we are not free. |
||||
|
|
||||
Още по темата:
php форум,
flash форум,
html форум,
it форум,
seo форум,
vista форум,
pc форум,
css форум,
java форум,
mysql форум,
дизайн форум












