SlideShare a Scribd company logo
1 of 2
DELIVERABLES:
Modify the code so that the program will generate 10 random numbers ranging -500 to +1000.
The code was getting 10 numbers from user and you can erase this portion
The program will print the entire set of randomly generated numbers
The program will then print all numbers which are multiole of 5 in the reversed order
The program will finally print the count of non-multple of 7 numbers. Lable all of your outputs
Alter the code below in Code below for the deliverables
/* reverse.c (Chapter 8, page 164) */
/* Reverses a series of numbers */
#include <stdio.h>
#define N 10
int main(void)
{
int a[N], i;
printf("Enter %d numbers: ", N);
for (i = 0; i < N; i++)
scanf("%d", &a[i]);
printf("In reverse order:");
for (i = N - 1; i >= 0; i--)
printf(" %d", a[i]);
printf("n");
return 0;
}
DELIVERABLES-   Modify the code so that the program will generate 10 r.docx

More Related Content

Similar to DELIVERABLES- Modify the code so that the program will generate 10 r.docx

Sample Program file class 11.pdf
Sample Program file class 11.pdfSample Program file class 11.pdf
Sample Program file class 11.pdf
YashMirge2
 
Practical write a c program to reverse a given number
Practical write a c program to reverse a given numberPractical write a c program to reverse a given number
Practical write a c program to reverse a given number
Mainak Sasmal
 
Practical write a c program to reverse a given number
Practical write a c program to reverse a given numberPractical write a c program to reverse a given number
Practical write a c program to reverse a given number
Mainak Sasmal
 
Python Question - Python Assignment Help
Python Question - Python Assignment HelpPython Question - Python Assignment Help
Python Question - Python Assignment Help
Programming Homework Help
 
Datastructure notes
Datastructure notesDatastructure notes
Datastructure notes
Srikanth
 

Similar to DELIVERABLES- Modify the code so that the program will generate 10 r.docx (20)

PCA-2 Programming and Solving 2nd Sem.pdf
PCA-2 Programming and Solving 2nd Sem.pdfPCA-2 Programming and Solving 2nd Sem.pdf
PCA-2 Programming and Solving 2nd Sem.pdf
 
PCA-2 Programming and Solving 2nd Sem.docx
PCA-2 Programming and Solving 2nd Sem.docxPCA-2 Programming and Solving 2nd Sem.docx
PCA-2 Programming and Solving 2nd Sem.docx
 
Sample Program file class 11.pdf
Sample Program file class 11.pdfSample Program file class 11.pdf
Sample Program file class 11.pdf
 
Practical write a c program to reverse a given number
Practical write a c program to reverse a given numberPractical write a c program to reverse a given number
Practical write a c program to reverse a given number
 
Practical write a c program to reverse a given number
Practical write a c program to reverse a given numberPractical write a c program to reverse a given number
Practical write a c program to reverse a given number
 
Common problems solving using c
Common problems solving using cCommon problems solving using c
Common problems solving using c
 
In C Programming create a program that converts a number from decimal.docx
In C Programming create a program that converts a number from decimal.docxIn C Programming create a program that converts a number from decimal.docx
In C Programming create a program that converts a number from decimal.docx
 
Python Question - Python Assignment Help
Python Question - Python Assignment HelpPython Question - Python Assignment Help
Python Question - Python Assignment Help
 
Sasin nisar
Sasin nisarSasin nisar
Sasin nisar
 
C101-PracticeProblems.pdf
C101-PracticeProblems.pdfC101-PracticeProblems.pdf
C101-PracticeProblems.pdf
 
Devry cis-170-c-i lab-4-of-7-functions
Devry cis-170-c-i lab-4-of-7-functionsDevry cis-170-c-i lab-4-of-7-functions
Devry cis-170-c-i lab-4-of-7-functions
 
Devry cis-170-c-i lab-4-of-7-functions
Devry cis-170-c-i lab-4-of-7-functionsDevry cis-170-c-i lab-4-of-7-functions
Devry cis-170-c-i lab-4-of-7-functions
 
