// july9ex2.cpp : Defines the entry point for the console application.
// This program creates random melodies

#include "stdafx.h"
#include "stdlib.h"
#include "time.h"

int main(int argc, char* argv[])
{    int num, note;
     srand(time(NULL));

	 for (num=1; num<=12; num++)  {
         note = rand() % 8 + 1; 

		 switch (note) {

		  case 1: printf("Do1 \n");
			 break;
		  case 2: printf("Re \n");
			 break;

		  case 3: printf("Mi \n");
			 break;
		  case 4: printf("Fa \n");
			 break;
		  case 5: printf("So \n");
			 break;
		  case 6: printf("La \n");
			 break;
		  case 7: printf("Ti \n");
			 break;
		  case 8: printf("Do \n");

		 } /* end switch note */

	 } /*endfor num */
	
  printf("**********\n");
	return 0;
}