Sedang Disiapkan

tunes purchase

All the files are attached. run the program inside the attachments.

I want Comments on the code !!!

use Visual Basic 2010 to create an interface that allows users to see information on songs, play an exerpt of them, and purchase selected ones.

The program should:

Use FileGet to read the information on five tunes from a structured file named [url removed, login to view] into an array of the structure defined below:

(Copy and paste this code into the program.)

Public Structure musicInfo

<VBFixedString(30)> Public title As String

<VBFixedString(20)> Public artist As String

<VBFixedString(20)> Public genre As String

<VBFixedString(10)> Public duration As String

Public year As Integer

Public price As Double

<VBFixedString(15)> Public songFileName As String

End Structure

Public songs(4) As musicInfo

Allow users to use command buttons to navigate and view information on any of the tunes

(As shown in the program in the attachment, there is no Next button when showing the last tune, and there is no Previous button when showing the first tune.)

Allow users to click the Play button to play an excerpt of the tune (approximately 25 seconds long) and click the Stop button, if they wish to stop playing the excerpt before it ends.

Allow users to click the Purchase button to buy the indicated tune. (As seen in [url removed, login to view] inside folder in the attachment, users can purchase more than one copy of any tune.)

When checking out:

use an InputBox so that users can enter their sales tax rate. Since users are entering a value, perform data validation on their input.

allow users to cancel the check out process by clicking the InputBox Cancel button.

use Write/Writeline to create a purchase order text file named ([url removed, login to view] inside the folder i attached) that includes the date the file was created and an itemized list of purchases, the subtotal, tax, and total.

Name the project myTunes

Notes:

use [url removed, login to view] object:

Use Play method for starting an audio file to play in the background.

Use Stop method for stopping an audio file from playing in the background.

Use Data validation

Use a sub called DisplaySong(index), to display the selected song. The index parameter represents which song - 0-4.

Other considerations:

Users cannot check out, if they have not made any purchases.

Your data validation should include checking for non-numerical input and a range check.

use a simple For-Loop for five songs.

Be sure you run the sample program to see how it handle the various actions:

Clicking Play while playing an excerpt replays the excerpt from the beginning.

Clicking Stop when there is no excerpt playing does nothing.

An appropriate MsgBox/MessageBox for invalid InputBox data entry.

An appropriate MsgBox/MessageBox for trying to check out, when no purchases have been made.

Cancelling the check out process by clicking Cancel in the InputBox.

thanks

first run the program inside this attached folder.
it has data file, the 5 tunes and the purchase texfile inside the folder.

the program you are making should work the same way.

thaank you.

first run the program inside this attached folder.
it has mytunes.exe, data file, purchase texfile inside the folder.

the program you are making should work the same way.

thank you.

Kemahiran: Visual Basic

Lihat lebih lanjut: visual basic price, string in data structure, string data structure, sales folder, rate visual basic, process of data entry in a computer, i want to write a song, index data structure, how to read index, how to read computer code, double data entry method, data structure in computer, data structure in c notes, data structure in array, data structure array, data entry and validation, computer data structure, basic of data structure, array in data structure, array data structure, title songs, how to write a song, write songs, write song, write 4 song

Tentang Majikan:
( 5 ulasan ) buffalo, United States

ID Projek: #1555107

Dianugerahkan kepada:

sherwinfer

I can do it.

$30 USD dalam 2 hari
(6 Ulasan)
2.0

2 pekerja bebas membida secara purata $53 untuk pekerjaan ini

PraveshKoirala

Its a definite can do. But, you haven't attached any folder bro. Attach the folder and then we can have further talks.

$75 USD dalam 2 hari
(0 Ulasan)
0.0