C programm.pptx
C programm.pptxC programm.pptx
C programm.pptx
 
C programs
C programsC programs
C programs
 
First c program
First c programFirst c program
First c program
 
Datastructure notes
Datastructure notesDatastructure notes
Datastructure notes
 
Lab-11-C-Problems.pptx
Lab-11-C-Problems.pptxLab-11-C-Problems.pptx
Lab-11-C-Problems.pptx
 
Cs291 assignment solution
Cs291 assignment solutionCs291 assignment solution
Cs291 assignment solution
 
keyword
keywordkeyword
keyword
 
keyword
keywordkeyword
keyword
 

More from Trevorod6Turnery

More from Trevorod6Turnery (20)

Dne hundred college seniors attending a career fair at a university we.docx
Dne hundred college seniors attending a career fair at a university we.docxDne hundred college seniors attending a career fair at a university we.docx
Dne hundred college seniors attending a career fair at a university we.docx
 
dissoiving nonpolar (hydrophobic) substances ithe bentene and turpenti.docx
dissoiving nonpolar (hydrophobic) substances ithe bentene and turpenti.docxdissoiving nonpolar (hydrophobic) substances ithe bentene and turpenti.docx
dissoiving nonpolar (hydrophobic) substances ithe bentene and turpenti.docx
 
Disney streaming)- What are the main trade-offs between being a conten.docx
Disney streaming)- What are the main trade-offs between being a conten.docxDisney streaming)- What are the main trade-offs between being a conten.docx
Disney streaming)- What are the main trade-offs between being a conten.docx
 
Discuss your experience in creating your Network Business Plan- In you.docx
Discuss your experience in creating your Network Business Plan- In you.docxDiscuss your experience in creating your Network Business Plan- In you.docx
Discuss your experience in creating your Network Business Plan- In you.docx
 
Discuss Virtualization and Cloud computing in a paragraph or 2 thanks.docx
Discuss Virtualization and Cloud computing in a paragraph or 2 thanks.docxDiscuss Virtualization and Cloud computing in a paragraph or 2 thanks.docx
Discuss Virtualization and Cloud computing in a paragraph or 2 thanks.docx
 
Discuss the various disorders of the skeletal system- their causes- sy.docx
Discuss the various disorders of the skeletal system- their causes- sy.docxDiscuss the various disorders of the skeletal system- their causes- sy.docx
Discuss the various disorders of the skeletal system- their causes- sy.docx
 
Discuss how pay for performance incentives would NOT improve the quali.docx
Discuss how pay for performance incentives would NOT improve the quali.docxDiscuss how pay for performance incentives would NOT improve the quali.docx
Discuss how pay for performance incentives would NOT improve the quali.docx
 
Discuss in detail the role of the stakeholders in the individual Devel.docx
Discuss in detail the role of the stakeholders in the individual Devel.docxDiscuss in detail the role of the stakeholders in the individual Devel.docx
Discuss in detail the role of the stakeholders in the individual Devel.docx
 
Discuss the characteristics of the functional- divisional- and matrix.docx
Discuss the characteristics of the functional- divisional- and matrix.docxDiscuss the characteristics of the functional- divisional- and matrix.docx
Discuss the characteristics of the functional- divisional- and matrix.docx
 
Discuss the benefits and risk of consuming red meat- and even mor so-.docx
Discuss the benefits and risk of consuming red meat- and even mor so-.docxDiscuss the benefits and risk of consuming red meat- and even mor so-.docx
Discuss the benefits and risk of consuming red meat- and even mor so-.docx
 
Discuss some of the physical and chemical factors involved in the comp.docx
Discuss some of the physical and chemical factors involved in the comp.docxDiscuss some of the physical and chemical factors involved in the comp.docx
Discuss some of the physical and chemical factors involved in the comp.docx
 
Discuss in 1-2 paragraphs why Richard Scrushy is an ethical or unethic.docx
Discuss in 1-2 paragraphs why Richard Scrushy is an ethical or unethic.docxDiscuss in 1-2 paragraphs why Richard Scrushy is an ethical or unethic.docx
Discuss in 1-2 paragraphs why Richard Scrushy is an ethical or unethic.docx
 
