Tuesday, October 27, 2015

class_exercise_10-27-15__CM

This is the link for my sound:
https://soundcloud.com/user-799388125-908573266/stuff-class-exercise_10-27-15

These are the rule (made using Xcode):
//
//  main.cpp
//  random
//
//  Created by Martinez,Cesar E on 10/27/15.
//  Copyright (c) 2015 Martinez,Cesar E. All rights reserved.
//

#include <iostream>

using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    int val;
    int stuff = rand() % 50 + 1;
    int stuff2 = rand() %50 + 1;
    cout << "Pick any number" << endl;
    cin >> val;
    if ((val+stuff)%2) {
        cout << "download a nature sound" << endl;
    }
    else {
        cout << "record your own sound" << endl;
    }
    if (stuff2 > 15) {
        cout << "add an effect to the sound" << endl;
        cout << "make sound overlap with the previous one" << endl;
    }

    return 0;

}

What this will do is generate some numbers at random and, together with the number picked, will execute an arithmetic operation that, according to the result, will tell you what to do

No comments:

Post a Comment