What possible values can a boolean variable hold

Assignment Help Programming Languages
Reference no: EM131324220

Programming Logic and Design Questions

1 given the following pseudocode module header: module calculate something (real x,real y, real z,) when the following call executes: call calculate something (21.6, 43.1, 15.2) show what is the value of z,then the value of x, then the value of y. Write your answer as follows, z value is -----------,x value is ----------------,y value is ---------

2. what does the following pseudocode display on the computer screen? remember the + sign is used to append.

Module main ( )

declare integar A = 10

declare string Hello = "Hi,there"

Output hello + ","+ A

call morphymodule (hello,A)

Output hello +",+ A

end module

module morphmodule (string one, integer two)

set one = "goodbye"

set two = 50

output one + "," + two

end module

write each output to the display on separate lines.

3. Write a structure that assigns the value of "low" to the variable named pressure if the variable bloodpressure is less than 68 and it assigned "not low" to pressure if it is 68 or above.

Then display the result to the screen with a message that tells the user: your blood pressure is" and then the value. Just create the pseudocode for the structure, not the whole program. Put a; after each line of code so I can easily parse the statements in a word processor.

4. Write a simple pseudocode line that tests for the condition of an variable called num between the values of 60 and 70 ( Inclusive of those 2 values) that will result in a value of true if the number falls in the range.

5. What possible values can a Boolean variable hold?

6. Examine the following code and explain what is wrong with it .If 59 then output" The value is outside the valid range" end if.

Reference no: EM131324220

Questions Cloud

Atlantis fisheries issues zero coupon bonds : Atlantis Fisheries issues zero coupon bonds on the market at a price of $462 per bond. Each bond has a face value of $1,000 payable at maturity in 12 years. What is the yield to maturity for these bonds?
Marketing mix will change with phase in product life cycle : Use the same product and organization you identified in your Week 3 Strategy and Positioning Analysis. Describe how your marketing efforts and marketing mix will change with each phase in the product life cycle?
What is the operating cash flow : Enter your answer rounded off to two decimal points. Do not enter $ or comma in the answer box. For example, if your answer is $12.345 then enter as 12.35 in the answer box.
Show that all the eigenvalues of a unitary matrix : Prove that the magnitude of determinant of a unitary transform is unity. Also show that all the eigenvalues of a unitary matrix have unity magnitude
What possible values can a boolean variable hold : What possible values can a Boolean variable hold? Examine the following code and explain what is wrong with it .If 59 then output" The value is outside the valid range" end if.
Interventions to developmental needs from childhood : Follow a person with this chronic illness through the lifespan, discussing how treatment approaches would be adapted to the development and growth of this individual. Note also the possible negative effects of not adjusting our interventions to th..
Transcription factors important for muscle development : What are the transcription factors important for muscle development? i.e. There are different steps to get a muscle fiber, what are the transcription factors that are important for these steps?
Develop a computer program that determines shipping costs : Develop a PAC and flowcharts for a program that does the warehousing company has contracted you to develop a computer program that determines shipping costs for items by size.0
Borrow the money from the credit union : James and Corrine are considering what to do about purchasing a new car. They plan to acquire a new 2016 Toyota Highlander. The dealer quotes a price of $40,000 with the options they want. They have choices: Lease, Buy with a zero interest loan from ..

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a program to transfer copy 400 bytes

Write a program to transfer (copy) 400 bytes from a block starting at $1000 to another block starting at $1500 in Assembly language

  Create a package called my complete system

Author a new class within your newly created package called MySystemGui. In this class, you need to extend the JFrame class and implement the appropriate listeners so that your system will work.

  What will the following program segments display

What will the following program segments display

  Measure the number of iterations of the inner loop

Let i measure the number of iterations of the inner loop of B3 and B4 (which count of iterations we cannot know), and let j measure the number of iterations of the outer loop (which we also cannot know). What is gj ?

  Write a standalone method named count_letters

Write a standalone method named count_letters that returns the number of occurrences of a specified letter lines in an input string

  Complete a request for system services

Objectives Complete a Request for System Services form, which triggers the preliminary investigation phase. Analyze a user interview and extract pertinent facts, which can be used to assess project feasibility. Complete a Problem Stateme..

  Describe issues-web site designers when adding multimedia

Describe some of the issues web site designers must consider when adding multimedia to a web site. Consider issues such as bandwidth, server load, or others you consider to be important. Please provide references.

  Write a perl program to parse out the file

Do a search for the term "anthrax" in PubMed. Then search the Protein and Nucleotide databases -

  Write program to compute summation of four grades

when user press, the program computes summation of four grades (Grade1+Grade2+Grade3+Grade4) and print the result in the picture box (picSum).

  Write one instruction to reverse the lsb

write ONE instruction to reverse the LSB of the 2nd and 3rd elements of arr - Write code to determine if a data value is a power of 2,

  Program to read employee information in the array of objects

Let the program which will read employee information into the array of objects, sort array by employee identification number, write the sorted array.

  Write grading program using parallel arrays

Write grading program Using Parallel Arrays to read 20 students' ID and 3 exam scores for each student - calculate each student's average.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd