// output.cpp : Defines the entry point for the console application.
//writes data to file
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
string survey;
string name;
int age;
string sex;
int number;
string classno;
string favcolour;
// input section
cout << "What is your name please?" << endl;
cin>> name;
cout << "What is your age please?" << endl;
cin>> age;
cout << "Are you male or female please?" << endl;
cin>> sex;
cout << "What is your number please?" << endl;
cin>> number;
cout << "What is your class please?" << endl;
cin>> classno;
cout << "What is your favourite colour please?" << endl;
cin>> favcolour;