Write a complete C++ program that computes total mark for the Computer Programming subject. The output window must be displayed as follows: ************* SEGİ QUIZ SYSTEM ****** **************** +: Thor Odinson : SUKD123456 Name ID Number Test 1 6. +: 9.95 Final Exam +: 9.95 Test 2 1 tab 1 line Total Mark: 9.4750
Q: nvert the following statements into intermediate code: int r=0; for (int i=0; i<10; i++) r=r...
A: Convert the following statements into intermediate code: int r=0;for (int i=0; i<10; i++) r=...
Q: A getPaycheck method that implements the same method in the Employee class. It calculates the payche...
A: A class is a group of objects which have common properties. to_string() function is used to convert...
Q: Provide the instruction type and assembly language instruction for the following binary values: 100...
A: Ans: Assuming MIPS assembly set 0000 00_10 000_1 0000 _1000 0_000 00_10 0000 Last 6 bits correspond ...
Q: It is vital to comprehend how multiprocessor systems interact with one another in order to classify ...
A: your question is about It is vital to comprehend how multiprocessor systems interact with one anothe...
Q: Describe a recent security compromise involving access control or authentication in the headlines. H...
A: Beach with security: A security breach occurs when an unauthorized party gains access to your data w...
Q: Multiprocessor systems allow users to access shared memory. These kinds of procedures aren't common ...
A: Introduction: A multiprocessing system with symmetric architecture. When using an SMP system, progra...
Q: PYTHON Suppose you are taking out a bank loan. The bank charges 10% interest each year. How much do...
A: total_amount=principal+simple_interest total_amount=P+Ptr where r=R/100 ...
Q: Can someone help me with C++? I have to implement the queue linked list. /////////////////////////...
A: The solution to the given problem is below.
Q: Consider the relation schema Appointment={Patient, GP, Date, Time, Clinic, Room} and the following s...
A: Locate the Candidate Code: Because the specific date can indeed be retrieved via any other method, t...
Q: How many pair of wires are there in twisted pair cable(Ethernet)?What is the name of port ,which is ...
A: The twisted-pair cable is a guided media in which the 2 wires are twisted along each other in order ...
Q: build a simple graphical application that is responsive and that uses basic widgets and demonstrates...
A: the answer is given below:-
Q: b) Datuk Hafiz Arif who is the Chief Minister of Melaka is needed to visit SIX (6) flood evacuation ...
A: Answer: I have given answered in the handwritten format in brief explanation.
Q: 2. What order is an algorithm that has as a growth-rate function (big -O) a. 8 x n3 – 9 xn b. 7 x lo...
A: a) f(n) = 8n^3 - 9n The above function represents a polynomial. The term with the highest degree is ...
Q: What exactly does "open architectural design" imply?
A: the anwser is given below:-
Q: Sex Name Address SSN PERSON BirthDate Salary MajorDept EMPLOYEE ALUMNUS STUDENT Degrees Degree Major...
A: A relational schema is a blueprint used in database design to represent the data to be entered into ...
Q: cking attacks are explained, as well as how users can prot
A: Session Hijacking attacks
Q: Computer Science c++ Design an ID recognizer (a simple lexical analyzer) that reads in the string: ...
A: Lexical Analysis: Read the source code and generate a token list ("linear" analysis) We...
Q: Computer Science Show how binary exponentiation can be used to calculate a128 efficiently. How many ...
A: Binary exponentiation (otherwise called exponentiation by squaring) is a stunt which permits to asce...
Q: 21. Write a JAVA program to input two strings str and str' and print "Equal Strings" in the output i...
A: Write a JAVA program to input two strings str and str' and print "Equal Strings" in the output if bo...
Q: In a field where an expert system could help you, provide at least five rules for the knowledge base...
A: 1. Small amount of information can held in mind and used for execution of cognitive tasks. It though...
Q: Based on your knowledge of IRQ levels
A: Explainations:-
Q: MIPS (MARS ASSEMBLY LANGUAGE). Write a program that asks the user to enter an unsigned number and re...
A: MIPS assembly language simply refers to the MIP processor. The term MIPS is an acronym for Microproc...
Q: What trade-offs do you have to make when building enormously scattered data environments?
A: A trade-off is characterized in economics as a "opportunity cost." For instance, you may take a day ...
Q: Write a program that determines the real roots of a quadratic equation. To calculate the roots of th...
A: Given: given by: D = b ^ 2 - 4ac . If D > 0 the program displays message "The equation has two...
Q: When it comes to purchasing new technology or updating existing systems, how much attention should h...
A: Introduction: Individual users and their workstations must be included in "system boundaries" since ...
Q: Convert the given DFA into Regular Expression notation using Arden's Theorem ob 92 91 q3
A: Regular Expression to DFA- The following are common approaches for converting a DFA towards its re...
Q: Discuss how the following pairs of scheduling criteria conflict in certain settings. I/O device util...
A: Step 1 The answer is given in the below step
Q: In a bridged network, two bus segments are interconnected via a bridge. There are two hosts attached...
A: Collisions domain names: This default gateway is really a software framework that is coupled by a sh...
Q: Try to do is asap but be sure the code is correct And matches the output while running as shown.
A: 1. create the method generate Array in Array class 1. loop for 0 to size and randomly set...
Q: Part C: Normalization. Using the table below normalize the table below to its 3rd normal form. Show ...
A: ANSWER:-
Q: create this function from this written code.
A: The question is create the function from this written code.
Q: Design a program that gives simple math quizzes. The program should display two random numbers that ...
A: NOTE - I have used the Python programing language. Here I have created 2 random numbers and then pri...
Q: In Java Determine the output of the following code. char c=’a’; switch (c) { case ’a’: System.o...
A: Given that char c = 'a' Hence the first case that is case 'a' will match the given condition. But t...
Q: In a field where an expert system could help you, provide at least five rules for the knowledge base...
A: 1) a traditional rule-based system is a domain-specific expert framework that employs rules to gener...
Q: When delivering data to a server, why is using get less secure than using post?
A: Introduction The following are the many forms of HTTP requests: Get Post Put Delete
Q: Using opt-out links is the safest and most reliable way to reduce the amount of spam you get. Is thi...
A: Introduction: According to the given statement, the safest and most reliable approach to decrease th...
Q: Select the CORRECT statements about WLAN Layer 2 and Layer 3 networking modes. I. The Layer 2 netwo...
A: The solution to the given problem is below.
Q: A Wireshark trace of TCP traffic between hosts A and B indicated the following segments. A sent a se...
A: The state of connection for the host A and B
Q: A microprocessor is a device that performs a variety of tasks.
A: Introduction: It is considered a microprocessor when an integrated circuit (IC) contains all of the ...
Q: in python please get_count(aList, item) Returns the number of times item appears in aList. ...
A: Given The answer is given below.
Q: void squire(int n) { if( n <= ) time++; else { squire (n/2); squire (n/2); for (int i=0; i<n; i++) f...
A: O(N) for(int i=0;i<n;i++) : O(N) -level 1 for(int j=i;j<n;j++) : O(1) -level 2
Q: In computer architecture which different modes are defined such that in a given instruction set arch...
A: Generate the structure of the help: The new abilities structure (ISA), often known as a computer sys...
Q: s writing an after-action report on a security breach that took place in his institute. The attacker...
A: Lets see the solution.
Q: Using opt-out links is the safest and most reliable way to reduce the amount of spam you get. Is thi...
A: The following statement is given: The most safe and reliable technique to decrease the quantity of s...
Q: Selection structures, although their relevance, are incapable of completing the task on their own. E...
A: Introduction: For the most part, a framework refers to a physical or mental structure designed to ac...
Q: automate data collecti
A: given - Tell us about the software you used to automate data collection.
Q: a. Given a grammar G =(V.T.E.P) over set of alphabets = (0....9, +. . (. ) with productions . E ->I ...
A: Below is the complete solution with complete explanation in detail. The string can be derived with t...
Q: Q5: An output program resides in memory starting from address AF3, It is executed after the computer...
A: Given that the memory with the starting address 2300 contains the output program. When FGO is 1(whil...
Q: Create a program called staffSalary using GUI Java and add a class named Staff that will determine t...
A: The given program is a GUI based JAVA program which determines staff salary calculated based on sev...
Q: 3. Consider the following schema. where the primary keys are given. Give an expression in SQL for ea...
A: Solution: The answer for another question is given below.
Step by step
Solved in 4 steps with 2 images
- //in c# // I am having problem with my regex fitting the requirments using System;using System.Text.RegularExpressions; namespace UsernameProcessor.Question{ public sealed class UsernameProcessorService{ /// <summary> /// Requirements: /// - A valid username shall be at least 4 characters. /// - A valid username shall contain only letters, numbers and an optional underscore. /// - A valid username shall start with a letter, and shall not end with an underscore. /// </summary> /// <param name="username"></param> /// <returns>Whether or not the username is valid per the above requirements.</returns> private static Regex sUserNameAllowedRegEx = new Regex(@"^(?=[a-zA-Z])[-\w.]{0,23}([a-zA-Z\d])$", RegexOptions.Compiled); private static Regex sUserNameIllegalEndingRegEx = new Regex(@"(\-_)$", RegexOptions.Compiled); public static bool IsValidUsername(string username) { if (string.IsNullOrEmpty(username) ||…Create a program in c++ that allows you to view and edit the sales amounts for each month of the current year. Please use the required specifications for the Monthly Sales program. Console Monthly Sales program COMMAND MENU add - Add sales for a specified month view - View sales for specified month edit - Edit sales for specified month totals - View sales summary for the year exit - Exit program Command: add Three-letter Month: jan Sales Amount: 10317 Sales amount for Jan is 10,317.00. Command: add Three-letter Month: feb Sales Amount: 15293 Sales amount for Jan is 15,293.00. Command: view Three-letter Month: jan Sales Amount: 14317 Sales amount for Jan is 14,317.00. Command: edit Three-letter Month: jan Sales amount for Jan is 14,317.00. Command: totals Yearly total: 29,610.00 Monthly average: 14,805.00 Command: view Three-letter Month: july Invalid three-letter month. Command: exit Bye! Specifications The program should use a list to…Please written by computer source 1, 2 C++ Programming. Please answer ASAP. Thank you very much. Question 1: Write a C++ program that reads two marks (a mark for mathematic course and another mark for physics course) and the weighting of the mark of mathematics compared to that of physics. The program then displays the weighted average with two obligatory decimals. Below is the example of how the program should look like. Enter average in math 80.25 Enter the average in physics 100 Enter the weight assigned to mathematics 0.4 The weighted average is then 92.10% 2) Write a C++ program that asks for the different prices for a bus ticket (adult, child, senior). Then, the program asks for the number of adults, elders, and children in the group. The program then displays the total ordered without taxes. Then the program displays the amount of the provincial tax (9.975% of the total Canadian price without tax) and federal tax (5% of the Canadian price total without tax) as well as the total…
- Write a c++ program to display a calendar for a given year. Type of Branches such as switch statements, if-else, and etc. should be used as well. You can't define functions or use Void. Everything should be written inside int main(). Code should be written in this type of format: #include <iostream>using namespace std; int main() { /* Type your code here. */ return 0;} Ask a user to enter the year and the new year's day of the year entered: cout <<"Enter a calendar year to display?"; cout <<" what is the new year's day?"; a leap year is: IF year%4 = 0 AND year%100 != 0 OR year%400 = 0 An example of what the program should display as a result is in the two images attached.*Correct all syntax errors so that the C++ program will compile correctly.* Procided C++ code: #include<iostream>#include<conio.h> Standard namespace declarationusing namespace std; Main Functionint main(){ double myMoney = 1000.50; //this should be printed out Standard Ouput Statement cout"Please be sure to correct all syntax errors in this program"<<endl; cout<<"I have corrected all errors for this program. <<endl; cout<<" The total amount of money available is = "<< <<endl; // Wait For Output Screen Main Function return Statement return 0;} Thank you for your helpPlease change the code so it will work with C PROGRAMING NOT C#. Thank you. using System;class Program{ static void Main(string[] args) { Console.WriteLine("Please enter the number above 0:"); int userNumber=Convert.ToInt32(Console.ReadLine()); if(userNumber<0) { Console.WriteLine("Number must be above 0:"); } Console.WriteLine("Assending:"); for(int i=0;i<=userNumber;i++) { Console.Write(i+" "); } Console.WriteLine(); Console.WriteLine("Desending:"); for(int i=userNumber;i>=0;i--) { Console.Write(i+" "); } Console.WriteLine(); }}
- In C++ Find the five errors. For each error, state the line number, explain the error and show a correction. #include<iostream> #include<iomanip> using namespace std; class colorCode { public: void setRGB(int); //accepts an int parameter and sets the RGB to the value of the parameter void setName(string);//accepts a string parameter and sets the name of the object to the value of the parameter string getName() const;//returns the name of the object int getRGB() const;//returns the RGB of the object void changeColor();// adds 10 to the RGB value private: string name; int RGB; } int main() { colorCode paintCans[10]; int i; for (i = 0; i < 10; i++){ paintCans.setRGB[i] = 0;} paintCans[5].setName(GREEN); paintCan[5].setRGB(192000); cout << paintCans[5].getName << ' ' << paintCans[5].getRGB() << endl; return 0; }Using C#, write a program that takes a decimal value between 1 and 10 and displays its equivalent Roman numeral value. Display an error message ifthe value entered is outside of the acceptable range. Write a two classsolution. The second class should allow the user to input a test value.Assignment #2 Instructions: Through this programming assignment, the students will learn to do the following: Learn to work with command line options and arguments Gain more experience with Makefiles Gain more experience with Unix Learn to use some of the available math funtions available with C Usage: mortgagepmt [-s] -r rate [-d downpayment] price In this assignment, you are asked to perform the mortgage payment calculation. All information needed for this will be passed to the program on the command line. There will be no user input during the execution of the program You will need a few pieces of information. The price of the home and the amount of the down payment. You will also need to know the interest rate and the term of the mortgage. To figure your mortgage payment, start by converting your annual interest rate to a monthly interest rate by dividing by 12. Next, add 1 to the monthly rate. Third, multiply the number of years in the term of the mortgage by 12 to calculate…
- Visual Studio 2019 how to loop this code in c# 8.0 using System; namespace ConsoleApp1{class Program{static void Main(string[] args){double cm, meter, kilometer, mili;//primero se declaran las variablesConsole.WriteLine("Introduzca los kilómetros");kilometer = Convert.ToInt32(Console.ReadLine());Console.WriteLine("Introduzca los metros");meter = Convert.ToInt32(Console.ReadLine());Console.WriteLine("Introduzca los centimetros");cm = Convert.ToInt32(Console.ReadLine());Console.WriteLine("Introduzca los milímetros");mili = Convert.ToInt32(Console.ReadLine());Console.WriteLine("Seleccione una opción");Console.WriteLine("\ta-Conversion de kilometros a: ");Console.WriteLine("\tb-Conversion de metros a: ");Console.WriteLine("\tc-Conversion de centimetros a: ");Console.WriteLine("\td-Conversion de milimetros a: ");Console.Write("¿Tú opción? ");switch (Console.ReadLine()){case "a":Console.WriteLine("kilómetro a metro:" + (meter = kilometer * 1000.0));Console.WriteLine("kilómetro a…In this c# program please fix the height and inches, for example "Enter your Height in feet followed by a space then additional inches: 5 4" Source Code: using System;namespace BMI{ internal class Program { static void Main(string[] args) { float bmi, m, h; String name; Console.Write("Enter the student name: "); name = Console.ReadLine(); Console.Write("\nEnter the grade level(1-6): "); h = float.Parse(Console.ReadLine()); Console.Write("\nEnter the student Weight(kg): "); m = float.Parse(Console.ReadLine()); bmi = m / (h * h); Console.WriteLine("\nStudent BMI is: " + bmi); if(bmi < 18.5) { Console.WriteLine("\nStudent is Underweight"); } else if(bmi >= 18.5 && bmi < 25) { Console.WriteLine("\nStudent is Normal Weight"); } else…Following code in C using random Name Reg no and highschool name Use switch case in C language to do the following: Create a restaurant with the name “Your Name - Reg_No – Name of your highschool” The restaurant should come with the options of delivery and take away and the choice should be displayed as “Delivery – Registration No” and “Takeaway – Name” Each option should have the same menu and an extra 15% charge be included if a customer wants home delivery Both menus should have two items that are customizable, such as a burger can have chillies removed, cheese added and extra mayonnaise. The user should have the option of choosing multiple items with multiple quantity. Print a bill in the end.