Programming question and answers for July 19, 2023
- Q Describe a non-deterministic Turing machine algorithm that takesone integer and checks for primality. What is the complexity of thealgorithm?
- Q A Private Poly Clinic in Oman wish to develop software toautomate their Patient Monitoring system for storing the details ofthe patients visited the clinic. Develop a system to meet thefollowing...
- Q Consider a binary search tree created from the followingvalues:47 9 52 24 0 23 44 15 63 45 67If the node containing the value 23 were to bedeleted, what value...
- Q Implement if else loop to find out if the given number ispositive or negative or zero. You would be hardcoding the number inthe below example I used 8. But you...
- Q linuxUse apt-get to UNINSTALL the appropriate text editor packagefor your distribution. If you are using Ubuntu uninstall vim-tinysince it is no longer needed. If you are using Lubuntu, uninstallemacs (or...
- Q Please read the discussion article entitled “Top 10 ERP CostOptimization Ideas†by Gartner and then compose a short response.Address the following two points in your post.Briefly summarize the main ideas...
- Q Implement a program to jind out the percentage of the givenmarks to a student.
- Q Polymorphism and InheritanceShape.hclass Shape {Â Â Â Â Â Â Â Â Â Â Â string color;Â Â Â Â Â Â Â Â Â Â Â bool filled;public:Â Â Â Â Â Â Â Â Â Â Â Shape();Â Â Â Â Â Â Â Â Â Â Â Shape(string, bool);Â Â Â Â Â Â Â Â Â Â Â string getColor();Â Â Â Â Â Â Â Â Â Â Â bool isFilled();Â Â Â Â Â Â Â Â Â Â Â void setColor(string);Â Â Â Â Â Â Â Â Â Â Â void setFilled(bool);Â Â Â Â Â Â Â Â Â Â Â string toString();//virtual string toString();};Rectangle.hclass Rectangle : public Shape {Â Â Â Â Â Â Â Â Â Â Â double length;Â Â Â Â Â Â Â Â Â Â Â double width;public:Â Â Â Â Â Â Â Â Â Â Â Rectangle();Â Â Â Â Â Â Â Â Â Â Â Rectangle(double, double);Â Â Â Â Â Â Â Â Â Â Â Rectangle(double, double, string, bool);Â Â Â Â Â Â Â Â Â Â Â double getLength();Â Â Â Â Â Â Â Â Â Â Â double getWidth();Â Â Â Â Â Â Â Â Â Â Â void setLength(double);Â Â Â Â Â Â Â Â Â Â Â void setWidth(double);Â Â Â Â Â Â Â Â Â Â Â double...
- Q a) Explain the process of data encapsulation using the followingterms: data, segment, packet frame, and bits. [5 marks]b) Using an application of your choice, explain how the processworks. [3 marks]2.A...
- Q Suppose that the WTAMU post-office wants to develop a new systemthat will give its user more on-line experience. The post officeplans to serve WTAMU students identifying through their ID, or...
- Q describe OAuth and OpenID
- Q Question 3: Answer the following short question  Questions 3(a): A milk producing factory has four sensors,First sensor (A) checks the color of milk andif the color is good it turns ON.Second...
- Q Q1.Convert C46C000016 into a 32-bit single-precision IEEEfloating-point binary number.
- Q In C Please*Asked before but all previous answers do not workcorrectly*10.6 LAB: Warm up: Parsing strings(1) Prompt the userfor a string that contains two strings separated by a comma. (1pt)Examples...
- Q You were given a kettle of n birds, which look all thesame to you. To decide if two birds are of the same species, youperform the following experiment – you...
- Q 1. Write three command statements to back up the `Orders` Tablefor data only, structure with data and structure only usingmysqldump. 2. Write the command statement to import the data usingmysqlimport...
- Q Using the Internet, conduct a thorough search for moreinformation on using charts in Excel and discuss one including ause for your response to my post. The purpose is to learn...
- Q Explain how to handle null values and default values when codingINSERT and UPDATE statements. Give examples.
- Q Write the following function and provide a program to test it(main and function in one .py)def repeat(string, n, delim)that returns the stringstring repeated n times, separated by the stringdelim. For...
- Q Objectives• Use the static methods and static fields.•Use the method-call/return mechanism.• Use the random-number generation.• Overload methods. Problem SpecificationWrite a program that lets a user play \"Rock, Paper, Scissors\"against the...
- Q Question II:Consider the language L below. If L is a regular language,construct the corresponding DFA. If not, prove that L is not aregular language.L={0n10n | n≥1}Consider the language M consisting...
- Q Reverse Polish (HP) StyleCalculator - Part 2The purpose of this assignment is to incorporate an abstractclass and inheritance and add it to the interface of the businesscalculator created in Topic...
- Q Write a complete C++ program to display the results of rolling an8-sided die 5 times.
- Q 2. Describe ASK, explain how it works and why we use it:Â Â 3. Explain what PCM does and how it works:Â Â 4. Which of the following networking device(s) block(s)broadcast traffic, thus dividing...
- Q iwant a program in java that finds the shortest path in a 2D arraywith obstacles from source to destinationusing BFS and recursion. The path must be stored in aqueue.The possible...
Get Answers to Unlimited Questions
Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!
Membership Benefits:
- Unlimited Question Access with detailed Answers
- Zin AI - 3 Million Words
- 10 Dall-E 3 Images
- 20 Plot Generations
- Conversation with Dialogue Memory
- No Ads, Ever!
- Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!