Assignment1_F09

Assignment1_F09 - Name: Perfect Student Please enter 2...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Programming Assignment Number 1 Computer Science 101 Due date: Must be submitted (electronic submission) by midnight on Sept. 14, 20009       Write a program to produce the output shown below.  Use the following formula :                             Y                                   3.7    Result = [  X -  --- ] [ X + 2 Z ] + 5 X -  ------                           5 Z                                9.5 Y      The output for program 1 should look as follows, except you will use your name! Computer Science 101 Programming Assignment #1 Please enter your full name: Perfect Student
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Name: Perfect Student Please enter 2 integer numbers: 23 3 The sum of 23 and 3 is: 26 The product of 23 and 3 is: 69 The remainder of 23 and 3 is: 2 The integer quotient of 23 and 3 is: 7 The real quotient of 23 and 3 is: 7.666667 Enter 3 real numbers: 12.345 -99.23 88.712 The result of substituting x,y, and z into formula is 2446.88 Good bye Perfect Student Notes submit –user csci101 –Tag hw1.** Assign1.cpp ** = lab section Name of file doesn’t matter /*Analysis //1.Inputs (Given Data) //2. What Needs to be Calculated //Algorithm // // */ Code DECLARE ALL VARIABLES AT TOP...
View Full Document

This note was uploaded on 11/01/2009 for the course CS 101 at USC.

Page1 / 2

Assignment1_F09 - Name: Perfect Student Please enter 2...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online