2 Pages

C_ASS3

Course: PRG 155, Fall 2009
School: CSU Fullerton
Rating:
 
 
 
 
 

Word Count: 225

Document Preview

355/ PGM PRG155 - C programming Assignment 3 1. Write a program to compare two numbers with executions similar to the following. Variables number1, number2 Executions Enter two numbers separated by a comma 37.589,24 37.589 is greater than 24. Enter two numbers separated by a comma 26.3354,47.2 47.2 is greater than 26.3354. Enter two numbers separated by a comma 84,84 They are equal. 2. Adams County (county code A)...

Register Now

Unformatted Document Excerpt

Coursehero >> California >> CSU Fullerton >> PRG 155

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
355/ PGM PRG155 - C programming Assignment 3 1. Write a program to compare two numbers with executions similar to the following. Variables number1, number2 Executions Enter two numbers separated by a comma 37.589,24 37.589 is greater than 24. Enter two numbers separated by a comma 26.3354,47.2 47.2 is greater than 26.3354. Enter two numbers separated by a comma 84,84 They are equal. 2. Adams County (county code A) has a 7 percent sales tax rate while the rest of the state has a 6 percent rate. Write a program to print out the amount owed on a purchase including sales tax given the amount of the purchase and the county. Variables Purchase County TaxRate Amount of purchase Determine using selection Execution AMOUNT OF PURCHASE? 26 COUNTY? A TOTAL BILL: $ 27.82 Execution OF AMOUNT PURCHASE? 15 COUNTY? B TOTAL BILL: $ 15.90 3. The Ace Courier Service charges $10 for the first pound or fraction thereof and $6 per pound for anything over one pound. Write a program that figures the charges for the packages. Variable weight Execution WEIGHT? .7 CHARGE: 10 Execution WEIGHT? 2.5 CHARGE: 19 Execution WEIGHT? 4.2 CHARGE: 29.2 4. Write a program to assign grade points according to a letter score. An A is 4 grade points;...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

