Selasa, 14 Juni 2011

C++ : Algorithm and Program Finding The average of n positive integers

download

ANALYSIS
The formula for the amount of data on the number of data, with x, is the i-th data

ALGORITHM
{Given n data later in the search for the average}
DECLARATION
i, n, the number, x: integer
Average: real
DSKRIPSI
read (n)
total <- 0for i <- of 1 to n doread (x)total <- total + xendforaverage <- sum / nwrite (average)download

Senin, 13 Juni 2011

Linux : How to install LMMS on ubuntu 11.04


LMMS is a free cross-platform alternative to commercial programs like FL Studio®, which allow you to produce music with your computer. This includes the creation of melodies and beats, the synthesis and mixing of sounds, and arranging of samples. You can have fun with your MIDI-keyboard and much more; all in a user-friendly and modern interface.

We're glad to announce the availability of LMMS 0.4.9. This version is a maintainance release of the 0.4.x series. It fixes most of the bugs found in version 0.4.8. Thanks to all who helped make this release (especially those who kept up testing and reporting bugs)!

Summary for version 0.4.9:
==========================
Core:
* MidiWinMM: fixed compiler warning
* Build system: fixed relative linker paths warnings
* Build system: explicitely link against WinMM library on Win32

GUI:
* SampleTrack: do not hide EffectRackView forever when closing subwindow
* InstrumentTrackView: added one-window-mode + global piano focus
* InstrumentTrackView: use QMdiArea's window activation history
* Fixed alternating row color in QTreeView (Sf2 patch selector)

Plugins:
* CALF LADSPA plugins: resynced with Git repository - fixes broken CALF Vintage Delay plugin
* VstBase: fixed winelib build on x86_64

Misc:
* Updated French localization files

More detailed changes can be obtained at
http://lmms.git.sf.net/git/gitweb.cgi?p=lmms/lmms;a=log;h=v0.4.9
(or "git log v0.4.8..v0.4.9")

The download is available at
http://sourceforge.net/projects/lmms/files/

Ubuntu packages of LMMS for Lucid (10.04) will be available
soon at
https://launchpad.net/~tobydox/+archive/lmms

More information is available at the project-homepage
http://lmms.sourceforge.net

and the Wiki
http://lmms.sourceforge.net/wiki

Please also note the LMMS Sharing Platform (LSP):
http://lmms.sourceforge.net/lsp/





Install LMMS

$ sudo add-apt-repository ppa:tobydox/lmms
$ sudo apt-get update
$ sudo apt-get install lmms

C++ : Defining Day in C++

Download

I. ALGORITHM
{enter the numbers 1 through 7, will decide today on what isappropriate}

DECLARATION
day_to: integer
day: string
DESCRIPTION
read (day_to)
case (day_to) of
1: day <- 'Monday'2: day <- 'Tuesday'3: day <- 'Wednesday'4: day <- 'Thursday'5: day <- 'Friday'6: day <- 'Saturday'7: day <- 'Sunday;else day <- 'No'end casewrite (days)I. ALGORITHM{enter the numbers 1 through 7, will decide today on what isappropriate}DECLARATIONday_to: integerday: stringDESCRIPTIONread (day_to)case (day_to) of1: day <- 'Monday'2: day <- 'Tuesday'3: day <- 'Wednesday'4: day <- 'Thursday'5: day <- 'Friday'6: day <- 'Saturday'7: day <- 'Sunday;else day <- 'No'end casewrite (days)

Download

C++ : Algorithm and Program Gas Station

Download

I. ALGORITHM
{Create a program to service the pump}

Declaration
rp, ltr, litlit: float {input}
num, jum1: Integer {input}
gasoline, bensin2, bensin3, bensin4: float {input}
Description

Download source code

C++ : Convert Values ​​Letters Figures Become

Download

Example:
Value Letter Value figures

0-12 E
21-40 D
41-60 C
61-80 B
81-100 A

I. ALGORITHM
{Convert a numeric value into the value of letters}

DECLARATION
value: integer
nilai_huruf: char
DESCRIPTION
read (value)
if (value> 0) and (value <= 20) then nilai_huruf <- 'E'else if (value> 20) and (value <= 40) then nilai_huruf <- 'D'else if (value> 40) and (value <= 60) then nilai_huruf <- 'C'else if (value> 60) and (value <= 80) then nilai_huruf <- 'B'else nilai_huruf <- 'A'end ifwrite (nilai_huruf)Download

C++ : Algorithms and Celsius Temperature Conversion Program BecomeReamur, Fahrenheit and Kelvin

Download source code

I. ANALYSIS

The formula for conversion from Celsius to Reamur, Fahrenheit,and Kelvin are as follows:

reamur = 4 / 5 Celsius
Fahrenheit = 9 / 5 C + 32
Kelvin = Celsius + 273

II. ALGORITHM

DECLARATION
C: integer} {degrees Celsius
R: real {degrees reamur}
F: real {degrees Fahrenheit}
K: real {degrees kelvin}
DESKRIPSI
read (C)
R <- 4 / 5 * C {formula R = 4 / 5 * C}F <- 9 / 8 * C + 32 {The formula F = 9 / 5 * C + 32}K <- C + 32 {The formula K = C + 273}
write (R, F, K)

Download

ALL INFORMATION Copyright © 2011 | Template created by O Pregador | Powered by Blogger