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

Create a program that takes in a student first name and average mark obtained, the system should the group the students using the first letter in their name modulus 10 [ Remember that characters are considered as numeric values, hence ‘J’%10 is a valid calculation ]. For example if the student name is Cena, then the student belongs to group 7 because ‘C’%10 = 7 and if the name was Jack then the student belongs to group 4. The program should further use the group number to get the group lecturer and class date as follows: [Hint: If the result is 0 then the student belongs to group 10]

Groups

Group Lecturer

Class date

1 , 7, 9

Mrs. T. Chikohora

Monday

2 , 4, 5

Mrs. J. Muntuumo

Wednesday

3, 6, 10

Mr. S. Tjiraso

Friday


Choose the c methods applicable for reading to a text file from the items given below:

(a) get ()

(b) close ()

(c) getw()

(d) fread()


fill in the missing:


Assume the following program snippet writes to text file:

int main() {
 FILE * ptr;
 int num;
 _____________________= fopen("d:\\writingTo_File.txt", "");_________________

 if (ptr !=___________________) {
 printf("File created successfully!\n");
 }
 else {
 printf("Failed to create the file.\n");
 // exit status that an error occurred
 return -1;
 }


#include <stdio.h>

int main() {

 FILE * fp;
 fp = fopen ("d:\\music.txt", "w");

 fprintf (fp ,"Engineering Programming");
 fclose(____________);
 return______________;
}



Assume the following piece of code reads from a text file

int main() {

int sum =0;
FILE * ptr;
ptr = fopen("d:\\students.________","___________");

if (ptr ==NULL){
 _______________("file does not exist!!");
 exit(0);
}

Create a program that takes in a student first name and average mark obtained, the system should the group the students using the first letter in their name modulus 10 [ Remember that characters are considered as numeric values, hence ‘J’%10 is a valid calculation ]. For example if the student name is Cena, then the student belongs to group 7 because ‘C’%10 = 7 and if the name was Jack then the student belongs to group 4. The program should further use the group number to get the group lecturer and class date as follows: [Hint: If the result is 0 then the student belongs to group 10]

 

 

 Groups

Group Lecturer

Class date

1 , 7, 9

Mrs. T. Chikohora

Monday

2 , 4, 5

Mrs. J. Muntuumo

Wednesday

3, 6, 10

Mr. S. Tjiraso

Friday



Using a whole loop create a that calculates the monthly salaryof N [ where N is the number if employees that's entered by the user.] If the employee worked less or equal to 160 hours, the employee wilk be paid N$240.00 per hour. For any hour greater than 160, the employee is paid N$320.00 per hour.


Write a C++ program to help Dr Plaatje with the running of her surgery. Your program should use 3 arrays, one to store ages of patients, one to store financial data, that is fees patients paid, the last one stores file or patient Id’s. Assume array length of 100. Your program must further do the following: 1) Search the array containing the ages for youngest patient and the oldest patient and print the patient Id and the corresponding ages. 2) Traverses the financial data array to calculate total income for the day and print the total. 3) Count and prints the total number of patients seen on the day.
Output The first line will contain a message prompt to input the first number. The second line will contain a message prompt to input the second number. The third line will contain a message prompt to input the third number. The last line will contain the largest among the three numbers.
Define a class BOOK with the following specifications: PRIVATE DATA MEMBERS: BNO integer type BOOKTITLE 30 characters COPIES integer type PRICE float type AMOUNT float type
Prepare a c++ program of determining how many character/s in the phrase (inputting any phrase) and counts all the characters in the phrase of the sample run below. Sample run1: Hello!!! Please enter any phrase and I will count how many characters in it. _you are the love of my life. (user input) The characters in the phrase is 27. Thank you. So, what is the character at position 10 ? The character at position 10 is e
Prepare a c++ of the given phrase ‘ Game Over?!!! ‘ of the following: a.) Delete “ Game “ resulting “ over!!! “ b.) Delete “Game r!!! “ resulting “ ave “ c.) Delete “ G ove “ resulting “ ame r!!! “
Prepare a c++ program of the following. a.) Display the phrase “ sing a song “ b.) After displaying the phrase “ sing a song “ change the eleventh character to “ s “ and find the result. c.) Find song in the phrase. d.) Delete the whole phrase and display the message “ Bye phrase you are now officially deleted.”
LATEST TUTORIALS
APPROVED BY CLIENTS