Write a program that accepts a string and print the reversed form of that string using a pointer ptr. Input: String Sample Output: Enter a string: I am Cody! !ydoc ma I
Q: Identify the technological growth in digital forensic with information technology.
A: Digital forensics is defined as the branch of forensic science that deals with the identification,…
Q: 12. Which of the following statements about VTY is correct? OA. The maximum number of VTY interfaces…
A: let us see the answer:- Introduction:- A is the correct option:- The maximum number of VTY…
Q: Q.13 List application and benefits of SVM.
A: Support vector machine SVM is a directed learning framework and utilized for grouping and…
Q: What is the output of the following if statement? a, b = 12,5 if a + b: print('True') print('False')…
A: The output of the given python program is explained with comments in the next step.
Q: Which of the following statement(s) is/are True about cloud computing? it allows the clients to…
A: Solution : Option 1,2,3 are true statements and the option 4 is false statement The following…
Q: I want to make SDLC(software development life cycle) of student attendance software in a diagram…
A:
Q: Needham and Schroeder suggest the following variant of their protocol: 1. Alice → Bob : Alice 2.…
A: Stolen Session key:- In the field of computer science, session hijacking, also referred to as cookie…
Q: This program does not compile! Spot the error and give the line number. Presume that the header file…
A: Solution for the given, C++ program, to find the error.
Q: System components that the university has: Database of all students enrolled and graduated Finance…
A: The question has been answered in step2
Q: Write the instruction to assign high value to Pin P0.1?
A: Sometimes, rather than using the complete 8 bits of the port, we just need to access 1 or 2 bits.…
Q: Create the following matrix by typing one command. Do not type individual elements explicitly. D =…
A: The first row is filled with zeroes. The first 3 columns of second and third row are filled with…
Q: We may utilise two methods without implementing them: count and unambiguous The DictionaryEntry…
A: We may utilise two methods without implementing them: count and unambiguous The DictionaryEntry…
Q: Write a C program to show parent and child process creation and also show the child process calling…
A: Solution- Introduction- The newly formed child process is not required to execute the same software…
Q: Using Python Matplot display a bar chart showing the response frequencies and their percentages of…
A: Python Popular general-purpose programming language Python is used frequently. It is employed in…
Q: Create a java class called product with three data elements: name, price peer unit and quantity .…
A: Solution : The class is fairly simple: it is public and contains three private members, three public…
Q: What kind of message is used to exchange information between switches to create a loop-free tree?…
A: Root switch of the network generates the Configuration BPDU. Configuration BPDU is sent by root…
Q: Q.2 What is Naïve Bayes? Classifiers ?
A: Naїve Bayes Naїve Bayes algorithm compromised of two words which is Naїve and Bayes Naїve : it…
Q: 1 name ('Mary') 2 password = 'swordfish' 3 if name == Mary: 4 5 6 7 8 = print ('Hello, Mary') if…
A: indentation is important in python make sure you give correct indentation in your program you have…
Q: Design a simple digital machine and identify its components and operations. Project Title Project…
A: Design a simple digital machine and identify its components and operation.
Q: What are the Key Things You Need to Know About Numpy and Pandas?
A: Key Things You Need to Know About Numpy and Pandas:-
Q: the following numbers expressed in their respective bases: 11001100112 52014378 93D46
A: Lets see the solution.
Q: HOMEWORK #2 - Length Conversion Write a program that reads in a given length in feet and inches, and…
A: Solution- Here we have create a programme that reads a length in feet and inches and transforms it…
Q: A signal with 60 milliwatts power passes through a device with an average noise of 6 microwatts.…
A: SNR : What is the ratio of signal to noise? A signal-to-noise ratio, sometimes written as S/N or…
Q: 150. Write a C# Sharp program to create a new list from a given list of integers removing those…
A: logic:- create a list and insert above elements. Create another list. Iterate previous list and…
Q: 1) To delete an entry with the key 'a' from the dictionary dna_counts={'g': 13, 'c': 3, 't': 1, 'a':…
A: We need to find command to perform required operations in Python.
Q: write code for Backpropagation Algorithm
A: # Import Libraries import numpy as np import pandas as pd from sklearn.datasets import load_iris…
Q: What are the constituents (or types) of Sof Computing techniques ? Explain each in brief.
A: Introduction In this question, we are asked about the constituents or types of Soft Computing…
Q: 34. Which field can a receiver reassemble fragments based on? A. Flags B. Protocol OC. Fragment…
A: Fragments:- In order for the resultant fragments to fit across a connection with a smaller maximum…
Q: Write the procedure called Kstrcpy with the following comment block. // Given: Source array of…
A: Required language is C:
Q: you have to choose more than one option!
A: In the question, there is no mention that we have to choose more than one option. But, by the…
Q: 150. Write a C# Sharp program to create a new list from a given list of integers removing those…
A: program in C#
Q: d hiker keeps meticulous records of their hikes. During the last hike that took exactly steps, for…
A: Lets see the solution.
Q: Pseudo code To check if two Binary trees are same or not?
A: The answer is given below.
Q: A photographer is organizing a photo collection about the national parks in the US and would like to…
A: Required c++ code given below:
Q: Write detailed code for Fibonacci sequence number print in go programming language code and give…
A: Algorithm: Step 1: First we have to define the function to take the numbers. The number(num) can be…
Q: What will be the value of x when the code is executed successfully x = 0 a = 5 b = 5 if a > 0: if b…
A: Here in this question we have given a code segment and we have asked to execute the code find the…
Q: Q.7 Give advantages of fuzzy logic controllers.
A: Fuzzy logic controller: Fuzzy logic controller is used to control the working of physical system…
Q: Given a function uint16_t func(int16_t x) write a function callPassed Func() that takes two…
A: Here is the c program of the above problem. See below steps.
Q: Section: Debugging Define and describe 1. What a bug is. 2. What debugging is and why debugging is…
A: Note: Due to company policies I am compelled to solve only one question and that is the first…
Q: Describe an algorithm for finding the smallest integer is a finite series
A: An algorithm is a list of instructions used to solve a problem or perform a calculation.
Q: these are the options, 1.Line 20 2.Line 10 and Line 16 3.Line 17 4.Line 17 and 21
A: Given program: // Implementation file for the Rectangle class.1. #include "Rectangle.h" // Needed…
Q: Using the worksheet pictured above, answer the following questions: a. Describe the steps you…
A: Using the worksheet pictured above, answer the following questions: a. Describe the steps you…
Q: Mutual Exclusion: Select all of the following statements that are true. The Peterson Algorithm is a…
A:
Q: Rearrange the following lines of code to produce a program that generates and prints an array list…
A: All the libraries should be declared at the top. Then all the variables should be declared. Then the…
Q: f(a,b,c,d) = abc + acd. Using an 8X1 multiplexer module to implement the Boolean function
A: These question answer is as follows,
Q: 32, Which ports of servers are used by default for the FTP service? A. 20 B. 23 C. 21 D. 22
A: Here is the explanation regarding different ports.
Q: Differentiate between soft computing and hard computing.
A: The question has been answered in step2
Q: Assume the following adjacency list for a graph. After you draw the graph, what is the path to reach…
A: In question one graph is missing that's why I am solving only second question. Kindly request you to…
Q: 9. Which of the following IP addresses is the shortest representation of the IPv6 address…
A: The question has been answered in step2
Q: Q.11 Explain key properties of SVM.
A:
Control structures
Control structures are block of statements that analyze the value of variables and determine the flow of execution based on those values. When a program is running, the CPU executes the code line by line. After sometime, the program reaches the point where it has to make a decision on whether it has to go to another part of the code or repeat execution of certain part of the code. These results affect the flow of the program's code and these are called control structures.
Switch Statement
The switch statement is a key feature that is used by the programmers a lot in the world of programming and coding, as well as in information technology in general. The switch statement is a selection control mechanism that allows the variable value to change the order of the individual statements in the software execution via search.
C
Write a program that accepts a string and print the reversed form of that string using a pointer ptr.
Input: String
Sample Output:
Enter a string: I am Cody!
!ydoc ma I
Step by step
Solved in 3 steps with 1 images
- Rest of code in image / This is a bad programming style since it is using goto. // This is an spagetti code and not working.// Use function to display menu, and display game rules,// Use different color for text display.// fix it so it works any way you like./*HANDLE screen = GetStdHandle(STD_OUTPUT_HANDLE); // Write 16 lines in 16 different colors. for (int color = 0; color < 16; color++) { SetConsoleTextAttribute (screen, color); cout << " Hello World!" << endl; Sleep(400); // Pause between lines to watch them appear } // Restore the normal text color) SetConsoleTextAttribute(screen, 7);*/#include <iostream>#include <windows.h>using namespace std;int main(){ //textbackground(WHITE); //textcolor(RED); system("cls"); char ch, a[20], ch2; int num = 100, rnum, guess, count, ch1, c = 0; cout << "**********************************************************"<<endl; cout << "*…The language is C# Write a program named TestScoreList that accepts eight int values representing student test scores. Display each of the values along with a message that indicates how far it is from the average. An example of how the results should be output is as follows: Test # 0: 89 From average: 6 Test # 1: 78 From average: -5This is a program in C language. Help me debug this program. it has 3 errors. Please upload a screenshot also that it is working thank you./* This porgram uses the gotoxy() function and textcolor() for better screen display */ #include <iostream>#include <conio.h>#include <stdlib.h>using namespace std;main(){ int NoItem,ItemNo,Qty,ctr,Row=5; float UPrice,TAmt,ATendered,Change,APaid=0; char ItemDesc[15],TempChar; system("Color 5");; system("Color 2"); gotoxy(25,1);cout<< "[***] RICHLY SUPERMARKET [***]"; gotoxy(31,2);cout<< "Ayala Avenue, Makati"; gotoxy(6,4);cout<< "Item No. Description Qty. Unit Price Total Amount"; gotoxy(5,22);cout<< "No. of Item(s) Bought => [ ]"; gotoxy(37,22);cout<< "Total Amount to be Paid => "; gotoxy(37,23);cout<< "Amount Customer Tendered => "; gotoxy(37,24);cout<< "Amount of Change => "; gotoxy(31,22);cin>> NoItem;…
- 7. username_ends_with_digits This function decides whether a given username ends with some digits. It returns either True, if the username does end with digits, or False, if it does not. Check out the .isdigit method on strings! Sample runs should look like: >>> username_ends_with_digits("FunctionEnjoyer") False >>> username_ends_with_digits("this_username_95060") True// write a function that takes the input string and reverses it// example// argument: Hello// return: olleHfunction reverseThisString(string){ } // write a function that takes the input string and switches all uppercase characters to lowercase and lowercase charcaters to uppercase// example:// argument: Hello World// return: hELLO wORLDfunction swapCase(string) { } //convert array of numbers from farenheit to celcius// example:// argument: [23, 32, 41, 50, 59]// return: [-5, 0, 5, 10, 15]// hint: use Array.mapfunction toCelcius(array){ } //write a function that takes an input array and returns an array of booleans (>=75) or fail (<75)// example:// argument: [20, 30, 50, 80, 90, 100]// return: [false, false, false, true, true, true]// hint: use Array.mapfunction passOrFail(array){ } //write code that loops through the two variables returns an array ['2 is zwei', '3 is drei', '4 is vier', '5 is fünf', '6 is sechs']// example:// return: ['2 is zwei', '3 is drei', '4 is vier', '5 is…This code is correct but can you add to the code this instructions: If the father's age is equal to the mother's age and the age is odd, then the child is Female The code should call `createKidPerson` in main. #include <iostream>using namespace std; typedef struct { int age; char gender;} Person; void displayPerson(Person); Person createKidPerson(Person father, Person mother); int main(void) { Person father; Person mother; father.gender = 'M'; mother.gender = 'F'; //ask the user for the age of the Male Person and the age of the Female Person. cout<<"Enter the Male Person's age: "; cin>>father.age; cout<<"Enter the Female Person's age: "; cin>>mother.age; //create a new Person and call createKidPerson() function Person kid = createKidPerson(father, mother); displayPerson(kid); return 0;} Person createKidPerson(Person father, Person mother) { Person p; if(father.age>=mother.age) //if…
- A WriteOnly property can be an auto-implemented property. a. True b. FalseC++ language Write a menu driven program which has following options:1. Factorial2. Prime or not3. Odd or even4. ExitOnce a menu is selected, the appropriate action should be taken and once this action is finished,the menu should reappear. Unless the user selects the ‘Exit’ option the program should continueto work.Note: Consider array of random numbers from user to find Prime Numbers/Odd/Even and userentered value for factorial.PHP ATM machines allow 4 or 6 digit PIN codes and PIN codes cannot contain anything but exactly 4 digits or exactly 6 digits. *With user input ($pinNumbers), create a function that takes a string and returns true if the PIN is valid and false if it's not. Examples validatePIN("$1234") ➞ true validatePIN("12345") ➞ false validatePIN("a234") ➞ false validatePIN("") ➞ false Notes ● Some test cases contain special characters. ● Empty strings must return false.
- Instruction: It should be a C++ PROGRAM INCLUDE THE HEADER FILE, MAIN CPP, AND BSTREE.CPP There is a real program developed by a computer company that reads a report ( running text ) and issues warnings on style and partially corrects bad style. You are to write a simplified version of this program with the following features: Statistics A statistical summary with the following information: Total number of words in the report Number of unique words Number of unique words of more than three letters Average word length Average sentence length An index (alphabetical listing) of all the unique words (see next page for a specific format) Style Warnings Issue a warning in the following cases: Word used too often: list each unique word of more than three letters if its usage is more than 5% of the total number of words of more than three letters Sentence length : write a warning message if the average sentence length is greater than 10 Word length : write a warning message if the…in c language Write a program which performs the following actions: Write the header of the C program Write the beginning of the main function Initialize a string called first_string with the constant value "C programming is nice**" using a string pointers Initialize a string called second_string with the constant value "C language is difficult" using a string pointer Display first_string and second_string in two consecutive lines Display a message that shows if the two strings have the same length (hint: use sizeof). Assume now that both strings have the same size. Write only three statements to swap the two strings’ contents (swap means the content of the first string becomes the content of the second string and vice-versa) Display again the two strings to check whether they have been swapped Write the correct symbol to close the main functionAssignment #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…