Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Interleave String

Given two strings, write a program to merge the given two strings by adding characters in alternating order, starting with the first string. If a string is longer than the other, append the additional characters onto the end of the merged string.

input

the first line of input will containing a string.

the second line of input will containing a string.

the strings may contain special characters ,digits and string.

output

the output should be the merged string

explanation

For example, if the given strings are "abc" and "pqrs", then alternating characters from each string are merged as "a" from "abc", "p" from "pqr" "b" from "abc" and so on ...., resulting in the merged string "apbqcr".

sample input 1

abc

pqr

sample output 1

apbqcr

sample input 2

abc

pqrst

sample output 2

apbqcrst


Write a program to find length of string by using pointers


Make a function which take a array which store 10 students cgpa. Find the the highest cgpa of student in the array.


Make a function which take an integer array and return sum of all even values.

(Note: Make array of 10 size in the main function)



Yes your output is right thank you, but I am sorry I am not expecting this output,



Input: 1



3




Your output: 1



2



3




My expecting output : 1 2 3




Please review

Account name Account pin Account balance

RHEA TORTOR 123456789 50000

Iya nayang 987612 2000

Andrea villianueva 907542 500


Requirements:


  • The must be a main function that will display the menu and will ask for user's choice and pin.


The menu is shown below:

1 – Balance Inquiry

2 – Withdraw

3 – Deposit

X – Exit


  • For each choice 1, 2 and 3, create an appropriate user-defined function for each task.
  • Provide validation for input.


Score will be updated before encoded in BBL for the following:

  • 40 points deduction if there is no user defined function created at all.
  • 20 points deduction if all user defined function are void functions and no arguments.


Input


1. data

Output


Enter·pin:·123489
1·–·Balance·Inquiry
2·–·Withdraw
3·–·Deposit··
X·–·Exit
Enter·your·choice:··X
Thank·you·for·banking·with·us!

using inheritance write a Program to calculate discount If customer purchase clothes on Offseason, set discount 15% and on Onseason 40%


 Should use two classes, Onseason and Offseason


 Use two methods- discount(method name should be same)


python program that needs to ask the user for her or his email address in the formatfirstname.lastname@bahria.edu.pk OR firstname.lastname@gmail.com. The application takes asinput this email address, parses the email and replies to the user with first name, last name and hostname


Write a program in C to show the basic declaration of pointer. 


Pointer : Show the basic declaration of pointer :                                                            
-------------------------------------------------------                                                       
 Here is m=10, n and o are two integer variable and *z is an integer                                          
                                                                                                              
 z stores the address of m  = 0x7ffd40630d44                                                                  
                                                                                                              
 *z stores the value of m = 10                                                                                
                                                                                                              
 &m is the address of m = 0x7ffd40630d44                                                                      
                                                                                                              
 &n stores the address of n = 0x7ffd40630d48                                                                  
                                                                                                              
 &o  stores the address of o = 0x7ffd40630d4c                                                                 
                                                                                                              
 &z stores the address of z = 0x7ffd40630d50      





Consider a rectangular shape as an object that has two sides length and width as key attributes, another property is to check if the shape is a square or not. Apart from getters, setters and constructors, your class should have the following functionality listed below:


A) isSquare() : returns true if the values of length and width are equal

B) calculateArea() : Calculates the area of the shape provide with the respective formula, returning the Area with the formula used

C) calculatePerimeter(): Calculates the perimeter of the shape returning the result and formula used

D) Provide a toString() : to represent all the shape attributes and the value returned by the isSquare, including results for the Area and Perimeter as provided above


1. Implement class modelled above and test its functionality as specified below


Run1

Enter the length and width values separated by a space: 10 8

Enter the length and width values separated by a space: 6 6



LATEST TUTORIALS
APPROVED BY CLIENTS