Write program that takes number show number in power of 3

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

Program: Write a program that takes a number between -1 and 121 and output that number in the format of power of 3 (1,3,9,27)

example

13 = 9+3+1

30 = 27+3

25 = 27-3+1

Use any language preferably C++ language.

 

Reference no: EM13693772

Questions Cloud

Process of buying a soda from a soda machine : Please write a Java Program those steps through the process of buying a soda from a Soda Machine.  You must interact with the consumer. Each Soda is one dollar.
Propose a three-step synthesis of hexanal : Problem- Begining with sodium acetylide (NaCCH), propose a three-step synthesis of hexanal.
Create an application that uses a graphic interface : Create an application that uses a graphic interface to capture room assignment data for dormitory residents and writes that data to a random access output file.
What is the maximum concentration of fe3+ : Problem- What is the maximum concentration of fe3+ can a buffer solution that is .10M CH3COOH and .10M CH3COONa hold without forming any precipitate
Write program that takes number show number in power of 3 : Write a program that takes a number between -121 and 121 and output that number in the format of power of 3 (1,3,9,27)
The sn2 reaction between methoxide and (r)- 2-bromobutane : Problem- provide a mechanism for the Sn2 reaction between methoxide and (R)- 2-bromobutane being sure to clearly show stereochemistry of the product and name the resulting product
Calculate the values of delta s rxn for reactions : Problem- Use the data from this table of thermodynamic properties to calculate the values of delta S rxn for each of the following reactions at 25 degrees celcius.
How many ml of hcl solution are needed to neutralize : Problem- 10 mL of 0.50 M NH3 is titrated with 0.20 M HCl solution. How many mL of HCl solution are needed to neutralize the solution
Define amount of hcl to change the ph by one unit : Problem- With three buffers with three different pH's (5,6, and 4), why is it that each buffer would need a different amount of NaOH to change the pH by one unit? Why is it that each buffer would require a different amount of HCL to change the pH ..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program to make the ssds function

Write a program to make the SSDs function as a MM:SS real-time clock. Hint: You must not use a single delay routine for the one second delay because that will not allow for persistence of vision. The displays need to be constantly refreshed during ev..

  Which respectively represent the name of the flower

Write a C++ class, Flower, that has three member variables of type string, int, and float, which respectively represent the name of the flower, its number of pedals, and price.

  Design a program that asks for the number of fat grams

Starting out with Programming logic and design 3rd Author Tony Gaddis - Pg 279, PE 3 Fat Grams Calculator

  Use the function to sort an array of 100 random element

Writing a C program to do a bubble sort. Use the function to sort an array of 100 random elements. Show the input array and the output array.

  Write a program that will call a function

Write a program that will call a function called writeDataToFile to prompt a user for their first name, last name and zip code, and print this information to a file called "UserData.txt". The main function should prompt the user for the same infor..

  Write the definition of the member function two of yclass

Write the definition of the member function two of yClass so that the private member variable a is initialized to the value of the first parameter of two, and the private member variable b is initialized to the value of the second parameter of two..

  Write a function to compute the magnitude f

write a function to compute the magnitude F and direction angle of a two-dimensional force F by using two components of the force fx,fy as its parameters,returning F and using the reference to pass theta value .

  Write application to calculate price of carpeting for room

The Westfield Carpet Company has asked you to write an application that calculates the price of carpeting for rectangular rooms.

  Write a program to analyze students course marks

Write a program to analyze students course marks. The program should read in students course marks from "m2-grading.txt". The data file has a headline including students ID#, course-1marks, course-2 marks and course-3 markes.

  Uml diagram of all the classes

Speaking of converting into the correct object-type, the goal of the factory is to abstract away object creation.

  The array is sorted except the first one

the array is sorted except the first one

  Prepare a program to print the permutation

write a program to print the permutation that lexicographically precedes the given input permutation. If the given permutation is the lexicographically least permutation, then print the input permutation itself.

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