Фап Клуб Развратного Приста
-
Warst, нуп, это уже после того как снесли трон ^_^
-
лол
@"Warst":
та штучка уже здохла
нупы, обращение к вам!!1
:!: я !!прошёл!! доту ...!!!... (!) :!: :!: -
@"Warst":
нупы, обращение к вам!!1
:!: я !!прошёл!! доту ...!!!... (!) :!: :!:
+1. -
По результатам опроса Прист не жжот :twisted:((
Срочно создаем мультов и накручиваем опросник :twisted: -
Warst, ты нуп)
-
you are a towel!
man,i'm so high... -
i'm so high,i can hear heaven
-
AHHH! too much pressure!
-
and they say that a hero can save us, i'm not gonna stand here and wait
-
@"Illidan":
AHHH! too much pressure!по-больше веры в себя!! -
я сдохну Х_Х
*кто тут в си шарит ? * -
гугель?
-
*не шарит =*
-
написал бы хоть что тебе конкретно нужно
-
нужно пнуть меня в нужном направлении
Specifications: Write a C program that a small computer company can use to determine
the cost of a computer system. The base cost of the system is based on the
package selected (basic, professional, or game system). Then additional
memory and various other upgrades are used to calculate the final cost.Input: The program should get the following information from the user:
* Type of computer package (basic, professional, or game system). * Additional memory required, in 512 megabyte increments. * Monitor upgrade required. * CD/DVD drive upgrade required. * Note that the input requested will change depending on which upgrades are available for the selected package.
Processing: After getting information from the user, the program will determine the cost
of the system based on the following criteria:* The base cost will be $799 for the basic package, $1199 for the professional package, and $1499 for the game system. * The base package includes 512 MB of memory, the professional package includes 1024 MB, and the game system includes the maximum 2048 MB. Each additional 512 MB chunk of memory (up to a maximum total of 2048 MB) will add $99 to the cost. * The basic package includes a 19" CRT monitor, a 19" LED monitor upgrade will add $199 to the cost, and a 22" LED monitor upgrade will add $499 to the cost. The professional package includes a 19" LED monitor, and a 22" LED monitor unpgrade will add $299 to the cost. The game system includes a 22" LED monitor. * For the basic package (which includes a combo CD-writer/DVD reader), a DVD-writer upgrade will add $149 to the cost. The professional package and the game system include a DVD-writer.
Output: The configuration selected by the user will be displayed, formatted neatly,
with the corresponding costs contributed towards the total. Then the taxes
and the total cost of the system will be displayed.
See the following sample runs for the output format:Sample Run #1:
$ a.out
Welcome to IPC Computer Company's Computer System Calculator
Enter the package desired
(1 - basic, 2 - professional, 3 - game system): 1
Enter memory required
(0 - 512 MB included, 1 - 1024 MB, 2 - 1536 MB, 3 - 2048 MB): 0
Enter monitor required
(0 - 19" CRT included, 1 - 19" LED, 2 - 22" LED): 0
Enter CD/DVD drive required
(0 - combo CD-writer/DVD reader included, 1 - DVD-writer): 0========================================
Basic Package: 799.00
512 MB Memory: 0.00
19" CRT Monitor: 0.00
Combo CD-Writer/DVD-Reader: 0.00
PST: 63.92
GST: 47.94Total Cost: 910.86
Sample Run #2:
$ a.out
Welcome to IPC Computer Company's Computer System Calculator
Enter the package desired
(1 - basic, 2 - professional, 3 - game system): 1
Enter memory required
(0 - 512 MB included, 1 - 1024 MB, 2 - 1536 MB, 3 - 2048 MB): 2
Enter monitor required
(0 - 19" CRT included, 1 - 19" LED, 2 - 22" LED): 1
Enter CD/DVD drive required
(0 - combo CD-writer/DVD reader included, 1 - DVD-writer): 1========================================
Basic Package: 799.00
1536 MB Memory: 198.00
19" LED Monitor: 199.00
DVD-Writer: 149.00
PST: 107.60
GST: 80.70Total Cost: 1533.30
Sample Run #3:
$ a.out
Welcome to IPC Computer Company's Computer System Calculator
Enter the package desired
(1 - basic, 2 - professional, 3 - game system): 2
Enter memory required
(0 - 1024 MB included, 1 - 1536 MB, 2 - 2048 MB): 0
Enter monitor required
(0 - 19" LED included, 1 - 22" LED): 0========================================
Professional Package: 1199.00
1024 MB Memory: 0.00
19" LED Monitor: 0.00
DVD-Writer: 0.00
PST: 95.92
GST: 71.94Total Cost: 1366.86
-
:shock: мну хватило на 2 страницы, теперь я тоже частичка этого флуда
-
stoopid glitter
-
Развратный Прист., забей на си и напиши это на php
-
*утром сдавать =*
-
почти дописал.
сам.
*пиво - лучший двигатель прогресса =*