COMP122
Complete the following problems.
1. Write C+ statements to do the following:
a. Declare an array alpha of 15 components of type int.
b. Output the value of the 10th component of the alpha array.
c. Set the value of the 5th component of the alpha a
ECET105Digital Circuits and Systems
Homework Assignment #6Key
Name _
1. When a HIGH is on the output of the decoding circuit below, what is the binary code
appearing on the inputs?
1000
2. Write the Boolean equations for each of the following codes if an
ECET105 Digital Fundamentals
Homework Assignment #1
Name _
1. Does a typical computer have any analog outputs? If so, what are they?
Sound
2. List three advantages of digital signal representation as compared to their analog
representation.
Noise rejectio
ECET105 Digital Fundamentals
Homework Assignment #2_Key
Name _
1. What is the duty cycle for a square wave signal that is HIGH for 15 nsec and LOW for 30
nsec?
Duty cycle = [(15 nsec)/(15 nsec + 30 nsec)] x 100% = 33.3%
2. A pulse train is shown on the os
Laboratory Report Cover Sheet
DeVry University
College of Engineering and Information Sciences
Course Number: ECET-105
Professor: Sah, Prakash
Laboratory Number:
6
Laboratory Title: Decoders and Multiplexers
Submittal Date:
Objectives:
The objective is t
COMP122
Week 3 iLab
Complete the following two programs:
Programming Problem 1
Write a program that generates all the factors of a number entered by the user. For
instance, the number 12 has the factors 2 * 2 * 3. This program has the following
requiremen
COMP122 Week 4 Lab
Part 1 of this weeks lab will give you an opportunity to use the debugging capabilities of Visual
Studio. Part 2 will present a problem for which you will need to create a test plan and actually
test an executable program to determine i
COMP122
Week 5 Homework
Complete the following problems.
1. Determine the value of the following expressions.
a. toupper('b')
B
b. tolower('C');
c
c. pow(3.0,3.0);
9.0
d. sqrt(81.0);
9.0
e. fabs(-1.23);
1.23
f. floor(22.46);
22
g. ceil(33.3);
34
2. Using
Test
Case
Predicted Output
Actual Output
Input
1
10
Mean 55
Mean 55.00
20
Median 55
Median 55.00
30
10 20 30 40 50
10.00 20.00 30.00 40.00 50.00
40
60 70 80 90 100
60.00 70.00 80.00 90.00 100.00
50
Mean 59.00
Mean 59.00
40
Median 55.00
Median 55.00
55
12.
Test
Case
Predicted Output
Actual Output
Input
1
10
Mean 55
Mean 55.00
20
Median 55
Median 55.00
30
10 20 30 40 50
10.00 20.00 30.00 40.00 50.00
40
60 70 80 90 100
60.00 70.00 80.00 90.00 100.00
50
Mean 59.00
Mean 59.00
40
Median 55.00
Median 55.00
55
12.
The contents of the original file:
I am reading an inconveniently good
I rely on infrequent library stints
getting bad, the amount of pressure
butter, do laundry. I do yoga. I am
The encryption key:
The encryption process:
novel. Midterms bearing down, an
#include "Resistor.h"
#include <iostream>
#include <iomanip>
#include <Windows.h>
#include <math.h>
#include <string>
using namespace std;
/EIA Standard array element sizes per tolerance class
const int E12 = 12;
const int E24 = 24;
const int E48 = 48;
co
ECET105 Digital Fundamentals
Homework Assignment #4 - Key
Name _
1. Draw a logic circuit that performs the following Boolean expression: Y = A (B+C)
.
A
B
Y
C
2. Determine the Boolean expression for the circuit shown below.
B = ( A+
B
B = A
AB + B=
A
COMP122
Week 2 iLab
Complete the following two programs:
Programming Problem 1
Write a program that calculates and outputs the monthly paycheck information for an
employee, including all the amounts deducted from an employees gross pay, and the net
pay th
ECET105 Digital Fundamentals
Homework Assignment #1
Name _
1. Does a typical computer have any analog outputs? If so, what are they?
Sound
2. List three advantages of digital signal representation as compared to their analog
representation.
Noise rejectio
COMP122
Week 2 Homework
Complete the following problems.
1. Suppose you are given the following variable declarations:
int x, y;
char ch;
What values (if any) are assigned to x, y, and ch after each of these statements execute?
Assume that the input to ea
COMP122
Week 1 Homework
Part 1: Complete the following problems.
1. What is machine code? Why is it preferable to write programs in a high level language
such as C+?
A machine code is consisting of a low level programming language that is executed by
CPU.
COMP122
Week 3 Homework
Complete the following problems.
1. What is the output from the following C+ code fragment?
int count = 1;
int y = 100;
while(count < 100)
cfw_
y = y - 1;
count+;
cout < "y = " < y < " and count = " < count < endl;
Ans: y = 1 and
COMP122 Week 4 Lab
Part 1 of this weeks lab will give you an opportunity to use the debugging capabilities of Visual
Studio. Part 2 will present a problem for which you will need to create a test plan and actually
test an executable program to determine i
COMP122
Week 1 iLab - Part 2
Complete the following two programs:
Programming Problem 1
John wants to know the values of the area and perimeter of a rectangle. John can take
measurements of the length and width of the rectangle in inches. John's measureme
COMP122
Week 3 iLab
Complete the following two programs:
Programming Problem 1
Write a program that generates all the factors of a number entered by the user. For instance, the number 12 has the factors 2 * 2 * 3.
This program has the following requiremen
COMP122
Week 6 iLab
You are to design a program that will allow some number of grades (up to a max of 100)
to be input by the user. After the data has been collected, your program should calculate
and output the mean and median of the collected data, as w
COMP122
Week 5 iLab
Objectives
Apply structured and modular design principles to write programs that meet written
specifications and requirements.
Develop a pseudo-code design using appropriate program structure (sequence, selection,
repetition and nestin
COMP122
Week 7 iLab
The focus of this lab is on using strings. You will have an opportunity to work with both C style
strings and the string data type. This lab also gives you an opportunity to use what you have
learned previously, including using functio
ECET105 Digital Fundamentals
Homework Assignment #5 Key
Name _
1. Determine the decimal value of each of the following unsigned binary numbers.
a. 10011001
15
3
b. 01110100
116
c. 10111111
191
2. Determine the decimal value of each of the following signed
ECET105 Digital Fundamentals
Homework Assignment #3_Key
Name _
1. Determine the output X for the 2-input AND gate with the input waveforms shown.
A
B
X
2. Determine the output X for the 2-input OR gate with the input waveforms shown.
A
B
X
3. Determine th