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

Write a C program which reads and access the elements of the csv file by using the system call functions such as read, write and open. You should sum all the no. present inside a particular column in that csv file . by using the system call functions.


1.Write a program with three functions A(), B() and C(). B() is written in asssembly lang.

2. A() should call B() passing a 64-bit integer as an argument.

3. B() should be written in asm and interpret that as a 8-byte ASCII string and print individual characters on screen. You need to call the write() system call from assembly language using the syscall instruction, passing appropriate arguments.

4. Modify the stack in the function B() in such a way that when B() executes the ret instruction, it jumps to a third function C(). C() must also be written in C. This MUST happen without an explicit call to function C(). A mere ret from B, should pass the control to function C() instead of A(). Finally, the function C() needs to terminate the program by using the exit() system call.


Explain queue with the help of an example.


Write an algorithm/program to push an element in array implemented stack


Explain stacks with the help of an example


The airline tickets are most expensive if you are purchasing on the same day and least expensive if purchased earlier. If a ticket is reserved 7 days before the flight then it charges no extra amount, on the 6th day the price is incremented by 10%, on the 5th day 15%, on the 4th day 17%, on the 3rd day 20%, on the 2nd day by 15% and on the final day it is double the original price. Write a program that asks the user the current date and city from which the user will take the flight and the city to which he is traveling as well as the date of flight. Provided the following prices calculate the amount user has to pay. From To Amount Lahore ‘L’ Karachi ‘K’ 13,940 Islamabad ‘I’ Karachi ‘I’ 13, 940 Islamabad ‘I’ Lahore ‘L’ 32,500 Islamabad ‘I’ Gilgit ‘G’ 25,850
We want to replicate the Covid-19 Vaccination notification system. The user input the date of a person who has received the first dose of vaccine they should receive the text message telling them the next date for the 2nd dose. Vaccine Name Waiting Period for 2nd Dose Pfizer ‘F’ 24 Moderna ‘M’ 25 Sinopharm ‘S’ 15 Sinovac ‘V’ 18 Pakvac ‘P’ 21 AstraZeneca ‘A’ Not Required Sample Input Enter the Day of the first dose of vaccination: 12 Enter the Month of the first dose of vaccination: 7 Enter the Year of the first dose of vaccination: 2021 Enter the vaccination Name: P
Ask the user to enter 10 positive integers and find the maximum and minimum number, if the user enters a negative number exit the program displaying the message “NOT COOL”. If all numbers are positive display the maximum and minimum numbers as well as if they are even or odd. We can exit the program using exit(1); statement. Sample Input 20 12 891 981 750 400 3 5 20 2 Sample Output The maximum number is 981 and it is an Odd Number. The minimum number is 2 and it is an Even Number.
#include<stdio.h> int main() { int x=5,y,z; y=x=15; z=x<15; printf("x=%d y=%d z=%d\n",x,y,z); return 0; }

In-Lab Task 2: Testing if a mathematical expression is balanced or not. Write a function that checks whether parentheses in a mathematical expression are balanced or not. The input to the function will be a pointer to a null-terminated array of characters (string). Assume that all the operands in the expression are single-digit numbers. You should call this function from ‘main’ function to demonstrate that it works as intended. The function should return 0 if the expression is balanced, and the index of mismatch otherwise. The function prototype is given below: int isBalanced(char * ptr_array);


LATEST TUTORIALS
APPROVED BY CLIENTS