Answer:
#include <iostream>
using namespace std;
int main() {
int a=-156;//negative integer between -1 and -255.
a*=-1;//multiplying a to -1 so that it can become positive.
cout<<a;//printing a.
return 0;
}
Explanation:
The above written program is in C++ and in the program an integer a is defined with a negative value in the program it is -156.Then to convert it to positive integer we have to multiply a to -1 after that printing the value of a on the screen.
<u>Answer:</u>
To change the tab order in which fields are encountered on a form, click the tab order button on the Design tab.
<u>Explanation:</u>
Tab is a combination of data field and name space field. While creating an application database, a tab order defines the order where any user can enter data. Tab order can be created using macros and by using a physical tool which is present in the Design tab.
<u><em>Steps to change the tab order:</em></u>
- Right-click the form in the Navigation Pane and then click Design View.
- On the Design tab, click Tab Order in the Tools group
.
- Tab Order dialog box opens now.
- Click the section you want to change in Tab Order dialog box under Section.
- Now make the changes and Click OK.
C Code:
#include <stdio.h> // Enables use of printf
#include <stdlib.h> // Enables use of rand()
#include <time.h> // Enables use of time()
int main(void)
{
srand(time(0));
int random1 = rand()% 50 + 100;
int random2 = rand()% 50 + 100;
printf("%d\n", random1);
printf("%d\n", random2);
return 0;
}
Output:
115
141
Explanation:
Each time program executes, srand() function generates new random numbers.
rand()%50 + 100 makes sure that number is 2 digit and within the range of 100 to 150.
Then we print the two random numbers where %d represents that we want to print an integer and \n represents new line
Ask a person of authority for help.