I'm just getting into C++ programming and I need some help getting these programs done here are the program problems:
Write a program that will calculate the number of students going on a field trip to the zoo and the number going on a field trip to the museum. The information needed is contained in a data file named “trip.txt”. The data file contains the first name of each student and next to each student’s name is a 1 if the student is going to the zoo or a 2 if the student is going to the museum. Your program should calculate and print to the screen the total number of students going to the zoo and the total number of students going to the museum. Your program should contain at least one while loop.
Place the following information in your data file.
Here’s the data:
Write an interactive C++ program that accepts as input any two positive integers (the first integer should be less than the second integer). The program should determine and print all the odd numbers between the first integer and the second integer.
For example, if 3 is input for the first number and the input for the second number is 20, the program would print:
Your program should work for any two positive integers (the first integer should be less than the second integer).
Might as well close this thread already. Read the rules or post some code wipper snapper!
it will not let me post my tags
What? Copy and paste! It's not difficult!
You need to post code between code tags. [code] code here [/code]