write a program that takes a string input from the user and calculates the sum of ASCII values of the vowels which are in even positions and multiply it to the sum of the even positions.
Q: FE-TF-S-03 Replace the FILE P if (fp else with the correct operator. fopen ("the file.txt", "r");…
A: File handling is technique to store data into file and supports different file operations such as…
Q: FS traversal of the graph in Figure 1 starting at r he alphabetical order. List the nodes in the…
A: Solution - In the given question, we have to do DFS and BFS traversal for the given graph.
Q: What is the runtime of the below code? 1 void printUnorderedPairs(int[] array) { 2 for (int i= 0;…
A: runtime of the given code is ON2 explaination given in next step
Q: Everything from domain name system (DNS) records to authoritative and root servers to iterated and…
A: DNS explains the Domain Name System. The DNS, also known as the domain name system, serves as an…
Q: This is for Python. Now create a new file named MSPaint_PA51 in your IDLE. Find an image on the…
A: Python is a dynamically typed programming language. Python is an object-oriented and structured…
Q: Private terms are those one of which signifies a perfection and the other of which denies a…
A: Private terms are those one of which signifies a perfection and the other of which denies a…
Q: Advantages and drawbacks exist for both object-oriented and procedural programming languages.
A: A procedural language is a computer programming language that carries out a series of commands in a…
Q: Write a function, reverseDigit, that takes an integer as a parameter and returns the number with its…
A: I have provided PYTHON CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT-----------
Q: Using a computer language to read from and write to a relational database
A: SQL (Structured Query Language) is a computer language used to manage relational databases and…
Q: function
A: Solution - In the given question, we have to Write a function that returns the greatest common…
Q: Write a function that computes the value of e which can be approximated using the following…
A: The following are steps that need to be taken for the given program: First, we ask for a positive…
Q: Question 4. In a jar, there are n nuts and n matching bolts. All the bolts (and of course all the…
A: Here is the explanation regarding the problem using quicksort:
Q: Members of the group rely heavily on the connection made possible via the network. Just think of…
A: A set of rules defines each stage and procedure of communication between two or more computers.…
Q: Given the state diagram as follows, get the sequential circuit using A. SR flipflop B. T flipflop 01…
A: Answer-B :- T flipflop Function Table Characteristic Table of 'T' flip flop
Q: Examine the differences between procedural and object-oriented languages.
A: Answer Difference between procedural and object-oriented languages Procedural languages are based…
Q: Question 17 Aa can i get a detailed solution for this please?... . Full explain this question and…
A: Answer is attached in step 2 along with explanation.
Q: 8.11 A given FSM has an input, w, and an output, z. During four consecutive clock pulses, a sequence…
A:
Q: Explain the weiler-atherton polygon algorithm in detail. Can you give me an example of a procedure…
A: Wailer–Atherton formula may cut polygons.It's utilised for deception, game creation, and other…
Q: Given a time in 24-hour notation, write a function that adds 2 times, a function that substracts 2…
A: The source code of a program #include <iostream>using namespace std;class time24 {int…
Q: Given the critical nature of the network to day-to-day operations, please name three vulnerable…
A: Introduction Protocols include: 1) Protocol (R) 2) FT/S 3) HTT/S (HTTP/Secure) Explanation: 1)…
Q: We'd be grateful if you could name three protocols often used by the company that are insecure or…
A: Step 1: Identify three network protocols that are susceptible to attack. Second step: The three…
Q: Outline the development history of a programming language.
A: It is required of us to write an essay about the development of a programming language. A…
Q: In c++, Write a function that returns the greatest common divisor of 2 integers.
A: Let's see the algorithms first. Declare and initialize the two variables as integer type. Declare…
Q: Create a simple blog application (please code using JSP ,JDBC ,SERVELET AND MYSQL)
A: Employee Registration Form using a combination of JSP, SERVLET, JDBC, and MySQL database. 1.…
Q: I need help in this question of true or False on the concepts of OOP URGENT. True or False…
A: Answer: a) Composition is a specific type of inheritance.False b) Composition is commonly known as…
Q: Explain in great detail what makes object-oriented and procedural languages differen
A: Introduction; The above question that is difference between object oriented programming and…
Q: Question 6 sm .use Java create a GUI sketch for gym membership program and a brief description of…
A: GUI Sketch: Title: Gym Membership Program Components: 1. Text Field: enter your name 2. Text…
Q: H.W A) Slides can be inserted from ____ and ____ . B)7. Notes can only appear to ________ in…
A: Solution:-
Q: Select the two answers that are correct examples for placing comments java source code.
A: Comments in java: If we write anything after comments(//) it will not be executed. It is also used…
Q: Give three functions of RAM?
A: RAM is volatile memory that temporarily stores the files you are working on.
Q: Incorrect code, make sure code is for mySQL. Here is the returned error: ERROR 1064 (42000) at line…
A: The MySQL query for the given problem using MySQL Workbench is as follows: use demo;Create table…
Q: If the input is negative, make numitemsPointer be null. Otherwise, make numitems Pointer point to…
A:
Q: Please code in MASM 7. Prime Number Program Write a procedure named IsPrime that sets the Zero…
A: MASM which refers to the one it is Microsoft Macro Assembler (MASM) provides several advantages over…
Q: Question 7.. We have computed the shortest path between all the nodes in a weighted graph. Then all…
A: Explanation ; Case 1 Let there be a graph from source to sink. There are 2 paths of reaching from…
Q: Abstraction is a concept of OOP which advocates for hiding of unnecessary information. For example,…
A: Answer:
Q: Create a function myFactorial that will accept a positive integer and calculate the factorial. You…
A: Start Accept num from the user Check the input is not a valid integer if it is not valid integer do…
Q: 18. Write a function that computes the value of e which can be approximated using the fol- lowing…
A:
Q: Define a function Coord Transform() that transforms the functions first two input parameters xval…
A:
Q: Advantages and drawbacks exist for both object-oriented and procedural programming languages.
A: Object-oriented programming is a programming model which is based upon the concept of objects which…
Q: To what extent does an object's behavior vary from that of a variable in a structured programming…
A: OOP (Object-Oriented Programming) is IntroducedThe core concepts of Object-Oriented Programming…
Q: IN PYTHON* The file words.txt contains a long list of words, with one word per line. We want a…
A: we need to write a Python program that will read the words, sort them, and write the sorted words…
Q: This has 7 circles, can you do one with 10?
A: - We have to work on the graph with 10 vertices and then the other problems related to it.
Q: This book will cover everything from DNS records to authoritative servers to iterative and…
A: DNS transforms domain names to IP addresses, allowing: \sweb browsers to access Internet resources.…
Q: It is feasible to set up a pipeline with the least amount of vulnerability using an…
A: Introduction Certain combinations of instructions are not supported by the hardware (two…
Q: Complete the second PrintSalutation function to print the following given personName "Holly" and…
A:
Q: Two sorted lists have been created, one implemented using a linked list (LinkedListLibrary…
A: Linked list Operation which refers to the one it is a sequence of data structures, which are…
Q: The subnet mask is visible on parent routes, but not on child routes.
A: There are level 1 and level 2 pathways available as a solution. There are two possible uses for a…
Q: Write a function so that the main() code below can be replaced by the simpler code that calls…
A: C++: C++ is a high level, general purpose programming language. It was developed by Bjarne…
Q: If a class is only ever instantiated as part of the constructor of another class, what is the most…
A: Please refer to the following step for the complete solution to the problem above.
Q: Because the likelihood that the zoning referendum will be approved is such an important factor in…
A: In the context of the given question, 1. One of the simplest decision trees will be Zoning…
write a program that takes a string input from the user and calculates the sum of ASCII values of the vowels which are in even positions and multiply it to the sum of the even positions.
Step by step
Solved in 4 steps with 2 images
- Write a program that reads some integers between 1 and 100 and counts the occurrences of each.Write a Python program that compares two strings (character by character) and prints the number of similar characters. Example: Enter 1st string: This is a text Enter 2nd string: This is another text 9.Write a program that receives a characterand displays its ASCII code (an integer between 0 and 127). Here is a sample run: Enter a character: E ↵EnterThe ASCII code for character E is 69
- A palindromic number is a number that is the same when written forwards or backwards. The first few palindromic numbers are therefore are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99, 101, 111, 121, 323 Input a number from the user. Write a program that reverses the digits of a number. Use this program to find if the number is a palindrome. Print if the number is palindrome or not.Write a program that reads from the user a character (‘s’ or ‘a’). ∙ If the character is ‘s’, the program reads 4 numbers from keyboard and then finds their sum. ∙ If the character is ‘a’, the program reads 4 numbers from keyboard and then finds their average. ∙ Otherwise, it prints “Wrong character” Sample Run: Sample Run1: Enter a character (s or a): s Input 4 numbers: 10.5 12 31 44 The sum of these 4 numbers is: 97.5 Sample Run2: Enter a character (s or a): a Input 4 numbers: 10 12 31 44 The average of these 4 numbers is: 24.375 Sample Run3: Enter a character (s or a): d Wrong characterQuestion 2: Write a Python program that reads a string and a number(integer) from the user. If the user enters an EVEN number, then the ASCII value of the EVEN positioned letters are incremented by one and prints the character of that ASCII value in upper case. If the user enters an ODD number, then the ASCII value of the odd positioned letters are incremented by one and prints only the character of that ASCII value in uppercase. =======: !===== =========== Sample Input 1 hello 2 Sample Output 1 IMP Explanation 1: Since 2 is an even number then the ASCII values of the even position letters are incremented by 1. Here, h, I, o are at even positions. 'h' ASCII is 104 which is incremented by 1 becomes 105. 105 is ASCII of 'i' which is converted to uppercase "I". T ASCII is 108 which is incremented by 1 becomes 109. 109 is ASCII of 'm' which is converted to uppercase "M". 'o' ASCII is 111 which is incremented by 1 becomes 112. 112 is ASCII of 'p' which is converted to uppercase "P".…
- 1. a Write a regular expression for the set of binary strings where each string has at least one pair of consecutive zeros. b. write the regular expression for the following, where sigma = (a,b): i. string of length at least 2 ii. string of length at most 2 iii. all string starting with a and ending with b iv. Even length StringsPython please: Write a program with an input that is a string and a number. Output the first character in the string and then the character that is the number's distance away from the previous character, repeating for the remainder of the string as long as the string is longer than the increment number. Your output wording should match the below examples. For example, if the input is hello 2 the output is h l o If the string contains fewer characters than the input number, as in cat 4 the output is The integer can't be higher than the string length. For coding simplicity, output a space after every character, including the last.Write a program that receives an ASCII code (an integer between 0 and 127) and displays its character. For example, if the user enters 97, the program displays the character a.
- 1. Write a program that reads a number between 1,000 and 999,999 from the user, where the user enters a comma in the input. Then print the number without a comma. Here is a sample dialog; the user input is in color: Please enter an integer between 1,000 and 999,999: 23,456 23456 Hint: Read the input as a string. Measure the length of the string. Suppose it contains n characters. Then extract substrings consisting of the first n - 4 characters and the last three characters.1. Write a program that reads a number between 1,000 and 999,999 from the user, where the user enters a comma in the input. Then print the number without a comma. Here is a sample dialog; the user input is in color: Please enter an integer between 1,000 and 999,999: 23,456 23456 Hint: Read the input as a string. Measure the length of the string. Suppose it contains n characters. Then extract substrings consisting of the first n - 4 characters and the last three characters. 2. Writing large letters. A large letter H can be produced like this: * It can be declared as a string literal like this: final string LETTER_H = "* *%n* *n*****n* *n* *%n"; Print the string with System.out.printf. The en format specifiers cause line breaks in the output. Do the same for the letters E, L, and O. Then write in large letters: O 3. Write a program that transforms numbers 1, 2, 3,..., 12 into the corresponding month names January, February, March, ..., December. Hint: Make a very long string "January…code should be in python: write a program that allows the input of a string from the user and prints the longest word in that string and its length. If there are multiple words with the same maximum length you must print the first one only.