id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

davereed@creighton.edu > smog
prev  |  next  |  chance

smog() - The SMOG (Simple Measure of Gobbledygook) Formula estimates the grade level of a document using the average number of complex words per sentence, where a complex word is considered to be any word of three or more syllables. The SMOG grade level is defined to be 1.043*sqrt(30*avgComplexWordsPerSentence) + 3.1291. You are given the number of sentences and the number of complex words in a document, and must calculate the SMOG grade level. The grade level should be rounded to the nearest integer.


smog(20, 20) → 9
smog(100, 200) → 11
smog(1, 0) → 3

...Save, Compile, Run (ctrl-enter)

public int smog(int numSentences, int numComplex) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy