Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Problem

1. Write an assignment statement to calculate the sum of the numbers from 1 to N using Gauss's formula

Sum = [N(N + 1)] / 2

Store the result in the integer variable Sum.

2. The syntax error messages displayed by a compiler are sometimes confusing. In this exercise you will become more familiar with some of the common syntax error messages produced by your Ada compiler. Enter, compile, and run the program given in Programming Warm-up Exercise

3. Then make each of the following changes and compile the program and observe the syntax error message your compiler produces. Be sure to have only one of these errors in your program at a time. That is, undo each change before making the next one. (a) Leave out the context clause "with Ada.Text_IO;" (b) Substitute "procedre" for "procedure" (c) In the first assignment statement of the program, replace the underscore character in the variable Interest_Rate with a blank (d) Leave out the declaration of the variable Charge (e) Leave off the semicolon in the declaration of the variable Charge (f) Leave off the semicolon in the first executable statement (g) Use a value of 2.5 instead of 2 for an Aft parameter in one of the Put statements (h) Leave off "Ada.Text_IO." in one of the New_Line statements (i) Misspell the parameter name Aft in one of the Put statements.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92683797

Have any Question?


Related Questions in Computer Engineering

Question some help me to answer this1 discuss the osi

Question: Some help me to answer this 1. Discuss the OSI reference model and TCP/IP model. discuss in details their features, advantages and disadvantages 2. Compare and contrast the two models. The response must be type ...

Anbspwhen aqueous solutions (a)  When aqueous solutions of  Pb(NO 3 ) 2  and  MnCl 2  are

(a)  When aqueous solutions of  Pb(NO 3 ) 2  and  MnCl 2  are mixed, does a precipitate form? _____ yes -no (b)  Write a balanced equation for the precipitation reaction that occurs when aqueous solutions of  potassium c ...

Can someone help me with this question you need step by

Can someone help me with this question? You need step by step and You need names of any theorms or formulas you are using please. The Codechef Programming Society has 198 membership-paying mem- bers, 97 females and 101 m ...

What are some differences between transaction processing

What are some differences between Transaction Processing Information Systems and Management Information Systems?

Discuss the role of insurance in healthcare delivery and

Discuss the role of insurance in healthcare delivery and productivity

Sorting amp searching i need this written in cwrite a

Sorting & Searching ( I need this written in C) Write a program that will allow a user the opportunity to compare and analyze the efficiency of several sorting algorithms. The program will sort integer arrays of size 10, ...

C programmingneed help with a c program arrayrearrangec

***C PROGRAMMING*** Need help with a C program array_rearrange.c that rearranges an integer array. The array will be split into two sets of integers one by one. A new array will be created by append the first set to the ...

Identify at least two 2 factors that have led to the

Identify at least two (2) factors that have led to the explosive growth of digital crime over the past a few decades. Next, describe the most common forms of digital crime, and give your opinion as to why those forms you ...

A for which hypervisors does kali linux offer custom

a. For which hypervisors does Kali Linux offer custom images? What tools must be added to a VirtualBox Kali Linux VM to provide proper integration with the host machine? b. What hypervisor comes already installed in Kali ...

Question write 1 page that respond to the following

Question: Write 1 Page that respond to the following questions with your thoughts, ideas, and comments. This will be the foundation for future discussions by your classmates. Be substantive and clear, and use examples to ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As