[solved] – Question 75749
How to read data from a .txt file into an array of structs..
The file contains data in a table storing Name, Sex, Address and phone number. The amount of lines of data is not known,data reading is terminated by a line containing “end” only.
Expert Answer
[solved] – Question 75750
The person.txt file contains data in a table storing Name, Sex, Address and phone number. The amount of lines of data is not known,data reading is terminated by a line containing “end” only. Declare a struct “Person” to store the information on each person and write a function, readPersoninfo, which accepts a one-dimensional array of Person structs as a parameter and reads the data from person.txt and stores it in the array. The function should return the amount of persons that was read from the file.
Expert Answer
[solved] – Question 75792
Given a variable n refers to a positive int value, use two additional variables, k and total to write a for loop to compute the sum of the cubes of the first n counting numbers, and store this value in total. Thus your code should put 1*1*1 + 2*2*2 + 3*3*3 +… + n*n*n into total. Use no variables other than n, k, and total.
Expert Answer
[solved] – Question 75808
Discuss the generic model of a system and using examples, explain the differences between a closed system, open system, adaptive system and a cybernetic system.
Expert Answer
[solved] – Question 75809
Define telecommunication and discuss the importance of telecommunication networks and networking in an organisation providing at least two examples
Expert Answer
[solved] – Question 75811
Define telecommunication and discuss the importance of telecommunication networks and networking in an organisation providing at least two examples
Expert Answer
[solved] – Question 75812
Discuss the role of Supplier Relationship Management (SRM) with regards to procurement and outline its benefits and barriers.
Expert Answer
[solved] – Question 75813
Within the E-Business security arena, back up and disaster recovery are two terms often used interchangeably. This is however incorrect. Describing E-Business security concept, discuss the terms, back up and disaster recovery.
Expert Answer
[solved] – Question 75814
The program must take the reverse of each of the words inside the string and outputs the resultant string without using any string library function except strlen(), gets(), puts(). In the main function, input one string and pass it to a function named cleanString. This function removes the non-alphabetic characters and writes the rest into a new character array (i.e. non-alphabetic characters are +, – ?, *, 1,2,3,…). After receiving a cleaned array, you should call another function named reverseWords. This function takes and returns the string as a parameter. String should be arranged in a reversed order for each word. All operations in this function should take place on the same string, you shouldn’t be using a temporary array for the reverse operation. Finally, print the result in the main function.
Sample run:
Enter first string: This-?=*is__12the**23%third?[]homework–_?().
Cleaned string: This is the third homework
Reversed string: sihT si eht driht krowemoh
Expert Answer
[solved] – Question 7582
WRITE A PROGRAM THAT GENERATES THE FOLLOWING TABLES
1990 135
1991 7290
1992 11300
1993 16200
Expert Answer

