Money for modifing Programs

I have 5 programs due real soon. I need to get them done so I can pass. I will paypal $5 for each program that is modded correctly. Here is ONE of them:

#include <cstdlib>
#include <iostream>
using namespace std;
/*
This program fills a character array with the letters A through Z.
It then sets every n’th value (where n is user entered) to an
asterisk. Finally, the user specifies two indexes in the array to
be swapped. The final array is printed.

Programmer: Your name here
Date: Current date here
*/

void fill_array (char stuff [26]);
void print_array (char stuff [26]);

int main(int argc, char *argv[])
{
char my_array [26]; // array of characters to be manipulated
int n, // every n’th value in array is set to
// an asterisk (user entered)
swap1, // indexes in the array to be swapped
swap2; // (user entered)

fill_array (my_array);
cout << "Enter an integer (every nth element will be set to an *): ";
cin >> n;
asterisk_array (my_array, n);
cout << "Enter two indexes in the array to swap: ";
cin >> swap1 >> swap2;
swap_array (my_array, swap1, swap2);
print_array (my_array);
cout << "

";
system(“PAUSE”);
return EXIT_SUCCESS;
}

// fill_array sets the values in the array to the user case alphabet
void fill_array (char stuff [26])
{
int index; // index in the array (element to set)
char ch = ‘A’; // character to be placed in the array

for (index = 0; index < 26; index++)
{
stuff [index] = ch;
ch++;
}
}

// print_array prints the character array
void print_array (char stuff [26])
{
int index; // index in the array (element to print)

cout << "
The final array is:

";
for (index = 0; index < 26; index++)
{
cout << stuff [index];
}
}

  1.  Write the <b>function prototype</b> and <b>function definition</b> for the function <b>asterisk_array</b>. It sets every <b>n’th</b> element in the array to an <b>asterisk character</b>.
    
  2.  Write the <b>function prototype</b> and <b>function definition</b> for the function <b>swap_array</b>. It swaps the elements in the array at the two indexes entered by the user.
    

Test your program.


3. Change the call to fill_array in mainto:

fill_array (my_array [26]);

do your CSE homework yourself

lol aren’t you the one who posted this stuff last time and no one did it? what makes you think anyone is going to do this?

Cause i gots the cash lol And yes that was me

you could at least ATTEMPT the problem, then ask for help

or

you could at least give us some peace of mind that you know the concepts and have ANY idea of what you are supposed to do here.

I’m going to be completely honest, I don’t know how to do arrays. This is the last topic she “covered” in class. I’m am completely lost and desperate. That is why I am offering money. I’m not majoring in programming, it’s just a requirement.

I hope somehow your school finds this and you get expelled. Do your own damn work

Try google?

I already tried it for him lol

I’d definitely hire you!

What are you going to school for??

My consulting rate is $125/hr, billable in half hour increments.

PM me if you really want to pass. :slight_smile:

I thought this was another stimulus program

Just put a smiley face after each line.

Good Deal mine is $135 :stuck_out_tongue:

That is what I thought when I read the title.

Good luck dude !

nope, you can’t solve this problem with more spending

yo dawg i heard you like computer science

:bigclap: well played sir

This is too easy. Read your book and figure it out.

Array: 1,2,3,4,5,6,7,8,9,10

My_Array[User_Value] = ‘*’;

Do your own work.

EDIT: Obviously that is not the solution but a tip. This will involve a loop and a little more code.

Lol hai someone write my book report for me plz