Preview

Lab 3 Student

Satisfactory Essays
Open Document
Open Document
1264 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Lab 3 Student
Lab 3: Input, Processing, and Output
This lab accompanies Chapter 2 (pp. 56-68) of Starting Out with Programming Logic & Design.

Name: Rhamses Graterol

Lab 3.1 – Pseudocode

This lab requires you to think about the steps that take place in a program by writing pseudocode. Read the following program prior to completing the lab.

Write a program that will take in basic information from a student, including their name and how many credits they have taken in Network Systems Administration program. The program will then calculate how many credits are needed to graduate. Display should include the student name and the number of credits left to graduate. This should be based off a 90 credit program, where some courses are half credits.

Step 1: This program is most easily solved using just a few variables. Identify potential problems with the following variables declared in the pseudocode. Assume that the college has the ability to offer half credits. (Reference: Variable Names, page 39-40).

Variable Name
Problem (Yes or No)
If Yes, what’s wrong?
Declare Real creditsTaken
No

Declare Int creditsLeft
Yes
Should be Real Numbers
Declare Real studentName
Yes
String
Constant Real credits Needed = 90
No

Step 2: What is wrong with the following calculation? (Reference: Variable Assignment and Calculations, page 43).

Set creditsLeft = creditsTaken – creditsNeeded
Set creditsLeft = creditsNeeded - creditsTaken
Set creditsLeft = 90 - 20

Step 3: Write the exact output you would expect from the following line of code if the user of the program enters “Nolan Owens”. (Reference: Displaying Items, page 40 – 41).

Display “The student’s name is “, studentName
Display “The student’s name is”, Nolan Owens

Step 4: Write the exact output you would expect from the following line of code if the user of the program enters a name of Nolan Owens and they have taken 20 credits so far. (Reference: Displaying Items, page 40 – 41).

Display “The Network Systems

You May Also Find These Documents Helpful

  • Satisfactory Essays

    This activity will assist you in the understanding of how output should appear after statements are executed (results) and how to write proper pseudocode.…

    • 393 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
  • Satisfactory Essays

    Nt1310 Unit 3 Assignment

    • 256 Words
    • 2 Pages

    Write a program to read the name of 5 students through keyboard and store them in a file “name.txt”.…

    • 256 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Ivy Software CPC Letter

    • 414 Words
    • 2 Pages

    If you do not pass, you will need to purchase the respective Ivy Software course for only $60 in an…

    • 414 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Chapter 25 Chapter 26 Chapter 27 An Introduction to Hardware, Software, and the Internet An Introduction to Software Development Objects and Classes Algorithms Java Syntax and Style Data Types, Variables, and Arithmetic Boolean Expressions and if-else Statements Iterative Statements: while, for, do–while Implementing Classes and Using Objects Strings Class Hierarchies and Interfaces Arrays…

    • 3908 Words
    • 16 Pages
    Powerful 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
  • Satisfactory Essays

    CMIS 102 Homework 3

    • 342 Words
    • 3 Pages

    Program Description - This program will allow a user to input their name and final grades from their courses and calculate their GPA accordingky. The amount of students as well as the amount of classes each student is taking, are undetermined.…

    • 342 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 7 Student

    • 1242 Words
    • 7 Pages

    This lab accompanies Chapter 5 (pp. 163-183 and pp. 196-201) of Starting Out with Programming Logic & Design.…

    • 1242 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    Psychology Assignment

    • 1556 Words
    • 7 Pages

    10. College XYZ wants to collect information from students concerning a plus/minus grading system (the college administration wants to add minus grades to the plus values…

    • 1556 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    - DataType can be one of the following basic types: Float, Real, Integer (real & integer are numbers), String…

    • 504 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Negros Occidental Cottage

    • 2299 Words
    • 10 Pages

    DIRECTIONS: Read the items carefully and choose that which will answer or complete the item. Write…

    • 2299 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    Plc Lo3

    • 1066 Words
    • 4 Pages

    1. Identify the following elements associated with the preparation of a programmable logic controller program.(assessment criteria 3.1)…

    • 1066 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Java Exception Handling

    • 7853 Words
    • 32 Pages

    This part introduces the use of exception handling and assertions to make your programs robust and correct, the use of input and output to manage and process a large quantity of binary data, and the use of recursion to write methods for solving inherently recursive problems.…

    • 7853 Words
    • 32 Pages
    Powerful Essays
  • Better Essays

    C LANGUAGE

    • 4276 Words
    • 18 Pages

    Introduction to the C Programming Language Science & Technology Support High Performance Computing Ohio Supercomputer Center 1224 Kinnear Road Columbus, OH 43212-1163 Table of Contents • • • • • • • • • Introduction C Program Structure Variables, Expressions, & Operators Input and Output Program Looping Decision Making Statements Array Variables Strings Math Library Functions • • • • • • • • • User-defined Functions Formatted Input and Output Pointers Structures Unions File Input and Output Dynamic Memory Allocation Command Line Arguments Operator Precedence Table 2 C Programming Introduction • Why Learn C? 3 C Programming Why Learn C? • • • • • • • • •…

    • 4276 Words
    • 18 Pages
    Better Essays
  • Good Essays

    Cs3310

    • 1402 Words
    • 6 Pages

    Chapter 1 An Introduction to Computer Science INVITATION TO Computer Science 1 Objectives After studying this chapter, students will be able to: • Understand the definition of computer science • Write down everyday algorithms and evaluate them to determine if they are ambiguous or not effectively computable Invitation to Computer Science, 6th Edition 2 Objectives (continued) After studying this chapter, students will be able to: • Understand the roots of modern computer science in mathematics thousands of years old and in mechanical machines hundreds of years old • Summarize the key points in the historical development of modern electronic computers • Map the organization of the text onto the definition of computer science Invitation to Computer Science, 6th Edition 3 Introduction • Misconceptions –…

    • 1402 Words
    • 6 Pages
    Good Essays