C++ program to convert any base 10 number v to any base b

Assignment Help C/C++ Programming
Reference no: EM13936699

Write a C++ program that will convert any base 10 number v to any base b. Input two values, the first is the base 10 number and the second value is the base that the base 10 number v is to be converted to. The base can only be between 2 and 9. Invalid input should be flagged.

Example:

input 175 3

output 175 in base 10 is 20111 in base 3.

The program must use function to convert numbers from one base to another, and it should read its input from a file.

Content (to be used for testing) of attached Word file named as "Base Conversion File.dat":

175 2

175 8

175 5

3 8

98 4

98 7

98 9

256 2

256 8

256 4

111 5

999 6

100 10

60 3

100 1

512 2

Attachment:- Base Conversion File.zip

Reference no: EM13936699

Questions Cloud

Brief reading passage on her instructional level : Develop a comprehensive 750-1,000-word early reading plan based on the following case scenario and the tasks that follow the scenario. Given a brief reading passage on her instructional level, Amanda will read the passage and be able to retell the m..
Assessment of the entrepreneur : Once again, you are required to complete the final two stages of the opportunity analysis report; (3) an assessment of the entrepreneur and the team;
The external services installations : The suggested word limit for the main body of the report is 3,000 for guidance (Excluding Abstract, Conclusion, Appendices, References & Bibliography). For section (1) You need to consider for each component part of construction chosen: Elements ..
Draw the punnett square, with each row and column labeled : Draw the Punnett Square, with each row and column labeled with one of the possible genotypes of sperm and eggs, respectively. (The fractions of these genotypes are included with each label.)
C++ program to convert any base 10 number v to any base b : Write a C++ program that will convert any base 10 number v to any base b. Input two values, the first is the base 10 number and the second value is the base that the base 10 number v is to be converted to. The base can only be between 2 and 9. Inv..
Calculate the depreciation for the year : Calculate the depreciation for the year ending 31st December 2016 using each of the following methods: i) Straight Line ii) Units of production
Is lees balanced scorecard useful in helping lee understand : Is Lee's balanced scorecard useful in helping Lee understand why it did not reach its target market share in 2008? If it is, explain why
Car sale data and try to apply there learning skills : Choose any topic of your interest and create a power point presentation, you should utilize all features were taken in all finished class works. The slide show should present your work in at least twenty slides using different animation techniques..
Ability to communicate ideas and information professionally : It should demonstrate an ability to communicate ideas and information at a professional level, and be written in a form that can be used to build on for the final research report.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a function named sort3

Write a function named "sort3" that takes three floating point arguments, call them "x" , "y" , and "z" , and modifies their values, if necessary, in such a way as to make true the following inequalities: x y z .

  Show how this priority queue is affected by adding string

To tell if one element in ZooGraph has relation X to another element, you look for a path between them. Show whether the following statements are true, using the picture or adjacency matrix.

  Why the native operator will not work with classes

Why the native operator will not work with classes unless they have been properly overloaded

  Write a c program to pick up the largest number

Write a C program to pick up the largest number from any 5 row by 5 column matrix - It must compile with no errors and follow the directions.

  Program in c languagenbspuse microsoft visual studio the

program in c languagenbspuse microsoft visual studio the attachment has the program requirements and the text file has

  Make a game in which you guess a number

Make a game in which you guess a number between two set numbers to find the answer, the game should tell you if you are too low in your guess or too high. For example

  Write a function named is_prime

Write a function named "is_prime" that takes a positive integer argument and returns as its value the integer 1 if the argument is prime and returns the integer 0 otherwise.

  Program that asks user to enter two sides of a rectangle

The program will then display the perimeter and area of the rectangle. Both output values will be labeled and formatted with two decimal places.

  How do you generate arrays, random numbers

How do you generate arrays, random numbers and multiply and add rows, columns and diagonals in C

  Write a program to calculate cars mileage

If you are using VisualStudio 2005, you should include time.h. The call to srand should use the time rather than a number entered by the user and looks like this: srand( static_cast(time( NULL )) ).

  Describe an example of a two-dimensional character array

Describe an example of a two-dimensional character array that could be used to hold a set of text data that might be displayed on a hand-held information display device such as an MP3 player

  Only letters are affected

You are to write a ROT13 (for "rotate 13") decoder to translate a secret message from its encoded state to something readable. In a ROT13 code, 'a' is shifted 13 letters to 'n', 'B' to 'O', 'c' to 'p', 'D' to 'Q', ..., 'N' to 'A', 'o' to 'b', 'P' ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd