SlideShare una empresa de Scribd logo
1 de 1
Descargar para leer sin conexión
[Outline]
Make a program that shows the N to the power of 0, 1, 2, 3 .. M.
For example, if we assume that N =2, M = 3, the output is 1, 2, 4, 8. (2 to the power of 0 to 3)
Requirements]
0 < N < 10, 1 <= M <= 10
Do not use pow () function
[Program Input/Output]
Input: Two integers N, M
Output: N**0, N**1, N**2, ...
N**M
[Program Run Example]
Enter your base number: 3
Enter vour exponent : 3
3 to power number: 1, 3, 9, 27
[Assessment]
1. Program Source File
The program works fine and has efficient programming logic.
2. Elaboration on your algorithm and program logic, and errors and troubleshoot that you
experienced.

Más contenido relacionado

Más de amie1085

Zara es la cadena principal del minorista de ropa del Grupo Inditex,.pdf
Zara es la cadena principal del minorista de ropa del Grupo Inditex,.pdfZara es la cadena principal del minorista de ropa del Grupo Inditex,.pdf
Zara es la cadena principal del minorista de ropa del Grupo Inditex,.pdf
amie1085
 
Your task is to implement an informed search algorithm that will cal.pdf
Your task is to implement an informed search algorithm that will cal.pdfYour task is to implement an informed search algorithm that will cal.pdf
Your task is to implement an informed search algorithm that will cal.pdf
amie1085
 

Más de amie1085 (18)

_______ es m�s probable que se subcontrate al mejor postor. Habili.pdf
_______ es m�s probable que se subcontrate al mejor postor. Habili.pdf_______ es m�s probable que se subcontrate al mejor postor. Habili.pdf
_______ es m�s probable que se subcontrate al mejor postor. Habili.pdf
 
[10pts] Show that i=0ni!ei=n!1uneu�du.pdf
[10pts] Show that i=0ni!ei=n!1uneu�du.pdf[10pts] Show that i=0ni!ei=n!1uneu�du.pdf
[10pts] Show that i=0ni!ei=n!1uneu�du.pdf
 
Zoom el desaf�o de escalar con COVID-19 en el horizonte Serie de .pdf
Zoom el desaf�o de escalar con COVID-19 en el horizonte Serie de .pdfZoom el desaf�o de escalar con COVID-19 en el horizonte Serie de .pdf
Zoom el desaf�o de escalar con COVID-19 en el horizonte Serie de .pdf
 
Zero trust is a security stance for networking based on not trusting.pdf
Zero trust is a security stance for networking based on not trusting.pdfZero trust is a security stance for networking based on not trusting.pdf
Zero trust is a security stance for networking based on not trusting.pdf
 
Zeynep, ABD�de mezuniyetini kutlamak ve bahar tatili i�in Meksika� ya .pdf
Zeynep, ABD�de mezuniyetini kutlamak ve bahar tatili i�in Meksika� ya .pdfZeynep, ABD�de mezuniyetini kutlamak ve bahar tatili i�in Meksika� ya .pdf
Zeynep, ABD�de mezuniyetini kutlamak ve bahar tatili i�in Meksika� ya .pdf
 
Zara es la cadena principal del minorista de ropa del Grupo Inditex,.pdf
Zara es la cadena principal del minorista de ropa del Grupo Inditex,.pdfZara es la cadena principal del minorista de ropa del Grupo Inditex,.pdf
Zara es la cadena principal del minorista de ropa del Grupo Inditex,.pdf
 
Z0.975=1.96 What does the 0.975 represent What does the 1.96 repr.pdf
Z0.975=1.96 What does the 0.975 represent What does the 1.96 repr.pdfZ0.975=1.96 What does the 0.975 represent What does the 1.96 repr.pdf
Z0.975=1.96 What does the 0.975 represent What does the 1.96 repr.pdf
 
y^=2.5+22x Using least-squares regression, the forecast for the number.pdf
y^=2.5+22x Using least-squares regression, the forecast for the number.pdfy^=2.5+22x Using least-squares regression, the forecast for the number.pdf
y^=2.5+22x Using least-squares regression, the forecast for the number.pdf
 
Your task is to implement an informed search algorithm that will cal.pdf
Your task is to implement an informed search algorithm that will cal.pdfYour task is to implement an informed search algorithm that will cal.pdf
Your task is to implement an informed search algorithm that will cal.pdf
 
You have been at an industry trade show in Toronto all week. At the .pdf
You have been at an industry trade show in Toronto all week. At the .pdfYou have been at an industry trade show in Toronto all week. At the .pdf
You have been at an industry trade show in Toronto all week. At the .pdf
 
Your assignment is to research and investigate the Watergate Break I.pdf
Your assignment is to research and investigate the Watergate Break I.pdfYour assignment is to research and investigate the Watergate Break I.pdf
Your assignment is to research and investigate the Watergate Break I.pdf
 
You have a patient, Janet, that has screening for her son, Julian, t.pdf
You have a patient, Janet, that has screening for her son, Julian, t.pdfYou have a patient, Janet, that has screening for her son, Julian, t.pdf
You have a patient, Janet, that has screening for her son, Julian, t.pdf
 
You work as the IT administrator for a small business and are respon.pdf
You work as the IT administrator for a small business and are respon.pdfYou work as the IT administrator for a small business and are respon.pdf
You work as the IT administrator for a small business and are respon.pdf
 
You have a dataset that consists of the following columns- client.pdf
You have a dataset that consists of the following columns- client.pdfYou have a dataset that consists of the following columns- client.pdf
You have a dataset that consists of the following columns- client.pdf
 
You were given this balance sheet for a bank. Assets. .pdf
You were given this balance sheet for a bank. Assets.             .pdfYou were given this balance sheet for a bank. Assets.             .pdf
You were given this balance sheet for a bank. Assets. .pdf
 
You paid $10 to be entered into a raffle for a prize of $1,000. If .pdf
You paid $10 to be entered into a raffle for a prize of $1,000.  If .pdfYou paid $10 to be entered into a raffle for a prize of $1,000.  If .pdf
You paid $10 to be entered into a raffle for a prize of $1,000. If .pdf
 
You identify a pin1ui mutant with a pin1 gene that cannot be induced.pdf
You identify a pin1ui mutant with a pin1 gene that cannot be induced.pdfYou identify a pin1ui mutant with a pin1 gene that cannot be induced.pdf
You identify a pin1ui mutant with a pin1 gene that cannot be induced.pdf
 
You immunize an H2k mouse with chicken ovalbumin (a protein against .pdf
You immunize an H2k mouse with chicken ovalbumin (a protein against .pdfYou immunize an H2k mouse with chicken ovalbumin (a protein against .pdf
You immunize an H2k mouse with chicken ovalbumin (a protein against .pdf
 

Último

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Último (20)

Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

[Outline]Make a program that shows the N to the power of 0, 1, 2, .pdf

  • 1. [Outline] Make a program that shows the N to the power of 0, 1, 2, 3 .. M. For example, if we assume that N =2, M = 3, the output is 1, 2, 4, 8. (2 to the power of 0 to 3) Requirements] 0 < N < 10, 1 <= M <= 10 Do not use pow () function [Program Input/Output] Input: Two integers N, M Output: N**0, N**1, N**2, ... N**M [Program Run Example] Enter your base number: 3 Enter vour exponent : 3 3 to power number: 1, 3, 9, 27 [Assessment] 1. Program Source File The program works fine and has efficient programming logic. 2. Elaboration on your algorithm and program logic, and errors and troubleshoot that you experienced.