SlideShare a Scribd company logo
1 of 1
Download to read offline
Use the input function to ask the user for a positive, whole number. Then use a for loop to
generate a vector containing as many elements of the following sequence as the user requested.
For example, if the user entered 7 then your program should generate a vector containing: 1/2 3/4
5/6 7/8 9/10 11/12 13/14 The numerator of the sequence starts at 1 and is always odd. The
denominator starts at 2 and is always even. Both the numerator and denominator go up by two
each time.

More Related Content

More from sales87

Use the Plan X and Plan Y tax schemes to complete the following tabl.pdf
Use the Plan X and Plan Y tax schemes to complete the following tabl.pdfUse the Plan X and Plan Y tax schemes to complete the following tabl.pdf
Use the Plan X and Plan Y tax schemes to complete the following tabl.pdfsales87
 
Use the pervious question to answer question 4. Suppose that in car.pdf
Use the pervious question to answer question 4.  Suppose that in car.pdfUse the pervious question to answer question 4.  Suppose that in car.pdf
Use the pervious question to answer question 4. Suppose that in car.pdfsales87
 
Use the information below to Developdraw a Systemigram for enviro.pdf
Use the information below to Developdraw a Systemigram for enviro.pdfUse the information below to Developdraw a Systemigram for enviro.pdf
Use the information below to Developdraw a Systemigram for enviro.pdfsales87
 
Use the phylogeny below to determine whether each statement is true .pdf
Use the phylogeny below to determine whether each statement is true .pdfUse the phylogeny below to determine whether each statement is true .pdf
Use the phylogeny below to determine whether each statement is true .pdfsales87
 
Use the code below from the previous assignment that we need to exte.pdf
Use the code below from the previous assignment that we need to exte.pdfUse the code below from the previous assignment that we need to exte.pdf
Use the code below from the previous assignment that we need to exte.pdfsales87
 
Use este estudio de caso para responder las siguientes preguntas. .pdf
Use este estudio de caso para responder las siguientes preguntas. .pdfUse este estudio de caso para responder las siguientes preguntas. .pdf
Use este estudio de caso para responder las siguientes preguntas. .pdfsales87
 
Usar su autoridad y poder formal para resolver un conflicto, mientra.pdf
Usar su autoridad y poder formal para resolver un conflicto, mientra.pdfUsar su autoridad y poder formal para resolver un conflicto, mientra.pdf
Usar su autoridad y poder formal para resolver un conflicto, mientra.pdfsales87
 
Usando la teor�a de la expectativa de la motivaci�n como marco para .pdf
Usando la teor�a de la expectativa de la motivaci�n como marco para .pdfUsando la teor�a de la expectativa de la motivaci�n como marco para .pdf
Usando la teor�a de la expectativa de la motivaci�n como marco para .pdfsales87
 
Usando Internet o fuentes de bibliotecas, seleccione cuatro organiza.pdf
Usando Internet o fuentes de bibliotecas, seleccione cuatro organiza.pdfUsando Internet o fuentes de bibliotecas, seleccione cuatro organiza.pdf
Usando Internet o fuentes de bibliotecas, seleccione cuatro organiza.pdfsales87
 
URGENTAssignment 3 - Software DesginPauline is considering how.pdf
URGENTAssignment 3 - Software DesginPauline is considering how.pdfURGENTAssignment 3 - Software DesginPauline is considering how.pdf
URGENTAssignment 3 - Software DesginPauline is considering how.pdfsales87
 
Uscinski and his co-authors describe how belief in political conspir.pdf
Uscinski and his co-authors describe how belief in political conspir.pdfUscinski and his co-authors describe how belief in political conspir.pdf
Uscinski and his co-authors describe how belief in political conspir.pdfsales87
 
Uno de los beneficios del estado de flujos de efectivo es que ayuda .pdf
Uno de los beneficios del estado de flujos de efectivo es que ayuda .pdfUno de los beneficios del estado de flujos de efectivo es que ayuda .pdf
Uno de los beneficios del estado de flujos de efectivo es que ayuda .pdfsales87
 
Uno de los m�dicos no se present� a trabajar sin llamar Los pacien.pdf
Uno de los m�dicos no se present� a trabajar sin llamar Los pacien.pdfUno de los m�dicos no se present� a trabajar sin llamar Los pacien.pdf
Uno de los m�dicos no se present� a trabajar sin llamar Los pacien.pdfsales87
 
