#include<iostream>
using namespace std;
// Declare input and output functions
void get_inputs(float &num, char &let );
void report_inputs(float num, char let );
// Start main function
int main()
{
float number; char letter;
// Input number and letter
get_inputs(number,letter);
// Output number and letter
report_inputs(number,letter);
return 0;
}
// Pre-conditions: Inputs float number and char letter
// variables by reference
// Post-conditions: User-specified number and letter
// values placed into input variables
void get_inputs(float &num, char &let)
{
cout << "Enter number: ";
cin >> num;
cout << "Enter letter: ";
cin >> let;
}
// Pre-conditions: Inputs float number and char letter
// variables
// Post-conditions: Input variables are printed to screen
void report_inputs(float num, char let)
{
cout << "Your number is " << num << endl;
cout << "Your letter is " << let << endl;
}