Write a batch script called micro.bat to open the Microsoft Visual Studio 2014 a
ID: 3778824 • Letter: W
Question
Write a batch script called micro.bat to open the Microsoft Visual Studio 2014 and DOS command, and comment in the file for each program that you are opening.
Write a C program using Microsoft Visual Studio to sort an array of numbers into an ascending order from console input. In order to sort the array, utilize Bubble Sort as it will be the easiest to implement. Here is what the program should do:
program should ask you how many integers you are entering. then ask to input the specified number of integers.
Explanation / Answer
call "C:Program FilesMicrosoft Visual Studio 2008VCcvarsall.bat" x86_amd64
svn update
delete some files
MSBuild MySolutiuon.sln
... more commands ...
2)
#include <stdio.h>
#define MAXSIZE 10
void main()
{
int array[MAXSIZE];
int i, j, num, temp;
printf("Enter the value of num ");
scanf("%d", &num);
printf("Enter the elements one by one ");
for (i = 0; i < num; i++)
{
scanf("%d", &array[i]);
}
printf("Input array is ");
for (i = 0; i < num; i++)
{
printf("%d ", array[i]);
}
/* Bubble sorting begins */
for (i = 0; i < num; i++)
{
for (j = 0; j < (num - i - 1); j++)
{
if (array[j] > array[j + 1])
{
temp = array[j];
array[j] = array[j + 1];
array[j + 1] = temp;
}
}
}
printf("Sorted array is... ");
for (i = 0; i < num; i++)
{
printf("%d ", array[i]);
}
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.