Unisa has invited labour unions, staff members and students to discu.pdf
Unisa has invited labour unions, staff members and students to discu.pdfUnisa has invited labour unions, staff members and students to discu.pdf
Unisa has invited labour unions, staff members and students to discu.pdfsales87
 
Unit VII Case StudyThe employees at your organization have formed .pdf
Unit VII Case StudyThe employees at your organization have formed .pdfUnit VII Case StudyThe employees at your organization have formed .pdf
Unit VII Case StudyThe employees at your organization have formed .pdfsales87
 
UQ�s Got Talent is a new talent show that is being launched in 2023 .pdf
UQ�s Got Talent is a new talent show that is being launched in 2023 .pdfUQ�s Got Talent is a new talent show that is being launched in 2023 .pdf
UQ�s Got Talent is a new talent show that is being launched in 2023 .pdfsales87
 
Use python to answer Done on google colabortory. Dataset used Ol.pdf
Use python to answer Done on google colabortory. Dataset used Ol.pdfUse python to answer Done on google colabortory. Dataset used Ol.pdf
Use python to answer Done on google colabortory. Dataset used Ol.pdfsales87
 
use PostgreSQL codeTask 2 a. Create a new database called realdb.pdf
use PostgreSQL codeTask 2 a. Create a new database called realdb.pdfuse PostgreSQL codeTask 2 a. Create a new database called realdb.pdf
use PostgreSQL codeTask 2 a. Create a new database called realdb.pdfsales87
 
use partial fraction expansion and the inverse z-transform to find u.pdf
use partial fraction expansion and the inverse z-transform to find u.pdfuse partial fraction expansion and the inverse z-transform to find u.pdf
use partial fraction expansion and the inverse z-transform to find u.pdfsales87
 
use malloc function and pointer Write a C program to calculate.pdf
use malloc function and pointer Write a  C  program to calculate.pdfuse malloc function and pointer Write a  C  program to calculate.pdf
use malloc function and pointer Write a C program to calculate.pdfsales87
 

More from sales87 (20)

Use the Plan X and Plan Y tax schemes to complete the following tabl.pdf
Use the Plan X and Plan Y tax schemes to complete the following tabl.pdfUse the Plan X and Plan Y tax schemes to complete the following tabl.pdf
Use the Plan X and Plan Y tax schemes to complete the following tabl.pdf
 
Use the pervious question to answer question 4. Suppose that in car.pdf
Use the pervious question to answer question 4.  Suppose that in car.pdfUse the pervious question to answer question 4.  Suppose that in car.pdf
Use the pervious question to answer question 4. Suppose that in car.pdf
 
Use the information below to Developdraw a Systemigram for enviro.pdf
Use the information below to Developdraw a Systemigram for enviro.pdfUse the information below to Developdraw a Systemigram for enviro.pdf
Use the information below to Developdraw a Systemigram for enviro.pdf
 
Use the phylogeny below to determine whether each statement is true .pdf
Use the phylogeny below to determine whether each statement is true .pdfUse the phylogeny below to determine whether each statement is true .pdf
Use the phylogeny below to determine whether each statement is true .pdf
 
Use the code below from the previous assignment that we need to exte.pdf
Use the code below from the previous assignment that we need to exte.pdfUse the code below from the previous assignment that we need to exte.pdf
Use the code below from the previous assignment that we need to exte.pdf
 
Use este estudio de caso para responder las siguientes preguntas. .pdf
Use este estudio de caso para responder las siguientes preguntas. .pdfUse este estudio de caso para responder las siguientes preguntas. .pdf
Use este estudio de caso para responder las siguientes preguntas. .pdf
 
Usar su autoridad y poder formal para resolver un conflicto, mientra.pdf
Usar su autoridad y poder formal para resolver un conflicto, mientra.pdfUsar su autoridad y poder formal para resolver un conflicto, mientra.pdf
Usar su autoridad y poder formal para resolver un conflicto, mientra.pdf
 
Usando la teor�a de la expectativa de la motivaci�n como marco para .pdf
Usando la teor�a de la expectativa de la motivaci�n como marco para .pdfUsando la teor�a de la expectativa de la motivaci�n como marco para .pdf
Usando la teor�a de la expectativa de la motivaci�n como marco para .pdf
 
Usando Internet o fuentes de bibliotecas, seleccione cuatro organiza.pdf
Usando Internet o fuentes de bibliotecas, seleccione cuatro organiza.pdfUsando Internet o fuentes de bibliotecas, seleccione cuatro organiza.pdf
Usando Internet o fuentes de bibliotecas, seleccione cuatro organiza.pdf
 
URGENTAssignment 3 - Software DesginPauline is considering how.pdf
URGENTAssignment 3 - Software DesginPauline is considering how.pdfURGENTAssignment 3 - Software DesginPauline is considering how.pdf
URGENTAssignment 3 - Software DesginPauline is considering how.pdf
 
Uscinski and his co-authors describe how belief in political conspir.pdf
Uscinski and his co-authors describe how belief in political conspir.pdfUscinski and his co-authors describe how belief in political conspir.pdf
Uscinski and his co-authors describe how belief in political conspir.pdf
 
Uno de los beneficios del estado de flujos de efectivo es que ayuda .pdf
Uno de los beneficios del estado de flujos de efectivo es que ayuda .pdfUno de los beneficios del estado de flujos de efectivo es que ayuda .pdf
Uno de los beneficios del estado de flujos de efectivo es que ayuda .pdf
 
Uno de los m�dicos no se present� a trabajar sin llamar Los pacien.pdf
Uno de los m�dicos no se present� a trabajar sin llamar Los pacien.pdfUno de los m�dicos no se present� a trabajar sin llamar Los pacien.pdf
Uno de los m�dicos no se present� a trabajar sin llamar Los pacien.pdf
 
Unisa has invited labour unions, staff members and students to discu.pdf
Unisa has invited labour unions, staff members and students to discu.pdfUnisa has invited labour unions, staff members and students to discu.pdf
Unisa has invited labour unions, staff members and students to discu.pdf
 
Unit VII Case StudyThe employees at your organization have formed .pdf
Unit VII Case StudyThe employees at your organization have formed .pdfUnit VII Case StudyThe employees at your organization have formed .pdf
Unit VII Case StudyThe employees at your organization have formed .pdf
 
UQ�s Got Talent is a new talent show that is being launched in 2023 .pdf
UQ�s Got Talent is a new talent show that is being launched in 2023 .pdfUQ�s Got Talent is a new talent show that is being launched in 2023 .pdf
UQ�s Got Talent is a new talent show that is being launched in 2023 .pdf
 
Use python to answer Done on google colabortory. Dataset used Ol.pdf
Use python to answer Done on google colabortory. Dataset used Ol.pdfUse python to answer Done on google colabortory. Dataset used Ol.pdf
Use python to answer Done on google colabortory. Dataset used Ol.pdf
 
use PostgreSQL codeTask 2 a. Create a new database called realdb.pdf
use PostgreSQL codeTask 2 a. Create a new database called realdb.pdfuse PostgreSQL codeTask 2 a. Create a new database called realdb.pdf
use PostgreSQL codeTask 2 a. Create a new database called realdb.pdf
 
use partial fraction expansion and the inverse z-transform to find u.pdf
use partial fraction expansion and the inverse z-transform to find u.pdfuse partial fraction expansion and the inverse z-transform to find u.pdf
use partial fraction expansion and the inverse z-transform to find u.pdf
 
use malloc function and pointer Write a C program to calculate.pdf
use malloc function and pointer Write a  C  program to calculate.pdfuse malloc function and pointer Write a  C  program to calculate.pdf
use malloc function and pointer Write a C program to calculate.pdf
 

Recently uploaded

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 

Recently uploaded (20)

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 

Use the input function to ask the user for a positive, whole number..pdf

  • 1. Use the input function to ask the user for a positive, whole number. Then use a for loop to generate a vector containing as many elements of the following sequence as the user requested. For example, if the user entered 7 then your program should generate a vector containing: 1/2 3/4 5/6 7/8 9/10 11/12 13/14 The numerator of the sequence starts at 1 and is always odd. The denominator starts at 2 and is always even. Both the numerator and denominator go up by two each time.