Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NEED C++ CODE USING ONLY TO SOLVE THESE THREE PROBLEMS! to hostname Write a function to_hostname that will take 1 input parameter address that contains

NEED C++ CODE USING ONLY TO SOLVE THESE THREE PROBLEMS!image text in transcribed

to hostname Write a function to_hostname that will take 1 input parameter address that contains a valid URL and will transform the URL (in-place) into its respective lower case hostname (sometimes referred as subdomain/domain). For example, if address is: "https://www.cs.uri.edu/homepage/class/csc212 ?year-2013" then the resulting value in address should be "ww.cs.uri.edu". You might want to read what is a URL? before starting your implementation void to hostname (char *address); circular prime A number is called a circular prime if all rotations of its digits form a prime. For example, the number 197 is a circular prime because all possible rotations of ts digits: [197, 971, 719] are prime numbers. Write a function circular_prime that will take a parameter n, such that e = k > a The function must return the sum of unique sums of all subsets of length k in As an example consider the sequence A [3, -2, -1, 2]. There are 6 subsets of length k 2 in A. They are: [3,-2], [3,-1], [3,2], [-2,-1], [-2,2], and [-1,2]. Their respective sums are s-[1, 2, 5, -3, 0, 1]. Some of these sums occur more than once, others only once. The sum of unique sums in this example is 5, because the sum of all values in s, excluding reapeated values, is 5 long int unique_sums (const int *A, unsigned int n, unsigned int k)<>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions