Your screen shot shows what appears to be an iOS app. This forum is for Mac apps, not iOS apps.
To write an app that actually runs on your iPhone, as distinct from running in Xcode's iOS simulator, you must pay Apple's $99/year developer fee.
The link you provided in your 1st post is to a web page with JavaScript. Why don't you write your app in HTML and JavaScript, just like the example you linked to? You don't need Xcode to do that, you don't need to learn Objective-C, and you don't need to pay $99 to Apple to make it run on your iPhone. You will still need to learn JavaScript and HTML, but you have a working example (your link).
The one thing missing from the linked example is playing a sound. See here:
http://www.phon.ucl.ac.uk/home/mark/audio/play.htm
Note that playing sounds from JavaScript can be tricky.
You should read everything at the link I posted, and try every example they provide, on every target platform you intend to use in your science project (i.e. try it on every iOS version, every Mac OS version, and every browser version you intend to support). Keep notes on exactly which method works in which browser and which platform. If there isn't a single universal method, then you'll either have to limit the platforms you support, or you'll have to learn more about how to write HTML or JavaScript that sense what platform it's running on. Welcome to real-world programming.
If you have no programming experience at all, you will be better served by learning to write JavaScript and HTML, rather than trying to learn Objective-C for iOS and needing to pay $99.
Finally, you haven't actually told us what platforms you intend to run your app on, what your programming experience is, what date the project must be completed by, what your OS version is, and various other things. I have simply made guesses about your intent based on what you've posted so far.
If your real intent is to write a Mac-resident program, then there are more ways to do that than there are for targeting iOS. In particular, Mac programs can be written in more languages, and don't need a $99 fee to run them.
Rather than making further guesses, or needing to infer your intent, please post a clear statement of what your experience is, what platform your app needs to run on, when it must be completed by, and a list of its features. In other words, be specific about what you want to accomplish.