Preview

1305 Chapter 1 Assignment

Satisfactory Essays
Open Document
Open Document
475 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
1305 Chapter 1 Assignment
Christy Stroud/CIST 1305/Chapter 1 Assignment

#2. Write a program that computes and displays a 15 percent tip when the price of a meal is input by the user. (Hint: the tip is computed by multiplying the price of the meal by 0.15.)

Declare MealPrice as a float
Declare Tip as a float
Write “Enter price of meal:”
Input MealPrice (get price to calculate)
Set Tip = MealPrice * 0.15 (calculate)
Write MealPrice (output data)

#3 Write a program that converts a temperature input in degrees Celsius into degrees Fahrenheit and displays both temperatures.

Declare Celsius as a float
Declare Fahrenheit as a float
Declare DegreeCesius as a float
Declare DegreeFahrenheit as a float
Write “Enter temperature in degrees Celsius to convert to Fahrenheit:”
Input DegreesCelsius (get degrees to be converted)
Fahrenheit = (9/5) * Celsius + 32 (calculate)
Write DegreesFahrenheit (output data)

#4 Write a program that computes and displays the batting average for a baseball player when the user inputs the number of hits and at-bats for that player. Batting average is computed by dividing the number of hits by the number of at-bats.

Declare Hits as an Integer
Declare AtBats as an Integer
Declare BatAvg as a float
Declare Average as a float
Write “Enter Players number of hit and at-bats:”
Input Hits (get number to be calculated)
Input AtBats (get number to be calculated)
Set Average = (Hits + AtBats) / 2 (calculate)
Write “The average of” (output data)
Write Hits + “and” + AtBats (output data)
Write “is” + Average (output data)

#5 Write a program to compute and display an investment’s total interest and final value when the user inputs the original amount invested, rate of interest (as a decimal), and number of years invested.

Declare Interest as a float
Declare Principal as a float
Declare Rate as a float
Declare FinalValue as a float
Declare Time as an integer
Write “Enter Investors Principal, Rate of Interest (as a decimal), and number of years invested:”

You May Also Find These Documents Helpful

  • Good Essays

    Literature provides the opportunity for authors to use words to describe a story, whether true or fiction. The reader is provided details to have an imaginary movie playing out in their mind while reading the story. The reader is connected with the characters, the environment, and the emotion experienced during the story. In this essay, I will be utilizing the formalist approach to review a story and further explore literature.…

    • 889 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Id130 Week 3 Assignment

    • 261 Words
    • 2 Pages

    ID130 Week 3 Assignment 1 Transforming Surface Appearance Embellishing Fabric Surfaces - the purpose of this technique is to create items such as needlepoint pictures, quilts, doilies, crewel pillow covering, and soft sculptures on curtain fabrics or tabletop accessories (Textiles). This technique is accomplished by many techniques such is needle point stitching also referred to as canvas embroidering which is where yarn is used to cover all or part of the fabric. Improving the Quality and Serviceability of Structural Features Reducing Pilling – Piling is something that occurs when abrasive forces cause fibers to roll up in minute balls that cling to the surface of the fabric, pilling can be reduced by singeing. Singeing is when small gas flames…

    • 261 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Chapter 12 Assignment

    • 498 Words
    • 2 Pages

    Individual Assessment John Appleseed ACC/291 June 30, 2011 William Backer Individual Assessment E9-2 Trudy Company incurred the following costs. 1. Sales tax on factory machinery purchased $ 5,000 2. Painting of and lettering on truck immediately upon purchase 700 3. Installation and testing of factory machinery 2,000 4.…

    • 498 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    The purpose of this Lab. is to familiarize student how to solve practical problems programmatically; they will practice on elementary programming using primitive data types, variables, constants, operators, expressions, and input and output. Also, they will learn how to diagnose errors that may occur when a program is compiled or executed. There are some exercises, through which they will understand the concept learn in this chapter.…

    • 2338 Words
    • 10 Pages
    Powerful Essays
  • Good Essays

    1). What were 5 vital factors that accounted for making the U.S. a world industrial power after the Civil War?…

    • 515 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Nt1310 Unit 8 Study Guide

    • 546 Words
    • 3 Pages

    Read Temp If Temp < 0 Then Print Temp, “Below Freezing” Else If Temp > 0 Then Print Temp, “Above Freezing” Else Print Temp, “Freezing” End If End If…

    • 546 Words
    • 3 Pages
    Powerful Essays
  • Powerful Essays

    Osmosis Lab Report

    • 1235 Words
    • 5 Pages

    To calculate average first you have to add up all the number is the 0.0 grams column. After you have the 0.0 grams added up you need to divide by how many numbers in the column. An example is in column 0.0 grams, 4.2+3.1+4.0+3.2+4.3= 18.8. Once you have the total from the column you divide by how many numbers you added together, 18.8/5=3.76. The average is 3.76 for 0.0 grams. You repeat the steps for the rest of the columns.…

    • 1235 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    ElizabethFlaimFP

    • 1289 Words
    • 7 Pages

    Objective: Devise a program that will allow a user to input a list of family members with their age and state where they live. Once the list is complete, the program will calculate and print the average age of the user’s family and also print the names of any family members that live in Texas. All three items, the input, average, and printing family members from Texas will require the use of repetitive programming statements/loops.…

    • 1289 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    Learning Team Pos/410

    • 434 Words
    • 2 Pages

    The SUBSTRING was used to shorten the length of the Short_Description Field for viewing purposes. The CAST command was used to restrict any account that did not have the number 6 in it. The OR at the end of that statement was used to include an account named 777777. The COMPUTE command computed the average balance of the accounts meeting all the above requirements.…

    • 434 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Midterm for University 1301

    • 2443 Words
    • 10 Pages

    Current Location .HFall 2012 UNIV 1301 71 Intro To Collegiate Studies Assignments Review Test Submission: Midterm Review .…

    • 2443 Words
    • 10 Pages
    Satisfactory Essays
  • Satisfactory Essays

    UNIT 2

    • 470 Words
    • 3 Pages

    5.) Write the pseudocode for a program that will determine the average miles per gallon a car gets. (Inputs should be miles driven and gallons of gas used)…

    • 470 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    The going interest rate per year = 10%, the number of years, N = 20, future value, FV = 1,000, and present value, PV = 865.…

    • 1735 Words
    • 7 Pages
    Powerful Essays
  • Powerful Essays

    History 1301 Syllabus

    • 2855 Words
    • 15 Pages

    This is a general survey of American history from colonization through the Civil War. Its goals are to…

    • 2855 Words
    • 15 Pages
    Powerful Essays
  • Good Essays

    Engl 1144 Notes

    • 2243 Words
    • 9 Pages

    * “I believe the alphabet is no longer considered an essential piece of equipment for traveling through life” (par. 14)…

    • 2243 Words
    • 9 Pages
    Good Essays
  • Good Essays

    English 1302 Reflection

    • 1169 Words
    • 5 Pages

    Before beginning this course, I knew that I lacked confidence within my writing. People say that you are your own worst critic, and I fully agree with that statement. My writing was not terrible in some aspects, but I knew that it needed to be improved upon. I lacked the experience because writing was not something that I did on a daily basis. As I progressed through English 1302, I realized that I was developing new skills that begun to transform the way I wrote. By receiving constructive criticism, I was able to learn more about myself as well as my abilities and limitations. This course not only helped me improve my writing skills, but it required me to become more self-motivated to complete my work as well as helped me manage my time more efficiently. English 1302 have allowed me to become a more adequate writer because I have learned valuable skills that I can utilize to perfect my writing ability.…

    • 1169 Words
    • 5 Pages
    Good Essays