#AsuultSambar :

ASUULT.NET - ШИНЭ ЖИЛИЙН БАЯРЫН МЭНД ХҮРГЭЕ! 2017-2018
It is currently Jan.22.18 5:47 am

All times are UTC+09:00




Post new topic  Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Oct.01.10 5:36 pm 
Offline
Асуултын Архаг Мангас Гишvvн
User avatar

Joined: Jul.07.06 1:14 pm
Posts: 3853
Location: Зуун давхарт
1.Write a program that inputs two string variables, first and last, which the user should enter with their name. First, convert both strings to all lowercase. your program should then create a new string that contains the full name in pig latin with the first letter capitalized for the first and last name, Use only the pig latin rule of moving the first letter to the end of word and adding “ay”. Output the pig latin name to the screen. Use the substring and toUpperCase methods to construct the new name
For example, if the user inputs “Walt” for the first name and “Savitch” for the last name, then the program should create a new string with the text “Altway Avitvhsay” and print it.

:frog: Өнөөдөр л хэрэг болоод байна

_________________
Early bird catches early worm


Last edited by Ваффен on Oct.02.10 1:46 am, edited 3 times in total.

Top
   
PostPosted: Oct.01.10 5:40 pm 
Offline
Хvндэт Гишvvн
Хvндэт Гишvvн
User avatar

Joined: Mar.19.10 12:09 am
Posts: 160
Location: Төмөр дөрвөлжингийнхээ ард нь байна
Naadhiig chini oilgohgui bn oo. Zugeer Mongoloor ni joohon oilgomjtoi bichvel amarhan l yum shig bna shd ee. 10aad mur function l boloh bh.


Last edited by NIka_39 on Oct.01.10 5:41 pm, edited 1 time in total.

Top
   
PostPosted: Oct.01.10 5:41 pm 
Offline
Асуултын Архаг Мангас Гишvvн
User avatar

Joined: Jul.07.06 1:14 pm
Posts: 3853
Location: Зуун давхарт
NIka_39 wrote:
Oguulbergui bodlogiig chini bi yaj bodoh yum be??? Bodlogiinhoo oguulberiig bichdee.

хэхэ эдетлээд оруулчихсан :frog:

_________________
Early bird catches early worm


Top
   
PostPosted: Oct.01.10 5:42 pm 
Offline
Асуултын Архаг Мангас Гишvvн
User avatar

Joined: Jul.07.06 1:14 pm
Posts: 3853
Location: Зуун давхарт
орчуулаад тавы

_________________
Early bird catches early worm


Top
   
PostPosted: Oct.01.10 10:54 pm 
Offline
Асуултын Архаг Мангас Гишvvн
User avatar

Joined: Jul.07.06 1:14 pm
Posts: 3853
Location: Зуун давхарт
хэхэ орчуулаад хийх гэхээр англиар нь хэрэгтэй байнаа
Англи хэл дээр бодоод өгөх хүн байхгүй биз
3 ширхэг бодлого
Өөрөө C үзсэн болохоор яг бодож чадку бодох гэхээр

_________________
Early bird catches early worm


Top
   
PostPosted: Oct.01.10 11:38 pm 
Offline
Асуултын Архаг Мангас Гишvvн
User avatar

Joined: Jul.07.06 1:14 pm
Posts: 3853
Location: Зуун давхарт
pig latin энэ ийг тайлбарлаад өгөөч энэ юу юм

_________________
Early bird catches early worm


Top
   
PostPosted: Oct.02.10 12:08 am 
Offline
Асуултын Архаг Мангас Гишvvн
User avatar

Joined: Jul.07.06 1:14 pm
Posts: 3853
Location: Зуун давхарт
An automobile is used for commuting purposes.
Write a program that takes as input the distance of the commute in miles, the automobile’s
fuel consumption rate in miles per gallon, and the price of a gallon of gas.
The program should then output the cost of the commute.

_________________
Early bird catches early worm


Top
   
PostPosted: Oct.02.10 1:01 am 
Offline
Асуултын Архаг Мангас Гишvvн
User avatar

Joined: Jul.07.06 1:14 pm
Posts: 3853
Location: Зуун давхарт
C дээр бол амархан байналдаа
ийм л үйлдэлийг жава бичих хэрэгтэй байна хүмүүсээ байнауу

