Skip to content

bmcecilia3/OSAssignment1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

OSAssignment1

C/C++ Pointers

Task

Create a C++ program that will prompt the user for information about a student and their grades. The program should ask the user for the following information:

  • User ID number (int)
  • First name (string)
  • Last name (string)
  • Number of assignments (int)
  • Grade for each of the assignments (series of doubles)

The program should then calculate the average score of the assignments and print the results (rounding the average to 1 digit after the decimal place).

Compile and Run

compile: g++ -std=c++11 -o pointers pointers.cpp

run: ./pointers < input.txt > output.txt

About

C/C++ Pointers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages