GithubHelp home page GithubHelp logo

cs240-ghp03's Introduction

/***************

  • CS240
  • GHP03
  • Alternate Assignment (maximum 60 points).
  • Query the user for the name of a file. Open and process that file, reporting
  • the number of words in the file and the number of words that begin with
  • the letter d, irrespective of case. The input file for testing this assignment
  • is posted on Blackboard.
    1. Introduce the program to the user
    1. query user for the name of a file
    1. open the file
    1. check to see if file is successfully opened
    1. read file in to string
    1. check to see if word begins with an alphabetical character, if so, check to see if the first character is d or D
    1. if first character is not alpha, check to see if 2nd character begins with D or d
    1. report to user the number of words beginning with D or d.
    1. terminate program
  • Written by Sean Patterson, including code adaptation from class handout read_string.cpp
  • Using Code::Blocks IDE with G++ compiler on Windows 10
  • 10-8-2019 (fixed and submitted on 11-20-19)

****************/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.