Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
C

chinkeymouse

@chinkeymouse
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help creating a Do-While loop
    C chinkeymouse

    Well,i'm glad to help you.It's my way to solve the problem.In my point,it's exactl solution.Thank you.

    Quote:

    //This program calculates a golfers handicap. #include #include using namespace std; int main() { int score, slope; double rating, handicap; string name; int time=1; cout << "This program calculates a golfer's handicap.\n"; cout << "Enter your name: "; cin >> name; cout << "Hello " << name << endl; //Have the user to input their name, score, slope, and handicap. do{ cout << "Please enter your score: "; cin >> score; cout << "Please enter the course slope: "; cin >> slope; cout << "Please enter the course rating: "; cin >> rating; //Calculate the golfers handicap handicap = (score-rating) * 113 / slope ; cout << "Your handicap is " << handicap << endl; time++; }while(time<=10); return 0; }

    C / C++ / MFC help learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups