Не сте регистриран! Регистрирайте се БЕЗПЛАТНО, за да използвате услугите на сайта!

Нова тема
ratio
Тази тема е погледната 396 пъти
Добави темата към любими | Принтирай темата | Нова тема 
Публикувано на: 14.08.2008 22:06
Lord4eto
Чирак

Мнения: (8)

Здравейте,
може ли някой да ми каже как да изчисля 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.
напиши eMail напиши лично съобщение виж профила на Lord4eto
Публикувано на: 15.08.2008 10:39
westony
Самурай

Модератор

Мнения: (186)

Цитат от 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
напиши eMail напиши лично съобщение виж профила на westony
Публикувано на: 15.08.2008 14:40
Lord4eto
Чирак

Мнения: (8)

Цитат от 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.
напиши eMail напиши лично съобщение виж профила на Lord4eto
Публикувано на: 19.08.2008 00:35
Vikito
Калфа

Мнения: (12)

Здравей. 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
напиши eMail напиши лично съобщение виж профила на Vikito
Публикувано на: 19.08.2008 05:37
Lord4eto
Чирак

Мнения: (8)

Цитат от 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.
напиши eMail напиши лично съобщение виж профила на Lord4eto
 1 посетител чете тази тема (0 потребители и 1 гост)  
Активни потребители: ---
   





IT-PLACE.NET © 2004 - 2008