Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

5 Questions on Electrical Engineering Computations | EECE 1207, Exams of Electrical and Electronics Engineering

Material Type: Exam; Class: Electrical Engr Computations; Subject: EECE Elctrical Engr Cmptr Engr; University: University of Memphis; Term: Fall 2005;

Typology: Exams

Pre 2010

Uploaded on 07/29/2009

koofers-user-gf2
koofers-user-gf2 🇺🇸

4

(1)

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Practice Questions I
1. Write a program that asks the user for two numbers, and then displays a menu, which does one of
the following
a. Add
b. Subtract
c. Multiply
d. Divide
2. How would you the program in question 1 such that it repeats the whole process?
3. Write a program that takes in a variable of type int, num, and checks to see if that number is
prime or not.
4. Write a program that takes in two numbers, and calculates the LCD (lowest common
denominator), and HCF (highest common factor)
5. Write a program that takes in a number, greater than one, and displays the fibonacci sequence
uptil that number.
EECE 1207 Fall 2005

Partial preview of the text

Download 5 Questions on Electrical Engineering Computations | EECE 1207 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

Practice Questions I

  1. Write a program that asks the user for two numbers, and then displays a menu, which does one of the following a. Add b. Subtract c. Multiply d. Divide
  2. How would you the program in question 1 such that it repeats the whole process?
  3. Write a program that takes in a variable of type int, num, and checks to see if that number is prime or not.
  4. Write a program that takes in two numbers, and calculates the LCD (lowest common denominator), and HCF (highest common factor)
  5. Write a program that takes in a number, greater than one, and displays the fibonacci sequence uptil that number. EECE 1207 Fall 2005