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

Kemahiran: Visual Basic

Lihat lebih lanjut: visual basic price, string data structure, sales folder, rate visual basic, process data entry computer, want write song, index data structure, read index, read computer code, double data entry method, data structure computer, data structure notes, data structure array, computer data structure, basic data structure, array data structure, write songs, visual artist, purchase, purchase order, purchase my, music notes, cancelling an, create purchase order, excerpt

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