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 statements
    How would I write an If-Then statement that sets the variable hours to 10 when the flag variable minimum is set?
    Bhaskar P U's Avatar
    Bhaskar P U Posts: 21, Reputation: 4
    New Member
     
    #2

    Jul 27, 2009, 07:17 AM

    1 Declaretwo variables To hold flag and hour
    2 Declare Integer flag
    3 Declare Integer Hour
    4 prompt user to set the flag
    5 Display "Set The Flag Amount"
    6 input flag
    7 If IsMinimum(Flag) Then
    8 Hour=10
    9 End If
    karilynngodd's Avatar
    karilynngodd Posts: 10, Reputation: 2
    New Member
     
    #3

    Oct 17, 2010, 11:54 AM
    //Declare variables
    Declare Boolean minimum
    Declare real hours

    If Set minimum = true Then
    hours = 10


    That is what I got but if its not right please someone let me know... it seems too easy to be right

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?

If-Then-Else statements [ 2 Answers ]

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.”

Income Statements [ 3 Answers ]

Does this one make sense to anyone? The Sally Corporation's income statement is given below. Sally Corporation Sales…………………………………$250,000 Cost of Goods Sold………………….. 145,000 Gross Profit……………………………105,000 Fixed Charges (other than interest)…… 25,000 Income before interest and...

Financial Statements [ 1 Answers ]

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


View more questions Search