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.
Java deer gyals bodlogo bodood uguh humuun bna uu?
Зохицуулагчид: 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.
Өнөөдөр л хэрэг болоод байна
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.
Сүүлийн удаа Ваффен 10-р сар.02.10 1:46 am-д засварласан, нийт 3 удаа засварласан.
- NIka_39
- Олноос Онцгой Гишvvн

- Бичлэгүүд: 101
- Нэгдсэн: 3-р сар.19.10 12:09 am
- Байршил: Төмөр дөрвөлжингийнхээ ард нь байна
Re: Java deer gyals bodlogo bodood uguh humuun bna uu?
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.
-
Ваффен
Re: Java deer gyals bodlogo bodood uguh humuun bna uu?
хэхэ орчуулаад хийх гэхээр англиар нь хэрэгтэй байнаа
Англи хэл дээр бодоод өгөх хүн байхгүй биз
3 ширхэг бодлого
Өөрөө C үзсэн болохоор яг бодож чадку бодох гэхээр
Англи хэл дээр бодоод өгөх хүн байхгүй биз
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.
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 галлон газаар явах мийл) * нэг галлон газны үнэ
үүнийг л жава дээр бичих хэрэгтэй байна
ийм л үйлдэлийг жава бичих хэрэгтэй байна хүмүүсээ байнауу
(Нийт мийл замыг / 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н

- Бичлэгүүд: 101
- Нэгдсэн: 3-р сар.19.10 12:09 am
- Байршил: Төмөр дөрвөлжингийнхээ ард нь байна
Re: Java deer gyals bodlogo bodood uguh humuun bna uu?
bi yag sain oilgohgui l bna l daa. Oguulberiig ni.Ваффен написал: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.
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илва
хэхэ ойлголоо
Энэ сэдэвийг траш плз
хэхэ ойлголоо
Энэ сэдэвийг траш плз
- NIka_39
- Олноос Онцгой Гишvvн

- Бичлэгүүд: 101
- Нэгдсэн: 3-р сар.19.10 12:09 am
- Байршил: Төмөр дөрвөлжингийнхээ ард нь байна
Re: Java deer gyals bodlogo bodood uguh humuun bna uu?
oilgoson bol yamaidaa :D. Java bol best programming language shuudee :D.Ваффен написал:үнэхээр их баярлалаа Cилва![]()
![]()
хэхэ ойлголоо![]()
Энэ сэдэвийг траш плз
Re: Java deer gyals bodlogo bodood uguh humuun bna uu?
sn baitsganuu java medeh hun bn uu ? help me (today...) pls........
