Close Menu
PractiesPracties
    Facebook X (Twitter) Instagram
    PractiesPracties
    • Home
    • News
    • Business
    • Education
    • Entertainment
    • Lifestyle
    • Social Media
    • Technology
    • Travel
    PractiesPracties
    Home»Automotive»How Does a Computer Program Work?
    Automotive

    How Does a Computer Program Work?

    DanielBy DanielOctober 17, 2020Updated:August 30, 2021No Comments2 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Computers don’t do anything without someone telling them what to do, much like the average teenager. To make the computer do something useful, you must give it instructions in either of the following two ways: Write a program, which tells a computer what to do, step-by-step, much as you write out a recipe. Buy a program that someone else has already written that tells the computer what to do. Ultimately, to get a computer to do something useful, you (or somebody else) must write a program.

    A program does nothing more than tell the computer how to accept some type of input, manipulate that input, and spit it back out again in some form that humans find useful. Table 1-1 lists some common types of programs, the type of input that they accept, and the output that they produce. Essentially, a program tells the computer how to solve a specific problem. Because the world is full of problems, the number and variety of programs that people can write for computers is practically endless. But to tell a computer how to solve one big problem, you usually must tell the computer how to solve a bunch of little problems that make up the bigger problem.

    If you want to make your own video game, for example, you need to solve some of the following problems: Determine how far to move a cartoon figure (such as a car, a spaceship, or a man) on-screen as the user moves a joystick. Detect whether the cartoon figure bumps into a wall, falls off a cliff, or runs into another cartoon figure on-screen. Make sure that the cartoon figure doesn’t make any illegal moves, such as walking through a wall. Draw the terrain surrounding the cartoon figure and make sure that if the cartoon figure walks behind an object such as a tree, the tree realistically blocks the figure from sight.

    Finish

    Determine whether bullets that another cartoon figure fires are hitting the player’s cartoon figure. If so, determine the amount of damage, how it affects the movement of the damaged cartoon figure, and how the damage appears on-screen.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Daniel
    • Website

    Related Posts

    Ultimate Guide to Strengthening Wavy and Curly Hair for Summer and Early Fall

    July 25, 2024

    The Most Personalized Engagement Ring Styles

    November 17, 2023

    What Are German Fonts And How To Use Them In Blogs

    September 18, 2023
    Recent Posts

    BI Analytics vs. Machine Learning: Which One Does Your Business Need?

    June 10, 2025

    The History and Evolution of Online Slot Games

    January 18, 2025

    How to Prove Your Injury Was Work-Related

    January 11, 2025

    Behind the Wheel: Understanding Physics in Online Car Racing Games

    January 2, 2025

    Ultimate Guide to Strengthening Wavy and Curly Hair for Summer and Early Fall

    July 25, 2024
    Categories
    • Apps
    • Automotive
    • Blog
    • Business
    • Digital Marketing
    • Education
    • Entertainment
    • Fashion
    • Food
    • Health
    • Home Improvement
    • Law
    • lifestyle
    • News
    • Pet
    • Photography
    • Social Media
    • Tech
    • Technology
    • Travel
    • Contact Us
    • Privacy Policy
    Practies.com © 2025, All Rights Reserved

    Type above and press Enter to search. Press Esc to cancel.