What is the syntax of the if statement

Assignment Help Computer Engineering
Reference no: EM13323283

Find BNF OR EBNF grammars for Ada(available on the web). What is the syntax of the IF statement? Write a legal Ada if statement that look at the integer variables a and b, and

if a is 1, will increment a (a := a+a; )

if b is 3, will decrement b (b := b-1; )

otherwise, will multiply b by 2 (b := 2*b; )

 

 

Reference no: EM13323283

Questions Cloud

At what height in the resevoirmust the water level be kept : The point of dicharge is 5 m abovethe floor, and friction losses in the 50 mm pipe from the resevoirto the tower amount to 2.5 J/kg. At what height in the resevoirmust the water level be kept if the pump can deliver only 0.1kW
What is the categorical imperative : What is the categorical imperative? What role does it play in Kant’s moral theory? What are its various forms? How does it relate to human reason? Provide an illustration of how it could be used in determining what action or decision is morally right..
How fast must an observer be traveling : In frame S, event B occurs 2 microseconds after event A and event A occurs at the origion whereas event B on the x-axis at x=3.3km. How fast must an observer be traveling along the +x axis
Calculate the power input to the basin with a depth : The minimum teperature anticipated is 60 deg. F and the absolute viscosity (μ) is 2.359 x 10-5lb*s/ft2. Determine the diameter (ft) if two rapid-mixbasins are operating in parallel with a depth of 10 feet. Also calculate the power input to the bas..
What is the syntax of the if statement : Find BNF OR EBNF grammars for Ada(available on the web). What is the syntax of the IF statement? Write a legal Ada if statement that look at the integer variables a and b.
Determine the initial acceleration of the metal cylinder : A 0.527 kg metal cylinder is placed inside the top of a plastic tube, the lower end of which is sealed off by an adjustable plunger, what is the initial acceleration of the metal cylinder
Show the parse tree for the expression 110 : The second grammar is unambiguous. This means that every expression in the language has exacty on parse tree. Show the parse tree for the expression 110.
Find its angular separation between central maxima : If wavelength is 5890 , and slits width is 0.25 mm, find its angular separation between central maxima
Determine total time for the compression wave to travel down : You are to perform a dynamic pile load test on a24-inch OD open ended homogeneous pipe pile. The pile has a shellthickness of 0.5 inch and is 80 feet long. Calculate: Compression wave velocity(hint: E=29x106 psi, g=490 pcf)

Reviews

Write a Review

Computer Engineering Questions & Answers

  Which jobs are possibly to change

Where would the computing profession be in 10 years, 25 years, 50 years? Will it be different than it is today? In what ways? Which jobs are likely to change.

  The advantages and disadvantages of using functions

Show how you might write the "case" statement using only the "if" statement in its place an actual case statement. Hint: Nested if statements. Explain your code.

  Make a plan to deploy several visual basic.net

Your supervisor has asked you to develop a plan to deploy several Visual Basic.NET applications to users in your company. Discuss the important considerations in this effort and give a summary of the technical approach you would use to deploy thes..

  Testing the procedures

The company receives new release movies each Tuesday. Make a procedure that will enable the receiving clerk inorder to add the new movies received to the mm_movie table.

  Suppose it would take 100 hours in execution

For a certain program, 1% of the code accounts for 50% of the execution time. evaluate the following strategies with respect to programming time and execution time.

  Propose a range of addresses for acme corp

ACME Corp is located in Toledo, Ohio. They would like to create a network and divide it into 3 subnets, each subnet has 150 computers. The IT plan calls for connecting the LAN to the Internet. ACME Corp. has elected to use public IP address space ..

  How to produce a data model segment

Some mechanics are specialized in engine (EN) maintenance. Some mechanics are specialized in the airframe (AF) maintenance. Some mechanics are specialized in avionics (AV) maintenance.

  Write down a program that inputs a word

Write down a program that inputs a word from the keyboard and determines the length of the word. Print the word using twice the length as the field width.

  How to exchange the floating point number

How to exchange the floating point number

  Write down a brief summary of the web article

In this assignment, you will find out and critique virtual information and word processing skills to create a professional-looking one-page document that promotes personal development or financial growth and maturity.

  Show the key code in the center of the screen

Write down a program that will display the hex code for any key, or key combination that is pressed on the keyboard. Display the key code in the center of the screen. For instance, if the key number 0 is pressed, display a 30 on the center of the ..

  What are the serious challenges faced

What are the serious challenges faced when creating in-house software applications and what is the best process of training users on new software.

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