Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
Saturday at 11:44 PM
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
Java Problem
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="sachii" data-source="post: 9867299" data-attributes="member: 126652"><p><strong><span style="font-size: 15px"><span style="color: Blue">Ane pls if can you help to make design of the program in Pseudocode and in Java for this question. </span></span></strong></p><p><strong><span style="font-size: 15px"><span style="color: Blue"></span></span></strong></p><p><strong></strong></p><p><strong>In Mathematics, different number systems are in use. The most commonly used number </strong></p><p><strong>system is the decimal number system, which has a base of 10. Other number systems in </strong></p><p><strong>use are the binary number system (base 2), octal number system (base 8) and the </strong></p><p><strong>hexadecimal number system (base 16). They are all positional number systems, where </strong></p><p><strong>the decimal value of the number can be obtained by summing the multiplication of each </strong></p><p><strong>digit by its corresponding place value. For example, in binary system the decimal </strong></p><p><strong>equivalent of the number 1010 can be obtained by the sum: </strong></p><p><strong> 1 x 23 + 0 x 22 + 1 x 21 + 0 x 20 = 1 x 8 + 0 x 4 + 1 x 2 + 0 x 1 = 12 </strong></p><p> </p><p> <span style="font-size: 12px">Your task: </span></p><p> <span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Design a program that would read a number and the base of the number system and print </span></p><p><span style="font-size: 12px">the </span></p><p><span style="font-size: 12px">equivalent decimal value. </span></p><p> <span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Assume that the base of the number system is always 10 or less. That is, all the digits of </span></p><p><span style="font-size: 12px">the number system are a subset of the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. Examples of </span></p><p><span style="font-size: 12px">such number systems are those with base 2 (binary), base 8 (octal), base 4, base 5 etc. </span></p></blockquote><p></p>
[QUOTE="sachii, post: 9867299, member: 126652"] [B][SIZE=4][COLOR=Blue]Ane pls if can you help to make design of the program in Pseudocode and in Java for this question. [/COLOR][/SIZE] In Mathematics, different number systems are in use. The most commonly used number system is the decimal number system, which has a base of 10. Other number systems in use are the binary number system (base 2), octal number system (base 8) and the hexadecimal number system (base 16). They are all positional number systems, where the decimal value of the number can be obtained by summing the multiplication of each digit by its corresponding place value. For example, in binary system the decimal equivalent of the number 1010 can be obtained by the sum: 1 x 23 + 0 x 22 + 1 x 21 + 0 x 20 = 1 x 8 + 0 x 4 + 1 x 2 + 0 x 1 = 12 [/B] [SIZE=3]Your task: Design a program that would read a number and the base of the number system and print the equivalent decimal value. Assume that the base of the number system is always 10 or less. That is, all the digits of the number system are a subset of the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. Examples of such number systems are those with base 2 (binary), base 8 (octal), base 4, base 5 etc. [/SIZE] [/QUOTE]
Insert quotes…
Verification
Asuwa dahayen wadi kalama keeyada?
Post reply
Top
Bottom