CSCI-14 Final project (using an array of structs). Due the last day of class, before the final exam. 100 points
Write a program that reads account and transaction data from a text file (using an ifstream and stream extraction),
and prints an audit trail t
CSCI-14 Lab #6 more loops, due 7/6/16
Please work in groups of two on these. See me if there are an odd number of students.
1) Write a program that prompts the user for the starting point in degrees Fahrenheit, the size of a step,
and number of lines to p
CSCI-14 Lab #3 the if() statement, due 6/23/16
Please work in groups of 2 on this.
Write a complete C+ program that prompts the user for a time in (integer) seconds.
Always echo-print out the user's entry.
There are 60 seconds in a minute. If (and only if
CSCI-14 Lab 11 structs. Due 7/28/16
1. Create a struct MenuItem containing fields for name (a string) and price (a float) of a menu item for a diner.
Create a ReadItem() function that takes an input stream and a MenuItem (both by reference) and prompts
CSCI-14 Lab 8, due 7/18/16
Please work in groups of two or three on this. Work with people you don't usually work with.
These are pencil-and-paper exercises first, and only afterward programming. You may discuss
approaches to these problems with mem
CSCI-14 Lab 7 due 7/12/16
Please work in groups of two on this lab. Work with a new partner.
Write three independent functions to handle the problem of calculating the bill at a coffee shop.
The first prompts for input values and gives them back to the ca
CSCI 14 Programming Assignment #1, 20 points, due 6/21/16
Write a C+ program to convert a distance in miles and feet to kilometers. Use the following
conversion values (by which I mean exactly these values) to convert the distances: one mile is
CSCI-14 Lab 1 due 6/16/16 (but do it today)
Using the C+ IDE of your choice, for example, Code:Blocks, Quincy or Microsoft Visual Studio,
type in, save, compile, link and run the following program. Make the indicated changes in the notes
at the top of the
CSCI-14 Lab 11. Due the Wednesday before the final.
Write a program to solve the 100 elves problem. The idea is that there is a hut in the
woods where a man has hidden exactly 100 ounces of gold. Each night for 100 nights
(counted by n), an obsessive-comp
CSCI-14 programming assignment #2 (20 points), due 6/23/16
The formula for determining the monthly payment (p) for a mortgage is:
r 12n r
(1 ) 1
m * (1
where m is the amount of the loan, r is the annual interest rate, and n is the n
CSCI-14 Lab #4 if-else exercises, due 6/28/16
Please work in groups of two on this. There are two small programs for this.
Write a program that prompts the user for the (integer) length and width of two rectangles. Afterward,
tell the user if the
CSCI-14 Lab 2 due 6/21/16
Please work in groups of two. Submit one email for the group, submitted following the class
email instructions, with both names in the subject line and the body of the email, and in the
source top-of-file comments.
The sizeof() o
CSCI-14 Lab 9 due 7/21/16
Please work in groups of two on this. There are three programs.
Program 1 (easy):
Write a program that asks the user for exactly 50 integers, and stores them in an array. Then print the largest,
smallest, sum and (floating-point)
CSCI-14 Collaborative Lab 5: Logic Practice: due 6/30/16
Hand-written exercises. You MAY NOT work alone on these. Do these alone first, then get with two or
three other people to check each others answers. Agree among yourselves what the answers are BEFOR
CSCI-14 Assignment #4, if/else programming (40 points) due 6/30/16
Write a C+ program that takes a single character and prints the corresponding digit on the old-style
dial or touchtone telephone keypad, if it exists, or a message stating that the charact
CSCI-14 Assignment #7 - first functions assignment. Due 7/13/16
1. Write a function bool IsOddDigit( char ch ); that takes a character and returns true if
the character is one of the odd digits cfw_ '1', '3', '5', '7', '9' , otherwise false. Write a main(
CSCI-14 Assignment #5, simple looping (40 points, 20 each) due 7/5/16
These are adapted from the text, pages 293-294.
1. (Adapted from number 2, pg. 293). Write a C+ program that prints a table of the characters
for the ASCII codes from ' ' (space) to '~'
CSCI-14 Assignment #8, the Sieve of Eratosthenes due 7/19/16
Eratosthenes was a Greek philosopher, mathematician, and scientist who, among many other things, made
a remarkably accurate measurement of the size of the world in 240 BC, by using a well, a tow
CSCI 14 Programming assignment #6 (nested loops) - 50 points - due 7/7/16
Your job is to write a program that prompts for a number of rows (r) from the user, then prints a
parallelogram containing either r or r+1 rows. Your program may only print parallel
CSCI-14 Programming assignment #3 the if() statement
In a right triangle, the square of the length of the hypotenuse is equal to the sum of the
squares of the lengths of the other two sides. For example, a triangle with sides of
lengths 4, 5,
EEC 170 Homework 3 Solutions Fall 2008
Problem I: Problem 3.12 from our text: Suppose that all of the conditional branch
instructions except beq and bne were removed from the MIPS instrucion set along
with slt and all of its variants (slti, sltu, sltui).
EEC 170 Fall 2008 Homework # 2
What it accomplishes
move $t1, $t2
$t1 = $t2
$t1, $t2, $zero
$t0 = 0
$t0, $zero, $zero
beq $t1, small, L
if ($t1 = small) go to L
$t1, $at, L