Questions: 1 978

Answers by our Experts: 1 850

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

void fun()

{

 static int i=10;

print ("%d", ++i);

}

int main ()

{

fun ();

fun();

}

Create a C program and a flowchart that will generate a table of chosen mathematical operations. The user has to be prompted first for the math operation and then enter a value that will be used to add, subtract, multiply or divide from 1 to 10 to complete the table. A sample run is provided below to illustrate the output.

M A T H O P E R A T I O N S:

[M] – Multiplication

[D] – Division

[A] – Addition

[S] - Subtraction

Enter your choice: M

Enter your desired value to be multiplied: 7

7*1=7

7*2=14

7*3=21

7*4=28

7*5=35

7*6=42

7*7=49

7*8=56

7*9=63

7*10=70


Continue [Y/N]? Y

M A T H O P E R A T I O N S:

[M] – Multiplication

[D] – Division

[A] – Addition

[S] - Subtraction

Enter your choice: A

Enter your desired value to be added:4

4+1=5

4+2=6

4+3=7

4+4=8

4+5=9

4+6=10

4+7=11

4+8=12

4+9=13

4+10=14

Continue [Y/N]? N

Thank you for choosing my program


Write a program to find the counseling slot based on the student's Cutoff marks, age, HSC and SSLC marks

Write a program to find the students list who are allocated for a specific counselling slot based on the student’s Cutoff marks, Age, HSC and SSLC marks.




Write a program to find the student details who got slot on a specific counselling date based on the student’s Cutoff marks, Age, HSC and SSLC marks.


Write a program to find the student details who got slot on a specific counselling date based on the student’s Cutoff marks, Age, HSC and SSLC marks.



Description

You are working on an app for a company like Uber. You will be provided with the number of laps that the user has

taken and travel details (distance, speed and direction) of the laps. Write a program that calculates the total duration of

the trip and also the direction in which the customer has travelled.

Input:

First line of the input will be the number of laps.

The rest of the lines in the input will contain entry in the format of "Distance Speed Direction" for each lap.

Output:

T. First line of the output should show the total duration of the trip in minutes (T).

2. Second line of the output should show the direction from the starting point (D).


92) Fix the Error

typedef struct
{
int day;
int month;
int year;
} date_t;
typedef struct
{
char surname[20];
char forename[20];
date_t  birthday;
} person_t;
int main() {
person_t    person[MAX_ENTRIES];
inentry;
for (entry = 0; entry < MAX_ENTRIES; entry++)
{
printf("\n\nRecord %d:\n", entry);
printf("Enter the surname: ");
scanf("%s", person[entry].surname);

scanf("%s", person[entry].forename);

scanf("%d", &person[entry].birthday.day);

scanf("%d", &person[entry].birthday.month);

scanf("%d", &person[entry].birthday.year);
printf("Enter an index between 0 and %d: ", MAX_ENTRIES - 1);
scanf("%d", &entry);                
printf("Surname: %s\n", person[entry].surname);
printf("Forename: %s\n", person[entry].forename);
printf("Date of birth: %02d/%02d/%04d\n\n\n",











9) Enter the code

#include <stdio.h>

int main(int argc, char *argv[]) 
{
    
    int a;
    int *b;
    
    b = &a;  // b contains the address of a

    // Display the value of b and the dereferenced value
    printf("b = %d, *b = %d\n", b, *b); 

    // Assign a value to a
    a = 3245;

    // Display the value of b and the dereferenced value
    printf("b = %d, *b = %d\n", b, *b); 
    
    return 0;
}


• Make the following two-line addition to the end of the code

Assign the value 12345 to the dereferenced pointer b. In other words, assign the value 12345 to *b

Display the value of a.

Write a short reflective account explaining the functionality of your modifications.


Implement insertion sort.

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS