Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Multi Part question for c++ and yes I'll rate you up thank youu! ^^ Part A: Define a struct for a Circle with a radius,

Multi Part question for c++ and yes I'll rate you up thank youu! ^^

Part A: Define a struct for a Circle with a radius, circumference, area.

Then define an array with 10 Circles.

Input the radius for each circle from the user (and also set its circumference, area).

Then output the area of the largest circle in the array.

Part B :

Write a function that takes as input a string from the user.

Then it checks if the string is a palindrome.

A palindrome is a string that is the same forwards and backwards.

The code outputs "yes it is a palindrome" or "not a palindrome".

Part C :

Write a program that takes as input 2 strings from the user. Then it determines if one string is a permutation of the other string.

Part D :

If the program answers "yes" to the previous question, meaning the two strings are permutations of each other, determine if each string has all unique characters

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

What are the disadvantages of the company Apple.

Answered: 1 week ago