jagomart
digital resources
picture1_Programming Pdf 182727 | 6 2021 04 03!07 51 07 Pm


 121x       Filetype PDF       File size 0.62 MB       Source: uomustansiriyah.edu.iq


File: Programming Pdf 182727 | 6 2021 04 03!07 51 07 Pm
programming fundamentals1 lab 2020 2019 ex1 write a c program to read the student s information name gender three scores then compute the average using system using system collections generic ...

icon picture PDF Filetype PDF | Posted on 31 Jan 2023 | 2 years ago
Partial capture of text on file.
                                                      Programming Fundamentals1. Lab 
           يلولا دبع نانح.م.م / قداص ةنيز .م.م                                                                    يئاسم و يحابص 2020-2019 
           Ex1: Write a C# program to read the student’s information (name, 
           gender, three scores), then compute the average.  
            
      using System; 
            
      using System.Collections.Generic; 
            
      using System.Linq; 
            
      using System.Text; 
            
            
      namespace ConsoleApplication1 
      {   
            
          class Program 
            
          { 
            
              static void Main(string[] args) 
            
              { 
            
                  string name; 
            
                  string gender; 
            
                  double d1, d2, d3, av; 
            
                  Console.WriteLine("Enter the studentr's name: "); 
            
                  name = Console.ReadLine(); 
            
                  Console.WriteLine("Enter the student's gender:"); 
            
                  gender = Console.ReadLine(); 
            
                  Console.WriteLine("Enter the first degree"); 
            
                  d1 = Convert.ToDouble(Console.ReadLine()); 
            
                  Console.WriteLine("Enter the second degree"); 
            
                  d2 = Convert.ToDouble(Console.ReadLine()); 
            
                  Console.WriteLine("Enter the third degree"); 
            
                  d3 = Convert.ToDouble(Console.ReadLine()); 
            
                   av = (d1 + d2 + d3) / 3; 
            
                  Console.WriteLine("Name:"+ name); 
            
                  Console.WriteLine("Gender:" + gender); 
            
                  Console.WriteLine("average :" + av); 
            
                   
            
                  Console.ReadLine(); 
            
              } 
            
          } 
      }   
            
            
            
            
                                           1 
            
                                    Programming Fundamentals1. Lab 
       يلولا دبع نانح.م.م / قداص ةنيز .م.م                                                                    يئاسم و يحابص 2020-2019 
        
                                               
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
                            2 
        
                                    Programming Fundamentals1. Lab 
       يلولا دبع نانح.م.م / قداص ةنيز .م.م                                                                    يئاسم و يحابص 2020-2019 
       EX2: Write a VC# program to compute the area and diameter of a circle by 
       using different values of radius.  
        
                                               
                                
                            3 
        
The words contained in this file might help you see if this file matches what you are looking for:

...Programming fundamentals lab ex write a c program to read the student s information name gender three scores then compute average using system collections generic linq text namespace consoleapplication class static void main string args double d av console writeline enter studentr readline first degree convert todouble second third vc area and diameter of circle by different values radius...

no reviews yet
Please Login to review.