Thread: super basic question

  1. #1
    Registered User
    Join Date
    Jun 2020
    Posts
    1

    super basic question

    Hi everyone- i am a beginner starting out with c++ and I am doing an assignment for the class im taking. The assignment was to write a program calculating the take home pay of an employee after taxes and other payments. When I built it, it didn't show any problems at all. The structure of the program I wrote was first asking the user for a weekly pay and then used that weekly pay to calculate money paid for each tax type, and eventually calculating the take home pay. Then, I knew that i had to write out the final numbers calculated, so i wrote out everything and it looks okay, but when i try and run the program all it does is show me the first question (what is the weekly salary?) and when i put in a number and press enter all it does is move on to the next row in the output screen. How do i make it so that the computer will do all of the calculations and then actually print them?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,163
    Post your code.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. some super basic questions ٩(-̮̮̃ -̃)۶
    By Minty in forum C# Programming
    Replies: 5
    Last Post: 05-24-2011, 11:00 AM
  2. super basic question about boolean evaluation
    By rodrigorules in forum C++ Programming
    Replies: 7
    Last Post: 02-20-2011, 04:48 AM
  3. Super Beginner Question
    By mrfredman in forum C Programming
    Replies: 5
    Last Post: 06-07-2007, 06:26 PM
  4. Super-New Question
    By Nascent_Grammer in forum C++ Programming
    Replies: 6
    Last Post: 04-10-2007, 11:18 AM
  5. super fast question
    By kimimaro in forum C Programming
    Replies: 6
    Last Post: 03-15-2005, 09:47 AM

Tags for this Thread