(Нийт мийл замыг / 1 галлон газаар явах мийл) * нэг галлон газны үнэ

үүнийг л жава дээр бичих хэрэгтэй байна

_________________
Early bird catches early worm


Top
   
PostPosted: Oct.02.10 1:45 am 
Offline
Асуултын Архаг Мангас Гишvvн
User avatar

Joined: Jul.07.06 1:14 pm
Posts: 3853
Location: Зуун давхарт
3. Write the program that inputs the name, quantiny, and price of three items. The name may contain spaces. Output a bill with a tax rate of 6.25%. All prices should be output to two decimal places. The bill should be formatted in columns with 30 characters for the name, 10 characters for the quantity, 10 characters for the price, and 10 characters for the total. Sample input and output is shown below.

_________________
Early bird catches early worm


Top
   
PostPosted: Oct.02.10 9:22 pm 
Offline
Хvндэт Гишvvн
Хvндэт Гишvvн
User avatar

Joined: Mar.19.10 12:09 am
Posts: 160
Location: Төмөр дөрвөлжингийнхээ ард нь байна
Ваффен wrote:
3. Write the program that inputs the name, quantiny, and price of three items. The name may contain spaces. Output a bill with a tax rate of 6.25%. All prices should be output to two decimal places. The bill should be formatted in columns with 30 characters for the name, 10 characters for the quantity, 10 characters for the price, and 10 characters for the total. Sample input and output is shown below.


bi yag sain oilgohgui l bna l daa. Oguulberiig ni.

er ni bol iimerhuu l yum bh bhdaa.

Public Integer function(String name, int quantity, int price){
int s = 0;
if(validations(name,quantity,price){
s = quantity*price;
s = s + s*6.25/100
}else {
system.err.println("error");
}
return s;
}

private boolean validations(String name,int quantity,int price){
if(name != null && quantity != null && price != null){
String regex = "\\w";
if(regex.isMatch(name){
return true;
}return false;
}
return false;
}

bi iimerhuu l yum oilgoloo. Tgd er ni engiin bodloguud l haragdaad bn. validations functioniig ni sain shalgaaraa. notepad deer zalhuu hureed shuud bichtsen bolhoor syntaxiin aldaanuud ih bgaa bh. Hervee input price edr chini string geer orj ireh yum Integer.parseint(string); Horvuuleerei,

Too mon esehiig shalaghdaa regex = "[0-9]";
ene regexiig ashiglaad match higeed l boloo. za tgd bodlogoo bodhod chini amjilt husiya. asuult bval asuuna biz. Ternees bish shuud bodoj uguud bmaargui bna. Uuruu surah heregtei shuu.


Top
   
PostPosted: Oct.03.10 12:05 pm 
Offline
Асуултын Архаг Мангас Гишvvн
User avatar

Joined: Jul.07.06 1:14 pm
Posts: 3853
Location: Зуун давхарт
үнэхээр их баярлалаа Cилва :wd: :wd:


хэхэ ойлголоо :frog:

Энэ сэдэвийг траш плз

_________________
Early bird catches early worm


Top
   
PostPosted: Oct.04.10 12:31 am 
Offline
Хvндэт Гишvvн
Хvндэт Гишvvн
User avatar

Joined: Mar.19.10 12:09 am
Posts: 160
Location: Төмөр дөрвөлжингийнхээ ард нь байна
Ваффен wrote:
үнэхээр их баярлалаа Cилва :wd: :wd:


хэхэ ойлголоо :frog:

Энэ сэдэвийг траш плз


oilgoson bol yamaidaa :D. Java bol best programming language shuudee :D.


Top
   
PostPosted: May.07.15 9:54 am 
Offline
Өсөх Ирээдvйтэй Гишvvн
Өсөх Ирээдvйтэй Гишvvн

Joined: Mar.11.15 10:58 am
Posts: 8
sn baitsganuu java medeh hun bn uu ? help me (today...) pls........


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 13 posts ] 

All times are UTC+09:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Copyright Asuult.NET © 2000-2015.
Administrative Contact: Khundaga Khurelbaatar [hundaga@hotmail.com]
Tel: 1-888-303-4927, Fax: 1-888-406-2264.
Powered by phpBB © 2000-2015 phpBB Group. Powered by phpBB® Forum Software © phpBB Limited