Jump to content
منتدى البحرين اليوم

يارووو الحلوة

الأعضاء
  • مشاركات

    5
  • انضم

  • آخر زيارة

عن يارووو الحلوة

Previous Fields

  • الجنس
    انثى
  • سنة الميلاد
    1989

يارووو الحلوة الانجازات

Newbie

Newbie (1/14)

0

الشهرة

  1. help Consider the following definitions for class Cube: class Cube { private : double x,y,z; public: ….. }; Complete the class Cube by adding the following functions. Include for the functions in part a and b both the prototype and the functions code: a) Define a non member function that overloads the operator / which divides the sum of the members x, y, and z in the first object by the sum of the corresponding members in the second object and return the result as double. b) Define a member function that overload the operator != which test if the volume of the first object is not equal the volume of the second object. The volume of a cube is x*y*z.
  2. ممكن احد يساعدني بلييز Write a program that reads employees’ ID followed by names, followed by their addresses, and positions. The program should output each employee’s name followed by the address and position. The output should be printed from the highest position to the lowest position. Employee data should be stored in struct variable of type employeeType which has five components: employeeId of type integer, struct of type employeeName (which has two components, empFirstName and empLastName of type string), address of type string, positionCode of type integer (positionCode is between 103 to 108), and positionName of type string. The following table shows the position codes with its corresponding value of position names. 103 Principal 104 Assistant Principal 105 Curriculum Coordinator 106 Personnel Director 107 Supervisor 108 Head Teacher Suppose that the company has 20 employees. Use an array of 20 components of type employeeType. Your program must contain at least the following functions: A function to read the employees’ data into the array. A function to sort the employees’ data from the highest position to the lowest position. A function to print the employees’ name and their position names after sorting into a file. Your program must output each employee’s name in this form: last name followed by a comma, followed by a space, followed by the first name, and the name must be left-justified.
  3. بلييز احد يعرف يحله تعبت و اني احاول فيه Write a program to process texts files. The program should read a texts file see the attached file (input.txt) and output the data in the file as is. The program should also output the number of words, number of lines, and number of paragraphs.(when you create the input file, insert a blank line between paragraphs, see part d.) You must write and use the following functions. a. initialize: This function initializes all the variables of the function main . b. processBlank: This function reads and writes blanks. Whenever it hits a nonblank (except whitespace characters), it increments the number of words in a line. The number of words in a line is set back to zero in the function updateCount. The function exits after processing blanks c. copyText: This function reads and writes the nonblank characters. Whenever it hits a blank, it exits. d. updateCount: This function takes place at the end of each line. It updates the total word count, increments the number of lines, and sets the number of words on a line back to zero. If there are no words in the line, it increments the number of paragraphs. One blank line (between paragraphs) is used to distinguish paragraphs and should not be counted with the number of lines. e. printTotal: This function outputs the number of words, number of lines , and number of paragraphs. Your program should read data from a file and send output to a file. Do not use any global variables. Use the appropriate parameters to pass values in and out of the functions deb2d***ibed above. Test your function main as shown below. int main() { variables declaration open files read a character while (not end of file) { while (not end of line) { processBlank (parameters) ; copyText (parameters) ; } updateCount (parameters) ; read a character; . . . } printTotal(parameters); close files; return 0; } If you use the attached file (input.txt) as input , you should get the following output. 1. The same texts is copied into the output file. 2. Number of words = 58 Number of lines =6 Number of paragraphs= 3 وهذاا الفايل A computer virus is a computer program that can copy itself and infect a computer without permission or knowledge of the user. However, the term "virus" is commonly used, albeit erroneously, to refer to many different types of malware programs. The original virus may modify the copies, or the copies may modify themselves, as occurs in a metamorphic بلييز لا تردووني
  4. سلام عليكم اخواني ممكن سؤال ضرووري بلييز في loop بشرح السؤال بالعربي لانه واايد طويل يقول فيه 1000 طالب و 1000 لوكر اول يوم لعبووا لعبه الطلبه الطالب الاول يفتح كل اللواكر الطالب الثاني يغلق الاعداد الزوجيه للواكر الطالب الثالث يجيك كل ثلاثه لواكر ( مضاعفات 3) اذا كانت مفتووحه يصكها واذا مغلقه يفتحها الطالب الرابع يجيك كل 4 لواكر ( مضااعفات 4) اذا كانت مفتووحه يصكها واذا مغلقه يفتحها والطلبه بيكلوون على نفس النمط يعني الخامس بيجيك كل خمسه وهكذاا بشكل عاام الطالب nth بيجيك كل nth لوكر اذا مفتوحه بيصكها واذا مغلقه بيفتحها واذا كل التلاميذ اخذووا ادووراهم بعض اللواكر بتكون مفتووحه وبعضها مغلقه السؤال ؟؟ write aprograme that propts the user to enter the number of local in a scool after the game ia over the program output the number of lockers that are opend test run your program for the following input : 1000,5000,10000. do you see any pattern developing ? consider locker number 100 this locler this visted by student number 1,2,4,5,10,20,25,50,100 these are the positive divisors of 100 . similary locker num 30 is visited by student num 1,2,3,5,6,10,15,30 notice that if the num of positive divisor of locker num is odd then at the end of the game the locker is opend . if thenum of positive divisor of locker num is even then at the end the locker is close . بلييز سااعدووني واله تعبت بلييز ولي يخليكم عندي اسايمنات شكبره تعبنا عاطنا اربعه اسئله وهذاا مارفته ابيه اليوم بليز لا تردووي
  5. fبلييز ممكن تفهووني شسالفتهم مشكله الدكتور ما يشرح وما افهم شي عندي اسايمنت وكويز ومب فاهمه شي بليز ساعدووني write aprogramme to caclate the property tax is calculated on 92% of the assessed value 1-of the property for example if the asseed value is 200,000$ the property tax rate is 1.05$for each100$ of the assessed value > your programme shoud prompt the user to enter the assesssed value of the property store the output in a file the folowing format (here is the sample output ) assessed value 200000.00 tasxable amount :184000.00 tasx rate for each 100.00$: 1.05 property tax: 1932.00 formate your out put to have tow decimal place ( note that the left column is left _ justified and the right colume is right _justified ) the roots of the quadratic ax2+bx+c =0 are given by the folloing formula :2- -b +or - b2-4ac over 2a b2-4ac تحت الجذر in the formula the term b2-4ac is called the dib2d***iminant if b2-4ac =0 then the equation has a single repeated root if b2-4ac <0 the equation has two complex root write a programe that prompts the user to input the value of a ( the coefficient of x2) ,b( the of coefficient of x ) , and c ( the constant term ) , and outputs the type of roots of the equation further more if b2-4ac> 0 the programe shoud output the root of the quadratic equation (hint: use the function pow from the header file cmath to calculate the square root شكورين مقدماااا
×
×
  • Create New...