Disaster Recovery Plan (DRP) Establish a DRP Policy in one to two page.docx
Disaster Recovery Plan (DRP) Establish a DRP Policy in one to two page.docxDisaster Recovery Plan (DRP) Establish a DRP Policy in one to two page.docx
Disaster Recovery Plan (DRP) Establish a DRP Policy in one to two page.docx
 
Discount Airlines is preparing a contribution margin report segmented.docx
Discount Airlines is preparing a contribution margin report segmented.docxDiscount Airlines is preparing a contribution margin report segmented.docx
Discount Airlines is preparing a contribution margin report segmented.docx
 
Diffusion alone accounts for pulmonary gas exchange- Define diffusion.docx
Diffusion alone accounts for pulmonary gas exchange- Define diffusion.docxDiffusion alone accounts for pulmonary gas exchange- Define diffusion.docx
Diffusion alone accounts for pulmonary gas exchange- Define diffusion.docx
 
difference between straight line depreciation and declining balance de.docx
difference between straight line depreciation and declining balance de.docxdifference between straight line depreciation and declining balance de.docx
difference between straight line depreciation and declining balance de.docx
 
Diane quickly realized that Sunny was a bigger help to her than anyone.docx
Diane quickly realized that Sunny was a bigger help to her than anyone.docxDiane quickly realized that Sunny was a bigger help to her than anyone.docx
Diane quickly realized that Sunny was a bigger help to her than anyone.docx
 
Diabetes insipidus occurs when the lobe of the pituitary gland no long.docx
Diabetes insipidus occurs when the lobe of the pituitary gland no long.docxDiabetes insipidus occurs when the lobe of the pituitary gland no long.docx
Diabetes insipidus occurs when the lobe of the pituitary gland no long.docx
 
Diacylglycerol (DAG)- inositol triphosphate (IP3)- and calcium ions ar.docx
Diacylglycerol (DAG)- inositol triphosphate (IP3)- and calcium ions ar.docxDiacylglycerol (DAG)- inositol triphosphate (IP3)- and calcium ions ar.docx
Diacylglycerol (DAG)- inositol triphosphate (IP3)- and calcium ions ar.docx
 
Develop C functions for the following in a Binary Search tree.docx
Develop C functions for the following in a Binary Search tree.docxDevelop C functions for the following in a Binary Search tree.docx
Develop C functions for the following in a Binary Search tree.docx
 

Recently uploaded

Neurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeNeurulation and the formation of the neural tube
Neurulation and the formation of the neural tube
SaadHumayun7
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
17thcssbs2
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Neurulation and the formation of the neural tube
Neurulation and the formation of the neural tubeNeurulation and the formation of the neural tube
Neurulation and the formation of the neural tube
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
The Ultimate Guide to Social Media Marketing in 2024.pdf
The Ultimate Guide to Social Media Marketing in 2024.pdfThe Ultimate Guide to Social Media Marketing in 2024.pdf
The Ultimate Guide to Social Media Marketing in 2024.pdf
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
factors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptxfactors influencing drug absorption-final-2.pptx
factors influencing drug absorption-final-2.pptx
 
Mbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptxMbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptx
 

DELIVERABLES- Modify the code so that the program will generate 10 r.docx

  • 1. DELIVERABLES: Modify the code so that the program will generate 10 random numbers ranging -500 to +1000. The code was getting 10 numbers from user and you can erase this portion The program will print the entire set of randomly generated numbers The program will then print all numbers which are multiole of 5 in the reversed order The program will finally print the count of non-multple of 7 numbers. Lable all of your outputs Alter the code below in Code below for the deliverables /* reverse.c (Chapter 8, page 164) */ /* Reverses a series of numbers */ #include <stdio.h> #define N 10 int main(void) { int a[N], i; printf("Enter %d numbers: ", N); for (i = 0; i < N; i++) scanf("%d", &a[i]); printf("In reverse order:"); for (i = N - 1; i >= 0; i--) printf(" %d", a[i]); printf("n"); return 0; }