Navigation

    Cyberian
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Pro Blog
    • Users
    • Groups
    • Unsolved
    • Solved
    Quiz 100% Result
    • CS411 GDB 1 Solution and Discussion

      danish hafeez

      Re: CS411 GDB 1 Solution and Discussion

      Total Marks 5
      Starting Date Monday, February 08, 2021
      Closing Date Tuesday, February 09, 2021
      Status Open
      Question Title Graded Discussion Board
      Question Description
      GDB STATEMENT

      Suppose you need to develop an interactive social networking application in which users can share their adventures and experiences. This App should be user friendly, secure, have a modern UI with an optimized usage and performance, and solely developed for Windows 10.

      According to the specifications mentioned above, which technology would you consider best for this specific scenario: Windows Form, WPF or UWP? Justify your selection with logical reasoning that contains pros and cons of all these technologies.

      Important Instructions:

      Please note that no extra time will be given for posting comments on GDB.

      Use the font style “Times New Roman” with font size “12”.

      Do not copy or exchange your answer with other students. Two identical comments will be marked zero.

      Your comments should not exceed 200 words.

      CS411 - Visual Programming
    • CS411 Assignment 2 Solution and Discussion

      zaasmi

      Re: CS411 Assignment 2 Solution and Discussion

      Visual Programming (CS411)
      Assignment # 2 (GRADED)
      Total marks = 20 Due Date = 17th June 2020
      Please carefully read the following instructions before attempting the assignment.

      First of all listen to the video lectures. Lecture No.8 to Lecture No.15 are included in assignment After that consult handouts and recommended books to clarify your concepts. You are supposed to submit your complete solution project as a single file (i. e. zip or RAR). Any other formats like scan images, PDF, bmp, docx etc. will not be accepted. It should be clear that your assignment would not get any credit if:
      • The assignment is submitted after due date.
      • The submitted assignment does not open or file is corrupt.
      • The assignment is copied. Note that strict action would be taken if the submitted assignment is copied from any other student. Both students will be punished equally.

      Important Note:
      Assignment comprises of 20 Marks. Note that no assignment will be accepted after due date via email in any case (whether it is the case of load shedding or emergency electric failure or internet malfunctioning etc.). Hence, refrain from uploading assignment in the last hour of the deadline and try to upload Solutions at least 02 days before the deadline to avoid any inconvenience.
      For any query please contact: [email protected]
      Problem Statement:
      You are required to create a C# Console application using Visual Studio with the following functional requirements:

      Consider that you are going to generate the electricity bill of your own home. To generate this bill you need to consider following requirements.

      • You will take previous meter reading as input and this previous meter reading will be any three consecutive digits of your VUID from which at least two digits should be nonzero. For example, Your VUID is BC123056789 so you can take 123,056 or 789 as your input.
      18a6717c-a9a0-4d3f-9e24-7c53256d4cfa-image.png

      • You will use current meter reading as 1000(fixed). No need to take it as input from user.

      • While you input your digits on screen a windows form will appear which will perform the functionality of Event occurrence that will generate “Total Bill”. You can set location of button on screen according to your choice.

      d60b3c28-68c0-4631-9444-5450dfd70416-image.png

      • First you will generate “Unit consumed for current bill”. For this calculation you will subtract the previous meter reading from the current meter reading to find the consumed units and display the consumed units on window form. It will be displayed as follows
      8e7f0919-0180-43ca-a4af-de8ac1f49953-image.png

      • On second step you will perform the “Total bill” calculation considering the following conditions according to your generated units of current month and then display the Generated bill on windows form.

      o If the consumed units are less than or equal to 300 then charge cost is 10 rupees per unit.
      o If the consumed units are greater than 300 and less than equal to 500 then you will charge 10 rupees for 300 units and 15 rupees for units above 300. For example, if consumed units are 400 then calculation for first 300 units cost per unit will be 10 and remaining 100 units cost will be 15 per unit.
      o If the consumed unit is greater than 500 then you will charge 10 rupees for 300 units, 15 rupees for 200 units and 20 rupees for those units which are above 500. For example, if consumed unit is 700 then calculation for first 300 units cost per unit will be 10 per unit, for 200 units cost will be 15 per unit and other 200 units which are above 500 cost 20 rupees per unit.
      o In this way you have to find cost of total consumed unit considering above three conditions.

      Sample output:
      daf03f69-e355-45a7-8154-411ad4569a87-image.png

      Note: You will use built-in delegate to pass the method (method name should be your VUID) and all the bill generation calculation will be performed under this method body.

      Submission details
      Following Files Must be submitted in a single zip or rar file.
      • .C# code file (file name should be your VUID)
      • A .gif file which shows only “execution” of your Application (For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)
      You are not required to submit the complete project, only copy required file from project folder.
      If you do not submit any of the above-mentioned file you will be awarded Marks partially.

      Assignment2_exampleoutput.gif

      CS411 - Visual Programming
    • CS411 Assignment 1 Solution and Discussion

      M

      Re: CS411 Assignment 1 Solution and Discussion

      Visual Programming (CS411)
      Assignment # 1 (GRADED)
      Total marks = 20 Due Date = 1st June 2020
      Please carefully read the following instructions before attempting the assignment.

      First of all listen to the video lectures. After that consult handouts and recommended books to clarify your concepts. You are supposed to submit your complete solution project as a single file (i. e. zip or RAR). Any other formats like scan images, PDF, bmp, docx etc. will not be accepted. It should be clear that your assignment would not get any credit if:
      • The assignment is submitted after due date.
      • The submitted assignment does not open or file is corrupt.
      • The assignment is copied. Note that strict action would be taken if the submitted assignment is copied from any other student. Both students will be punished equally.

      Important Note:
      Assignment comprises of 20 Marks. Note that no assignment will be accepted after due date via email in any case (whether it is the case of load shedding or emergency electric failure or internet malfunctioning etc.). Hence, refrain from uploading assignment in the last hour of the deadline and try to upload Solutions at least 02 days before the deadline to avoid any inconvenience.
      For any query please contact: [email protected]
      Problem Statement:
      You are required to create a C# application Console using Visual Studio with the following functional requirements:
      Create 4 classes:

      Bowler 2.Spinner 3.Medium 4.Fast

      Each class will have a function named “speed” which will output speed as specified by class name.

      61de52b5-256a-4c18-bdc1-b9b80335cdbe-image.png
      You will program this as follows

      • You will take as an input the last two digit of your VUID. For example your ID is BC123456789 so you take here “89” as input and program will decide which range it belongs to i.e. Fast, Medium, Spinner
      • For this you create bowler type object and later on initialize it with spinner, medium and fast bowler as per below provided ranges.
       Spinner pace bowler has range of 00 to 33
       Medium pace bowler has range of 34 to 66
       Fast pace bowler has range of 67 to 100
      • If bowler pace is not in the specified range then the object type must be bowler.
      Further, if any user tries to enter alphabetical value, it should through Exception and let the user to enter a new numeric value.

      Note: Program must show your own VUID usage.

      Submission details
      Following Files Must be submitted in a single zip or rar file.
      • .C# code file (file name should be your VUID)
      • A .gif file which shows only “execution” of your Application (For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)
      You are not required to submit the complete project, only copy required file from project folder.
      If you do not submit any of the above-mentioned file you will be awarded Marks partially.

      CS411 - Visual Programming
    • CS411 GDB 1 Solution and Discussion

      zareen

      CS411 GDB 1 Solution and Discussion

      CS411 - Visual Programming
    • CS411 Assignment 3 Solution and Discussion

      zareen

      Visual Programing (CS411)
      Assignment#03 (GRADED)
      Total marks = 20
      Deadline Date = 23-01-2020
      Please carefully read all the instructions carefully before attempting the assignment.
      Problem Statement:
      Develop a WPF application in C# with the following functionality:
      • Create a Thread using threadpool.
      • It will also utilize the stopwatch for thread time execution calculation.
      • When the application starts the following window appears:
      d4e52c4f-285b-4b15-b925-e39d8d40eb6b-image.png
      One Text Box:
      Your application will have textbox for input field along with label:
      Student ID(Last 4 digit)
      This will input Last Four digit of your VUID i.e. VUID:123456789
      It will take6789 as input
      One Button:
      Start writing to file (This button will write data to text file named: output.txt)
      One Label:
      A final label for showing the time consumed by threadpool to write in text file
      Working Procedure:
      • Clicking the button “Start writing to file “will create the thread using threadpool and start the timer (Stopwatch).
      • This thread will execute a process having a for loop
      • For loop will execute number of times enterd in textbox (VUID last 4 digit value)
      • Then Label will show time consumed while writing into text file.

      Write your own VU id in the application name and id fields while creating .gif file, otherwise your assignment will not be accepted.
      Output.gif has been attached with this Assignment file please observe this file carefully your program’s output must be like this output file.
      Submission details
      Following Files Must be submitted in a single zip or rar file.
      • .C# code file
      • .XAML File (Front End file)
      • Text file (named as your (output.txt)
      • A .gif file which shows Run phase of your Application (For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)
      You are not required to submit the complete project, only copy these three files from project folder. Please note if you submit doc file you will be awarded 0 marks.
      If you do not submit any of the above mentioned file 25% marks per file will be deducted.
      assignment3giffinal.gif

      CS411 - Visual Programming
    • CS411 Assignment 2 Solution and Discussion

      zareen

      Visual Programing (CS411)
      Assignment#02 (GRADED)
      Total marks = 20
      Deadline Date = 03-12-2019
      Please carefully read all the instructions carefully before attempting the assignment.
      Problem Statement:
      You are required to create a WPF application, title must be your VU ID:
      One Text Box:
      Your application will have textbox for input field along with label:
      Student ID
      One Button:
      Search (This button will read data from text file)
      One Label:
      A final label for showing Student correct and complete name against VUID or a failure note. (“VUID not found”)

      Clicking Search button will read the ID from text box and search text file, the file name of .text file will be your study program.txt, for example if your study program is BSCS then file name must be bscs.txt.
      Please Note that your text file will be with at least 3 records of random valid VUIDs along with names which includes your own Valid VU ID and name. Below is the text file template (this is just example you can change text file format according to requirements)
      Bc12345678-Ahmad Ali
      MC34567890-Sher Khan
      BC123678954-Haider

      Write your own VU id in the application name and id fields while creating .gif file, otherwise your assignment will not be accepted.
      Output.gif has been attached with this Assignment file please observe this file carefully your program’s output must be like this output file.
      Submission details
      Following Files Must be submitted in a single zip or rar file.
      • .C# code file
      • .XAML File (Front End file)
      • Text file (named as your (program name.txt)
      • A .gif file which shows Run phase of your Application (For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)
      You are not required to submit the complete project, only copy these three files from project folder. Please note if you submit doc file you will be awarded 0 marks.
      If you do not submit any of the above mentioned file 25% marks per file will be deducted.

      assignment2gif.gif

      CS411 - Visual Programming
    • CS411 Assignment 1 Solution and Discussion

      zareen

      Visual Programing (CS411)
      Assignment#01 (GRADED)
      Total marks = 20
      Deadline Date = 18-11-2019

      Please read all the instructions carefully before attempting the assignment.
      You are required to create a C# application Console using Visual Studio.
      Problem Statement:
      You will declare a new class name as “Student” then you will perform the Operator Overloading for following binary operators:

      operator
      *operator:
      For this you will take
      Second last digits and the last digit of your VU id as input.
      For example, if your VU id is bc12345678 you will take 7 and 8.
      You will write then following functions in class “student:
      For + operator overloading 1st function: concatenate last two digits
      Example: Your id is BC12345678
      1st function 7+8=78
      For * operator overloading 2nd function: take power of 2nd last digit the times last digit is
      Example: your ID is BC12345678
      2nd function 78=5,764,801
      Note: Program must show your own VUID usage.

      Submission details
      Following Files Must be submitted in a single zip or rar file.
      • .C# code file (file name should be your VUID)
      • A .gif file which shows working of your Application (For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)
      You are not required to submit the complete project, only copy these three files from project folder. Please note if you submit doc file you will be awarded 0 marks.
      If you do not submit any of the above-mentioned file you will be awarded 0 Marks.

      CS411 - Visual Programming

    SOLVED CS411 Assignment 1 Solution and Discussion

    CS411 - Visual Programming
    assignment 1 cs411 discussion fall 2019 solution
    2
    7
    21
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • zareen
      zareen Cyberian's Gold last edited by

      Visual Programing (CS411)
      Assignment#01 (GRADED)
      Total marks = 20
      Deadline Date = 18-11-2019

      Please read all the instructions carefully before attempting the assignment.
      You are required to create a C# application Console using Visual Studio.
      Problem Statement:
      You will declare a new class name as “Student” then you will perform the Operator Overloading for following binary operators:

      • operator
        *operator:
        For this you will take
        Second last digits and the last digit of your VU id as input.
        For example, if your VU id is bc12345678 you will take 7 and 8.
        You will write then following functions in class “student:
        For + operator overloading 1st function: concatenate last two digits
        Example: Your id is BC12345678
        1st function 7+8=78
        For * operator overloading 2nd function: take power of 2nd last digit the times last digit is
        Example: your ID is BC12345678
        2nd function 78=5,764,801
        Note: Program must show your own VUID usage.

      Submission details
      Following Files Must be submitted in a single zip or rar file.
      • .C# code file (file name should be your VUID)
      • A .gif file which shows working of your Application (For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)
      You are not required to submit the complete project, only copy these three files from project folder. Please note if you submit doc file you will be awarded 0 marks.
      If you do not submit any of the above-mentioned file you will be awarded 0 Marks.

      zareen zaasmi 3 Replies Last reply Reply Quote 0
      • zaasmi
        zaasmi Cyberian's Gold last edited by zareen

        100% Solved:

        using System;
        using System.Collections.Generic;
        using System.Linq;
        using System.Text;
        using System.Threading.Tasks;
        
        namespace ConsoleApplication1
        {
            class Student
            {
                public int x;
                public Student()
                {
                }
                public Student(int i)
                {
                    x = i;
                   // y = j;
                }
                /*  public void Showsum()
        
              private int sum1 = x + y;  
              {  
                  Console.WriteLine(sum1);  
              }*/
                public static Student operator +(Student ss, Student ss2)
                {
                    Student temp = new Student();
                    temp.x = Int32.Parse(ss.x.ToString() + ss2.x.ToString());
                    return temp;
                    // return temp = tostring(d1) + tostring(d2);
                }
                public static Student operator * (Student ss, Student ss2)
        
                {
                    double d= (double)ss.x;
        
                    double dd = (double)ss2.x;
        
        
                    Student temp = new Student();
                    double result= Math.Pow(
                        d
                        ,dd);
                    temp.x =(int) result;
                    return temp;
                    // return temp = tostring(d1) + tostring(d2);
                }
        
                class Program
                {
                    static void Main(string[] args)
                    {
                        Student s1 = new Student(2);
                        //S1.Showsum(); // displays 15  
                        Student s2 = new Student(4);
                        Student s3 = s1 + s2;
                        Console.WriteLine(s3.x.ToString());
                        Student s4 = s1 * s2;
                        Console.WriteLine(s4.x.ToString());
        
                        Console.Read();
                        //S2.
                    }
                }
            }
        }
        

        assignment1gif.gif

        ConsoleApplication1.zip

        1 Reply Last reply Reply Quote 0
        • zaasmi
          zaasmi Cyberian's Gold last edited by zareen

          100% Solved:

          using System;
          using System.Collections.Generic;
          using System.Linq;
          using System.Text;
          using System.Threading.Tasks;
          
          namespace ConsoleApplication1
          {
              class Student
              {
                  public int x;
                  public Student()
                  {
                  }
                  public Student(int i)
                  {
                      x = i;
                     // y = j;
                  }
                  /*  public void Showsum()
          
                private int sum1 = x + y;  
                {  
                    Console.WriteLine(sum1);  
                }*/
                  public static Student operator +(Student ss, Student ss2)
                  {
                      Student temp = new Student();
                      temp.x = Int32.Parse(ss.x.ToString() + ss2.x.ToString());
                      return temp;
                      // return temp = tostring(d1) + tostring(d2);
                  }
                  public static Student operator * (Student ss, Student ss2)
          
                  {
                      double d= (double)ss.x;
          
                      double dd = (double)ss2.x;
          
          
                      Student temp = new Student();
                      double result= Math.Pow(
                          d
                          ,dd);
                      temp.x =(int) result;
                      return temp;
                      // return temp = tostring(d1) + tostring(d2);
                  }
          
                  class Program
                  {
                      static void Main(string[] args)
                      {
                          Student s1 = new Student(2);
                          //S1.Showsum(); // displays 15  
                          Student s2 = new Student(4);
                          Student s3 = s1 + s2;
                          Console.WriteLine(s3.x.ToString());
                          Student s4 = s1 * s2;
                          Console.WriteLine(s4.x.ToString());
          
                          Console.Read();
                          //S2.
                      }
                  }
              }
          }
          

          assignment1gif.gif

          ConsoleApplication1.zip

          1 Reply Last reply Reply Quote 0
          • zareen
            zareen Cyberian's Gold @zaasmi last edited by zareen

            @zaasmi
            Solution file attached please check
            bc12345678.cs

                //<>
                //
            
                using System;
                using System.Collections.Generic;
                using System.Linq;
                using System.Text;
                using System.Threading.Tasks;
            
                namespace cs411
                {
                //my student id is bc150401804
                //last two digits of my student id are 0 and 4
            
                public class Student
                {
            
                public int Number { get; set; }
                public Student(int number)
                {
                Number = number;
                }
            
                public Student()
                {
            
                }
            
                public static string operator +(Student left, Student right)
                {
                string result = left.Number.ToString() + right.Number.ToString();
                return result;
                }
            
                public static long operator *(Student left, Student right)
                {
            
                int @base = left.Number;
                int power = right.Number;
            
                long result = 1;
            
                for (int i = 1; i <= power; i++)
                {
                result*= @base;
                }
            
            
                return result;
                }
            
            
                }
            
                class Program
                {
                static void Main(string[] args)
                {
            
                var leftStudent = new Student(number:0); //first number of last two digits
                var rightStudent = new Student(number: 4); //second number of last two digits
            
                var firstResult = leftStudent + rightStudent;
                var secondResult = leftStudent * rightStudent;
            
                Console.WriteLine("1st operator + overloading result is = " + firstResult);
                Console.WriteLine("2nd operator * overloading result is = " + secondResult);
            
                Console.ReadKey();
                }
                }
                }
            
            
            1 Reply Last reply Reply Quote 0
            • zaasmi
              zaasmi Cyberian's Gold @zareen last edited by

              @zareen said in CS411 Assignment 1 Solution and Discussion:

              operator
              *operator:
              For this you will take
              Second last digits and the last digit of your VU id as input.
              For example, if your VU id is bc12345678 you will take 7 and 8.
              You will write then following functions in class “student:
              For + operator overloading 1st function: concatenate last two digits
              Example: Your id is BC12345678
              1st function 7+8=78
              For * operator overloading 2nd function: take power of 2nd last digit the times last digit is
              Example: your ID is BC12345678
              2nd function 78=5,764,801
              Note: Program must show your own VUID usage.

              using System;
              using System.Collections.Generic;
              using System.Linq;
              using System.Text;
              using System.Threading.Tasks;
              
              namespace cs411
              {
              class Program
              {
              static void Main(string[] args)
              {
              //for sum
              Student std1 = new Student();
              Student std2 = new Student();
              Student std3 = new Student();
              
              // for *
              Student std4 = new Student();
              Student std5 = new Student();
              Student std6 = new Student();
              
              std3 = std1 + std2;
              std6 = std4 * std5;
              
              //Printing Sum
              Console.WriteLine("Overloading + Operator Result {0}", std3.concat);
              
              
              //printing Power
              Console.WriteLine("Overloading * Operator Result {0}", std6.raiseToPower);
              
              Console.ReadKey();
              }
              
              }
              
              class Student
              {
              public int secondLast = 7;
              public int Last = 8;
              public String concat = null;
              
              public double raiseToPower = 0;
              
              
              public Student() {
              
              secondLast = 7;
              Last = 8;
              }
              
              public static Student operator *(Student s1, Student s2)
              {
              Student s3 = new Student();
              s3.raiseToPower = Math.Pow(s1.secondLast, s2.Last);
              return s3;
              }
              
              public static Student operator +(Student s1, Student s2)
              {
              Student s3 = new Student();
              s3.concat= s1.secondLast.ToString() +s2.Last.ToString();
              return s3;
              }
              
              
              }
              }
              
              // just copy paste the code in your program. 
              
              zareen 1 Reply Last reply Reply Quote 0
              • zaasmi
                zaasmi Cyberian's Gold last edited by

                1 Reply Last reply Reply Quote 0
                • zareen
                  zareen Cyberian's Gold @zareen last edited by zareen

                  1 Reply Last reply Reply Quote 0
                  • zareen
                    zareen Cyberian's Gold @zareen last edited by

                    @zareen said in CS411 Assignment 1 Solution and Discussion:

                    You are required to create a C# application Console using Visual Studio.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    50% Off on Your FEE Join US!

                    Quiz 100% Result If you want to know how you can join us and get 50% Discout on your FEE ask Cyberian in Chat Room! Quiz 100% Result Quiz 100% Result
                    solution1241 discussion1193 fall 2019813 assignment 1425 assignment 2295 spring 2020265 gdb 1246 assignment 382 crw10174 spring 201955
                    | |
                    Copyright © 2021 Cyberian Inc. Pakistan | Contributors
                    Live Chat