Ask Experts Questions for FREE Help !
Ask
    andyhaus1057's Avatar
    andyhaus1057 Posts: 98, Reputation: 1
    Junior Member
     
    #1

    Jul 27, 2009, 07:06 AM
    If-Then-Else statements
    How would I display an If-Then-Else statement that determines whether the points variable is outside the range of 9 to 51. If the variable holds a value outside this range it should display “Invalid points.” Otherwise, it should display “Valid points.”
    karilynngodd's Avatar
    karilynngodd Posts: 10, Reputation: 2
    New Member
     
    #2

    Oct 17, 2010, 11:20 AM
    Hope you found the answer by now but here is what the pseudocode looks like :)


    //This program is to determine whether the points are valid

    //Declare variables
    Declare real points

    //Get the number of points
    Display “Enter the number of points.”
    Input points

    //Determine if the number of points is valid
    If points < 9 and points > 51 Then
    Display “Invalid points”
    Else
    Display “Valid points”
    End If
    karilynngodd's Avatar
    karilynngodd Posts: 10, Reputation: 2
    New Member
     
    #3

    Oct 17, 2010, 11:21 AM
    Woah... that didn't turn out right like it was supposed to.

    The ” are supposed to be quotation marks sorry

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

If-then-else statements [ 2 Answers ]

How would I go about designing an If-Then-Else statement or a flowchart with a dual alternative decision structure) that assigns 0 to the variable b if the variable a is less than 10? Otherwise, it should assign 99 to the variable b.

Financial Statements [ 4 Answers ]

What do financial statements tell about a company? How do you read them?

Finicial statements [ 1 Answers ]

I've been asked to analyse finicial statements for an assignment. I wonder if I'm meant to comment on the share capital, shareholding ownership, number of shares, etc. If so what does this stuff mean, and how do I tackle it. Please help

Financial Statements [ 1 Answers ]

Who are the internal and external users of a company’s financial statements?

Old bank statements [ 2 Answers ]

Can I get old bank statements from my bank?


View more questions Search