Computer-Based Numerical & Statistical Techniques

Part 6: Appendices

CHAPTER LIST

Appendix A: Answers to Selected Exercises
Appendix B: Sample Examination
Appendix C: About the CD-ROM

ASSIGNMENT 1.1

1.

Write a C-program to find the magnitude of a vector a = a 1 i + a 2 j + a 3 k.

2.

State whether the following statements are correct or not:

  1. scanf ( Enter the value of A% d , a);

  2. scanf ( %d; %d, %d , & a, & b, & c);

3.

Write a C program to solve a set of linear equations with two variables


4.

Write a C-program to read the principal, rate of interest, and the number of years and find the simple interest using the formula


5.

Write a printf statement to print The given value is 22.23.

6.

Give an algorithm and write a program in C to check whether a given number is prime or not.

7.

What will be the value of x and the sum after the execution of the following program?

     x = 1;     sum = 0; step 1: if (x < 10){     sum + = 1.0/x;     x + = 1;     goto step 1}

8.

Write a program in C to determine whether a number is odd or even. Also, draw its flowchart.

9.

Given a circle x 2 + y 2 = c,

Write a C-program to determine...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Parity Checkers and Generators
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.