CSU Fullerton - PRG - 155
C Programming -Topic 3 Revision 2 Sep 2000C Programming - Topic #3 Compiler directive, Conversion code, Width and Precision.1.0 Compiler Directives1.1 It is an instruction to the compiler rather than a statement to be translated directly to ma
CSU Fullerton - PRG - 155
C Programming -Topic 2 Revision 2 Sep 2000 Programming in C Topic 2 - Data Types and Declarations1.0 VALUES AND VARIABLES 1.1 The decimal number system is based on ten number symbols, 0 through 9. In decimal, the first (rightmost) position tells h
Neumont - EN - 1942
Neumont - CSC - 1942
CSU Fullerton - DPR - 355
Operating Systems DPR355Chapter-1 Operating Systems (OS) Overview1.1 What is an Operating System?The operating system is an interface between the user and the hardware.UserApplication programOperating systemHardware1.2 Application pro
Sveriges lantbruksuniversitet - IR - 4336
In association with Simon Fraser University & the Vancouver Coastal Health Research InstituteNOT FOR CIRCULATION FOR INTERNAL CIRCULATION FOR PUBLIC CIRCULATION XACTION for Health Fact SheetOctober 2003ACTION for Health Document Status: Publis
Neumont - EN - 1978
Supreme Court of Canada McInnis et al. v. Webb Real Estate Ltd. et al., [1978] 2 S.C.R. 1382 Date: 1978-03-07 Alexander D. McInnis, William F. Meehan and T. Daniel Tramble, a partnership under the name of McInnis, Meehan & Tramble Appellants; and Web
Neumont - CSC - 1978
Supreme Court of Canada McInnis et al. v. Webb Real Estate Ltd. et al., [1978] 2 S.C.R. 1382 Date: 1978-03-07 Alexander D. McInnis, William F. Meehan and T. Daniel Tramble, a partnership under the name of McInnis, Meehan & Tramble Appellants; and Web
CSU Fullerton - PRJ - 566
Seneca College School of Computer Studies PRJ566 Game Functional Specification Team#: Team Members: Game Title: Provide a report with the following information: Game Mechanics Describe the game play in detailed terms, starting with t
Neumont - EN - 1976
Supreme Court of Canada MacNeill v. Briau, [1977] 2 S.C.R. 205 Date: 1976-05-18 Wendell Ross MacNeill and Francis Edward Shanahan Appellants and Cross-Respondents; and Helene Briau Respondent and Cross-Appellant.1976: May 18. Present: Martland, Ritc
Neumont - CSC - 1976
Supreme Court of Canada MacNeill v. Briau, [1977] 2 S.C.R. 205 Date: 1976-05-18 Wendell Ross MacNeill and Francis Edward Shanahan Appellants and Cross-Respondents; and Helene Briau Respondent and Cross-Appellant.1976: May 18. Present: Martland, Ritc
CSU Fullerton - GAM - 667
Gam667 Assignment 1This assignment is worth 10% of your final grade Due: Sept 16, 2008 in classThis is a group assignment. Every member in the group will get the same mark In this first assignment you will design and your game level. This will invo
CSU Fullerton - GAM - 666
GAM666 Introduction To Game ProgrammingCourse Overview Programmer's perspective of Game Industry Introduction to Windows Programming 2D animation using DirectX 7 3D animation using DirectX 9 Sound using DirectX Audio Joystick using DirectInpu
Neumont - EN - 1974
Supreme Court of Canada Ezrin v. Becker, [1975] S.C.R. 508 Date: 1974-04-29 Sydney Ezrin Appellant; and Paul Becker Respondent.1974: April 1; 1974: April 29. Present: Laskin C.J. and Martland, Judson, Spence and Dickson JJ. MOTION TO QUASHAppealSt
Neumont - CSC - 1974
Supreme Court of Canada Ezrin v. Becker, [1975] S.C.R. 508 Date: 1974-04-29 Sydney Ezrin Appellant; and Paul Becker Respondent.1974: April 1; 1974: April 29. Present: Laskin C.J. and Martland, Judson, Spence and Dickson JJ. MOTION TO QUASHAppealSt
CSU Fullerton - OS - 566
PRJ566 Project Proposal PRJ566 Project Proposal Form Team #: A01 Team Members: Shawn Dinis Patrick Lam Tony Lai Client: Robert Smith VP Solution Development Innovasium Inc. Brief description of system you are proposing. Please include your research r
CSU Fullerton - PRJ - 566
PRJ566 Project Proposal Business System PRJ566 Project Proposal Form Team #: Team Members:1Brief description of system you are proposing. Please include your research reference (contacts, etc.): Describe the business application your want to dev
CSU Fullerton - MRK - 317
Chapter 2IMC Role in MarketingChapter Objectives Understand the marketing process and the role of advertising and promotion in an organizations integrated marketing program. Know how the various decisions of the marketing mix influence and inter
CSU Fullerton - DPR - 355
DPR355- Operating Systems Assignment 1- Group Project Assignment (10 Marks)Compare two operating systems, in groups of 2-3 students only. Your task is to do the research and produce a 3 to 8 pages report, containing Introduction and Conclusion par
CSU Fullerton - MIR - 355
SENECA COLLEGE OF APPLIED ARTS AND TECHNONOGYFACULTY OF TECHNOLOGY SCHOOL OF ELECTRONICS AND COMPUTER ENGINEERING TECHNOLOGYSTUDENT NAME: (Last name, First name)STUDENT NUMBER:Microcomputer Repair Assignment 41. Fill in the empty boxes: To er
CSU Fullerton - MIR - 355
FACULTY OF TECHNOLOGY SCHOOL OF ELECTRONICS AND COMPUTER ENGINEERING TECHNOLOGY SUBJECT: MICROCOMPUTER REPAIR (MIR355) LAB SECTION: MIR355_STUDENT NAME:_ , _ STUDENT NUMBER:_(Last Name) (First Name)Lab 4 - System Board, CPU, and Expansion Cards
CSU Fullerton - MRK - 317
Chapter 8Media Strategy and Tactics DecisionsChapter Objectives To understand the key terminology used in media planning. To know how a media plan is developed.Chapter 8 : Media Strategy and Tactics DecisionsChapter Objectives To know the
CSU Fullerton - MKM - 806
Chapter 4Marketing Segmentation, Target Marketing & PositioningMarket StrategyPrimary role of placing the firm in an optimal position with respect to customer needs.Market SegmentationDecisions related to targeting the entire market for a prod
CSU Fullerton - MKM - 806
chapter20MARKETING STRATEGY: HOW IT ALL FITS TOGETHERPrepared by Angela Zigras, Seneca College Deborah Baker, Texas Christian UniversityChapter 20Copyright 2002 by Nelson, a division of Thomson Canada Limited.20 - 1You Will Learn To .1.
Neumont - EN - 1906
CSU Fullerton - DPR - 355
DPR355 - Operating Systems Assignment on Comparison of either Mac Operating Systems Vs. Windows 95/ 98 Or Unix Vs.Novell Netware 4.X / Windows NT 4.XChoose any 20 factors and compare Produce 3 to 5 pages report, containing Introduction and Conclusio
Neumont - EN - 1967
CSU Fullerton - MKM - 806
Chapter 10: Marketing Implementation and Control 10-1Chapter 10: Marketing Implementation and Control I. Marketing Implementation Defined A. Marketing implementation is the process of executing the marketing strategy by creating specific actions th
CSU Fullerton - MGOLDMAN - 107
Web Designer - Stakeholder 1: Michelle Goldman Client -Stakeholder 2: Sandy Macrae All Wrapped Up Gift Baskets Client -Stakeholder 3+: TBD Version 1 Thursday October 25th, 2007Project Charter To create an informational website designed to portray
CSU Fullerton - MGOLDMAN - 107
What is web accessibility? Web accessibility allows people with disabilities to comfortably use and interact with the web. In other words, technology is accessible if it can be used as effectively by people with disabilities as by those without. Acce
Sveriges lantbruksuniversitet - IR - 3855
PRB 99-1EAa hLibrary &ada Biblioth&cpe of Parliament 1 UNW du Parlernent l I Nnunu1HOMELESSNESSPatricia Begin Political and Social Affairs Division Lyne Casavant Political and Social Affairs Division Nancy Miller Chenier Political and Socia
Sveriges lantbruksuniversitet - LIB - 3855
PRB 99-1EAa hLibrary &ada Biblioth&cpe of Parliament 1 UNW du Parlernent l I Nnunu1HOMELESSNESSPatricia Begin Political and Social Affairs Division Lyne Casavant Political and Social Affairs Division Nancy Miller Chenier Political and Socia
Sveriges lantbruksuniversitet - IR - 2218
RECONSTRUCTING D N A REPLICATION KINETICS F R O M S M A L L D N A FRAGMENTSHaiyang ZhangB. Sc. Physics, Lanzhou University, China, 1999THESIS SUBMITTED INPARTIAL FULFILLMENTOF THE REQUIREMENTS FOR THE DEGREE OFMASTER OF SCIENCEIN THEDEP
Sveriges lantbruksuniversitet - IR - 3726
AN INVESTIGATION OF THE FORECASTING ABILITY OF ECONOMIC TRACKING PORTFOLIOSYeuk Ki (Maggie) Mak B.A., Simon Fraser University, 2005 B.Sc., Simon Fraser University, 2003PROJECT SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF
Sveriges lantbruksuniversitet - LIB - 3726
AN INVESTIGATION OF THE FORECASTING ABILITY OF ECONOMIC TRACKING PORTFOLIOSYeuk Ki (Maggie) Mak B.A., Simon Fraser University, 2005 B.Sc., Simon Fraser University, 2003PROJECT SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF
Neumont - EN - 1973
Supreme Court of Canada Zellers (Western) Ltd. v. Retail, Wholesale and Department Store Union, Local 955, et al., [1975] S.C.R. 376 Date: 1973-10-29 Zellers (Western) Limited Appellant; and Retail, Wholesale and Department Store Union, Local 955, an
Sveriges lantbruksuniversitet - IR - 536
Simon Fraser University Library 2005-2007 Board of Governors January 27, 2005How are we doing?MacLeans CARL Holdings Vols per stud. added Waterloo 157 31,739 Guelph 213 18,838 Victoria 235 32,464 SFU 127 53,432Online serials 7,550 5,550 6,276 15
Sveriges lantbruksuniversitet - SINUSOIDS - 368
SinusoidsCMPT 368: Lecture 3 SinusoidsTamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 17, 2007 Sinusoids is a collective term referring to both sine and cosine functions. A sinusoid is a function havi
Neumont - EN - 1973
Supreme Court of Canada Victor Investment Corp. Ltd. et al. v. Fidelity Trust Co., [1975] S.C.R. 251 Date: 1973-10-02 Victor Investment Corporation Ltd., Victor James Thiessen and Margaret Thiessen (Plaintiffs) Appellants; and The Fidelity Trust Comp
Sveriges lantbruksuniversitet - CMPT - 413
Introduction to Natural Language Processing with NLTKSteven Bird Edward Loper Ewan KleinUniversity of Melbourne, AUSTRALIA University of Pennsylvania, USA University of Edinburgh, UKminor edits by Anoop Sarkar any mistakes are his faultPython
Sveriges lantbruksuniversitet - CMPT - 825
Homework #3: CMPT-825Anoop Sarkar anoop@cs.sfu.ca(1) Part-of-speech Tagging: Consider the task of assigning the most likely part of speech tag to each word in an input sentence. We want to get the best (or most likely) tag sequence as dened by th
Allan Hancock College - MOPGPR - 20022002
MEMBERS OF PARLIAMENT (LIFE GOLD PASS) REGULATIONS 2002 2002 NO. 313 MEMBERS OF PARLIAMENT (LIFE GOLD PASS) REGULATIONS 2002 2002 NO. 313 - TABLE OF PROVISIONSPART 1-PRELIMINARY 1. Name of Regulations 2. Commencement 3. Definitions
Sveriges lantbruksuniversitet - CMPT - 825
CMPT 825 Natural Language ProcessingAnoop Sarkarhttp:/www.cs.sfu.ca/~anoopGoals of the Course Convince you that understanding language is a subtle, interesting, and tractable problem Give insight into various algorithms including statistical ma
Neumont - EN - 1973
Supreme Court of Canada Association of Radio and Television Employees of Canada (CUPE-CLC) v. Canadian Broadcasting Corporation, [1975] S.C.R. 118 Date: 1973-10-02 Association of Radio and Television Employees of Canada (CUPE-CLC) Appellant; and Cana
Sveriges lantbruksuniversitet - CMPT - 413
Homework #8: CMPT-413Distributed on Mon, Apr 4, Due on Mon, Apr 11Anoop Sarkar anoop@cs.sfu.ca(1)Implement the feature unification algorithm given in Figure 11.8 in Jurafsky and Martin (on page 423). Download the file FeatureStruct-inc.pm whic
Sveriges lantbruksuniversitet - CMPT - 880
CMPT 880 Fall 2007 Presentation Summary & Question about BTName: Michael Jia Email: zmj@sfu.ca Student number: 301046057Towards a Global IP Anycast ServiceIP anycast was first proposed in 1993 and now became an important IP packet addressing and
Sveriges lantbruksuniversitet - CS - 401
Chapter7SynchronizationTopics Physicalclocksynchronization Logicalclocksynchronization Causalityrelation Lamportslogicalclock Vectorlogicalclock Multicast ISISvectorclockSnapshotNewIssuesinDS Globaltime Eventordere1at1
CSU Fullerton - BTO - 120
# classes script - place a list of students into course sectionssection=Awhile read inputdo echo "BTO120$section $input" > /tmp/classes.temp.$ section=$(echo $section | tr [A-N] [B-NA])done < classlist.txtsort -k1,1 -k3 /tmp/classes.temp.
Sveriges lantbruksuniversitet - STAT - 201
Review for Final Exam Course Coverage: Chapters 1 through 20. Excluded sections and topics: Ch 1: pie charts, bar graphs, stemplots, time plots. Ch 2: boxplots, computing formulas for quartiles. Ch 6: conditional distributions. Ch 7: using random num
Laurentian - MATH - 131
General Knowledge Questions from Old Exams Set III. General knowledge questions. (5 points each.) From April 2007. III.1. A circle with diameter AP intersects a circle with diameter BP at P and a second point Q. Prove that Q always lies on the line A
Laurentian - MATH - 103
MATH 103 200710 Problem Set 4Edward Doolittle Thursday, February 22, 2007The following problems may appear on the quiz on Thursday, March 1, 2007. 1. Find the stationary points of the following functions:2. For each of the functions in the previo
Laurentian - CS - 330
No questions yet.
Sveriges lantbruksuniversitet - ARTS - 19981
PROFILE OF STUDENTS IN SFU COURSES COURSE: CNS 380-3 H01 LOCATION: DOW TITLE: STT-CAN.POL.ECONOMY SECTION TYPE: SEC SEMESTER: 1998-1 ENROL: 16
Sveriges lantbruksuniversitet - POL - 19981
PROFILE OF STUDENTS IN SFU COURSES COURSE: POL 447-3 D02 LOCATION: SFU TITLE: INTER. POL. ECONOMY SECTION TYPE: SEM SEMESTER: 1998-1 ENROL: 14
Sveriges lantbruksuniversitet - APSC - 19983
Sheet1 PROFILE OF STUDENTS IN SFU COURSES COURSE: CMNS 240-3 D01 LOCATION: DOW TITLE: POLITICAL ECONOMY SECTION TYPE: LEC SEMESTER: 1998-3 ENROL: 36 = PROGRAM OF STUDENT (Top 5 programs reported in each category Programs with < 3 students not shown s
Sveriges lantbruksuniversitet - APSC - 20031
Sheet1 PROFILE OF STUDENTS IN SFU COURSES COURSE: CMNS 240-3 ALL SECTIONS LOCATION: SFU TITLE: POLITICAL ECONOMY SECTION TYPE: LEC SEMESTER: 2003-1 ENROL: 71 = PROGRAM OF STUDENT (Top 5 programs reported in each category Programs with < 3 students no
Sveriges lantbruksuniversitet - POL - 20003
Sheet1 PROFILE OF STUDENTS IN SFU COURSES COURSE: POL 447-4 D01 LOCATION: SFU TITLE: INTL.POL.ECONOMY SECTION TYPE: SEM SEMESTER: 2000-3 ENROL: 17 = PROGRAM OF STUDENT (Top 5 programs reported in each category Programs with < 3 students not shown sep
Sveriges lantbruksuniversitet - POL - 20033
Sheet1 PROFILE OF STUDENTS IN SFU COURSES COURSE: POL 447-4 D01 LOCATION: SFU TITLE: INTL.POL.ECONOMY SECTION TYPE: SEM SEMESTER: 2003-3 ENROL: 16 = PROGRAM OF STUDENT (Top 5 programs reported in each category Programs with < 3 students not shown sep
Allan Hancock College - SAA - 200536
Western Australia Stamp Amendment (Assessment) Act 2005 Western Australia Stamp Amendment (Assessment) Act 2005 CONTENTS 1. Short tit
Sveriges lantbruksuniversitet - POL - 20033
Sheet1 PROFILE OF STUDENTS IN SFU COURSES COURSE: POL 356-4 D01 LOCATION: SFU TITLE: POL.ECONOMY/LABOUR SECTION TYPE: SEM SEMESTER: 2003-3 ENROL: 27 = PROGRAM OF STUDENT (Top 5 programs reported in each category Programs with < 3 students not shown s
Toledo - PHY - 110
35.SSM REASONING AND SOLUTION According to Equation 3.3b, the acceleration of the astronaut is a y = (vy - v0y )/ t = vy / t . The apparent weight and the true weight of the astronaut are related according to Equation 4.6. Direct substitution gives