Java deer gyals bodlogo bodood uguh humuun bna uu?

Монгол Хэрэглэгчидэд Зориулсан Программчлал, Программ хангамжууд...
Монгол бичгээр бичдэг Notepad
Латинаар галиглаад бичингүүт шууд криллрүү хөрвүүлдэг гарын драйвер

Зохицуулагчид: Computer software, Computer Hardware

Ваффен

Java deer gyals bodlogo bodood uguh humuun bna uu?

Бичлэг Бичсэн Ваффен »

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: Өнөөдөр л хэрэг болоод байна
Сүүлийн удаа Ваффен 10-р сар.02.10 1:46 am-д засварласан, нийт 3 удаа засварласан.
Хэрэглэгчийн аватар
NIka_39
Олноос Онцгой Гишvvн
Олноос Онцгой Гишvvн
Бичлэгүүд: 101
Нэгдсэн: 3-р сар.19.10 12:09 am
Байршил: Төмөр дөрвөлжингийнхээ ард нь байна

Re: Java deer gyals bodlogo bodood uguh humuun bna uu?

Бичлэг Бичсэн NIka_39 »

Naadhiig chini oilgohgui bn oo. Zugeer Mongoloor ni joohon oilgomjtoi bichvel amarhan l yum shig bna shd ee. 10aad mur function l boloh bh.
Сүүлийн удаа NIka_39 10-р сар.01.10 5:41 pm-д засварласан, нийт 1 удаа засварласан.
Ваффен

Re: Java deer gyals bodlogo bodood uguh humuun bna uu?

Бичлэг Бичсэн Ваффен »

NIka_39 написал:Oguulbergui bodlogiig chini bi yaj bodoh yum be??? Bodlogiinhoo oguulberiig bichdee.
хэхэ эдетлээд оруулчихсан :frog:
Ваффен

Re: Java deer gyals bodlogo bodood uguh humuun bna uu?

Бичлэг Бичсэн Ваффен »

орчуулаад тавы
Ваффен

Re: Java deer gyals bodlogo bodood uguh humuun bna uu?

Бичлэг Бичсэн Ваффен »

хэхэ орчуулаад хийх гэхээр англиар нь хэрэгтэй байнаа
Англи хэл дээр бодоод өгөх хүн байхгүй биз
3 ширхэг бодлого
Өөрөө C үзсэн болохоор яг бодож чадку бодох гэхээр
Ваффен

Re: Java deer gyals bodlogo bodood uguh humuun bna uu?

Бичлэг Бичсэн Ваффен »

pig latin энэ ийг тайлбарлаад өгөөч энэ юу юм
Ваффен

Re: Java deer gyals bodlogo bodood uguh humuun bna uu?

Бичлэг Бичсэн Ваффен »

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.
Ваффен

Re: Java deer gyals bodlogo bodood uguh humuun bna uu?

Бичлэг Бичсэн Ваффен »

C дээр бол амархан байналдаа
ийм л үйлдэлийг жава бичих хэрэгтэй байна хүмүүсээ байнауу

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

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

Re: Java deer gyals bodlogo bodood uguh humuun bna uu?

Бичлэг Бичсэн Ваффен »

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.
Хэрэглэгчийн аватар
NIka_39
Олноос Онцгой Гишvvн
Олноос Онцгой Гишvvн
Бичлэгүүд: 101
Нэгдсэн: 3-р сар.19.10 12:09 am
Байршил: Төмөр дөрвөлжингийнхээ ард нь байна

Re: Java deer gyals bodlogo bodood uguh humuun bna uu?

Бичлэг Бичсэн NIka_39 »

Ваффен написал: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.
Ваффен

Re: Java deer gyals bodlogo bodood uguh humuun bna uu?

Бичлэг Бичсэн Ваффен »

үнэхээр их баярлалаа Cилва :wd: :wd:


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

Энэ сэдэвийг траш плз
Хэрэглэгчийн аватар
NIka_39
Олноос Онцгой Гишvvн
Олноос Онцгой Гишvvн
Бичлэгүүд: 101
Нэгдсэн: 3-р сар.19.10 12:09 am
Байршил: Төмөр дөрвөлжингийнхээ ард нь байна

Re: Java deer gyals bodlogo bodood uguh humuun bna uu?

Бичлэг Бичсэн NIka_39 »

Ваффен написал:үнэхээр их баярлалаа Cилва :wd: :wd:


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

Энэ сэдэвийг траш плз
oilgoson bol yamaidaa :D. Java bol best programming language shuudee :D.
хха
Өсөх Ирээдvйтэй Гишvvн
Өсөх Ирээдvйтэй Гишvvн
Бичлэгүүд: 8
Нэгдсэн: 3-р сар.11.15 10:58 am

Re: Java deer gyals bodlogo bodood uguh humuun bna uu?

Бичлэг Бичсэн хха »

sn baitsganuu java medeh hun bn uu ? help me (today...) pls........
Сэтгэгдэл хариулах

“Монгол Программчлал - Монголжихуй” руу буцах