1. Assuming x is 15.0 and y is 25.0, what are the values of the following conditions?
x != y
1
x<x
0
x >= y x
1
x = y + x y
1
2. What value is assigned to the type int variable ans in this statement if the value of p is 100 and q is 50?
ans = (p > 95) + (
ET2560
Exercise 2.1
1.
m = 10
n = 21
2.
3.
My name is Jane Doe
I live in Ann Arbor, MI
And I have 11 years of programming experience
Remove the third line print("\n"); and add a space after the period in second
line. Code should read:
print("My name is ")
Tanya Gonzales
ET-2560 Intro to C Programming
Unit 1 Lab 1 Flowchart
Task 1: Pseudo-Code
1. Start
2. Output List of Even Numbers between 20 and 40
3. Put 20 in number
4. If number divided by 2 has a remainder 1, go to step 6
5. Output number
6. Add 1 to n
ET2560
Lab 1.1
Task 1: Produce an algorithm and a flowchart to list the even numbers between 20 and 40.
1. Output List of Numbers Greater Than 20, but Less than 40.
2. Put 20 in the number.
3. Output the number.
4. Add 2 to the number.
5. If the number is
ET156 Introduction to C Programming Appendix B
Project for This Course
The project is worth 15% of the total grade. Note: Use Visio to create charts and diagrams.
Goal: Develop a program that will automatically adjust a variable resistor until the maximum
Lab 2.1
Task 1
1.
2.
3.
4.
5.
6.
7.
8.
Output Convert miles to kilometers
Output Please enter the distance in miles
Input dist_in_miles
Multiply dist_in_miles by 1.609
Put the result in dist_in_kms
Output The distance in kilometers is
Output dist_in_kms
E
ET2560: Module 1 Algorithm, Flowcharts, and Pseudocode
Lab 1.1
Flowcharts
In this lab, you need to complete three tasks. For each task, the pseudocode is provided to get you started.
Required Setup and Resources:
A computer with Pelles C, Microsoft Word,
LAB 2.1
1
Lab 2.1
John K
ITT Tech
ET2560
Mr. Teacher
March 23, 2015
LAB 2.1
2
Lab 2.1
Task 1 Algorithm
1. Output This program converts miles to Km
2. Output Please enter miles for conversion
3. Input miles
4. Convert miles to Km
4.1. Km=(1.609 * miles)
5.
Christopher Brigham
ET2560
Exercise 3-2
1)
a)
int sum, i, students, test_score;
sum = 0;
students = 35;
for(i = 0; i < students; i+)cfw_
printf("Enter Your test Score: \n");
scanf("0\n", &test_score);
sum += test_score;
printf("The total sum of all test
OVERVIEW OF C AND PROGRAMMING CALCULATIONS 1
Overview of C and Programming Calculations
John k
ITT Tech
ET2560
Mr. teacher
March 29, 2015
OVERVIEW OF C AND PROGRAMMING CALCULATIONS 2
Overview of C and Programming Calculations
1. m=10
n=21
2. My name is Ja
Nasheka McCall
ET2560 Introduction to C Programming
Final Paper
Im writing my paper about debugging. Which is a very difficult. Debugging is
usually done by a person called a debuggers. Debuggers help identify coding errors at
various development stage. S
LAB 1.1
1
Lab 1.1
John K
ITT Tech
ET2560
Mr. teacher
March 16, 2015
LAB 1.1
2
Lab 1.1
1. Output List of even numbers between 20 and 40
2. Put 20 in the number.
3. Output the number.
4. Add 2 to the number.
5. If the number is less than 40, go back to Step
Tanya Gonzales
ET-2560 Intro to C Programming
Unit 2 Assignment 1
Problem 4 pg.103
Write a program to convert a temperature in degrees Fahrenheit to degrees Celsius.
#include <stdio.h>
int main (void)
cfw_
int fahrenheit;
double celsius;
printf ("Enter th
Nasheka McCall
ET2560 Introduction to C Programming
Final Paper
2
Nasheka McCall
ET2560 Introduction to C Programming
Final Paper
3
Nasheka McCall
ET2560 Introduction to C Programming
Final Paper
Im writing my paper about debugging. Which is a very diffic
Mike Graybill
Lab 3.1
ET2560: Module 3 Decision Structures and Program Codes
1. Assuming x is 15.0 and y is 25.0, what are the values of the following conditions?
x != y
x<x
x >= y x
x = y + x y
TRUE
FALSE
TRUE
TRUE
2. What value is assigned to the type i
C programing project
Maximum power transfer
Analysis, deductions and conclusion:
Maximum power theorem states that Maximum power is transferred to the load when
the load resistance equals the Thevenins resistance as seen from the load. In brief,
maximum p
Mike Graybill
ET2560 Exercise 4.1
Right triangle program without function prototype
#include<stdio.h>
#include<math.h>
int main(void)
cfw_
double leg1, leg2, A, B, C, hyp;
printf("Enter leg 1 of the right triangle: ");
scanf("%lf", &leg1);
printf("Enter l
Tanya Gonzales
ET2560 Homework
Unit 5 Assignment 1
Programming Loops
Chapter 5 Self-Check Exercises
pg. 238
1. Choose an appropriate kind of loop from Table 5.1 for solving each of the following
problems.
a. Calculate the sum of the test scores of a class
Aaron Hemphill
Unit 1 Assignment 2
Cordova
1. CPU - (central processing unit) the main computer chip that processes instructions,
calculates data, and manages the flow of information in the computer.
2. RAM - Random access memory, part of main memory that
Mike Graybill
ET2560
LAB 3.1
Task 1 # 1-6
Calculate the current and power in a resistor
/* calculate the current and power in a resistor */
#include <stdio.h>
int main (void)
cfw_
double volt, resistor;
double power, current;
printf("Please input voltage
Tanya Gonzales
ET-2560 Homework
Unit 6 Assignment 1
Self-Check Exercises
Section 5.4 pg. 254-255
1. Trace the execution of the loop that follows for n = 8. Show values of odd and sum
after the update of the loop counter for each iteration.
sum = 0;
for (o
Tanya Gonzales
ET-2560 Homework
Unit 4 Assignment 1
Self-Check Exercises
Section 4.2
1. Assuming x is 15.0 and y is 25.0, what are the values of the following conditions?
x != y
1(true)
x<x
0(false)
x >= y-x
1(true)
x = y + x y
1(true)
5. What value is as
Introduction to
C Programming
Unit 10
Miscellaneous
Advanced Topics
Unit 9 Review
Unit 10: Review of Past Material
Unit 9 Review - Strings
Strings are manipulated with the string
library
The string library is made available by
including <string.h>
The str
ET2560 Discussion 4.1
07/21/15 Mr. Haynes
How do array variables help in programming complex problems?
There is no maximum limit to the size of an array, nor any requirement that member
variables be indexed or assigned and arrays are zero-based: the first
ET2560
Operators and Statements
How are unary operators different from binary operators? Explain with examples.
Unary Operators has only one operand. The operation takes place using a single
operand. The Unary Operators are +,-,&,*(indirection),-(positive
ET2560 Discussion 1.1
1. What are the three categories of programming languages?
System Languages
C
C+
Assembler
Architectural Languages
Java
C#
Application Languages
PHP
RUBY
PERL
PYTHON
2. Which programming language in your opinion is the most useful fo