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

Hollow Right Triangle - 2

Given an integer number N as input. Write a program to print the hollow right-angled triangular pattern of N lines as shown below.

Note: There is a space after each asterisk (*) character.

Input

The first line of input is an integer N.

Explanation

In the given example the hollow right angled triangle of side

5. Therefore, the output should be

*

* *

* *

* *

* * * * *


Sample Input 1

4

Sample Output 1

*

* *

* *

* * * *

Sample Input 2

5

Sample Output 2

*

* *

* *

* *

* * * * *




Hollow Right Triangle

Given an integer number N as input. Write a program to print the hollow right-angled triangular pattern of N lines as shown below.

Note: There is a space after each asterisk (*) character.

Input

The first line of input is an integer N.

Explanation

In the given example the hollow right angled triangle of side

4. Therefore, the output should be

* * * *

* *

* *

*


Sample Input 1

4

Sample Output 1

* * * *

* *

* *

*

Sample Input 2

6

Sample Output 2

* * * * * *

* *

* *

* *

* *

*




Write a C++ program to declare an integer array of 50 elements. Fill this array using random function with values in range -25 to +75. Now, print address(s) of only those indexes which are having a value which is a prime No.


 


We need to create a billing software for a shop The program will be given below inputs
List of items available in the shop, its price and tax percentage
’ Details about the purchase made like the item purchased and the quantity of items will be provided.
Details about the cash available in the shop like number of notes/coins available in each denomination
Description
You are working on an app for a company like Uber. You will be provided with the number of laps that the user has
taken and travel details (distance, speed and direction) of the laps. Write a program that calculates the total duration of
the trip and also the direction in which the customer has travelled.
Input:
First line of the input will be the number of laps.
The rest of the lines in the input will contain entry in the format of "Distance Speed Direction" for each lap.
Output:
T. First line of the output should show the total duration of the trip in minutes (T).
2. Second line of the output should show the direction from the starting point (D).
You are working in a company like Uber you will be provided with number of laps the users has taken and travel details(distance, speed and direction) of laps write a program calculates the total duration of trip and also the direction in which customer has travelled
  1. Samantha and Vikas are looking to buy a house in a new development. After looking at various models the three models they like are colonial, split-entry, and single-story. The builder gave them the base price and the finished area in square feet of the three models. They want to know the price per square foot of the three models and the model with the least price per square foot. Write a program that accepts as input the base price and the finished area in square feet of the three models. The program outputs the price per square foot of the three models and the model with the least price per square foot.


hoping for answer im so glad this website is make.i shared it on my friend


  1. have several pictures of different sizes that you would like to frame. A local picture framing store offers two types of frames—regular and fancy. The frames are available in white and can be ordered in any color the customer desires. Suppose that each frame is 1 inch wide. The cost of coloring the frame is $0.10 per inch. The cost of a regular frame is $0.15 per inch and the cost of a fancy frame is $0.25 per inch. The cost of putting a cardboard paper behind the picture is $0.02 per square inch and the cost of putting glass on top of the picture is $0.07 per square inch. The customer can also choose to put crowns on the corners, which costs $0.35 per crown. Write a program that prompts the user to input the following information and then output the cost of framing the picture: 

a. The length and width, in inches, of the picture. 

b. The type of the frame. 

c. Customer’s choice of color to color the frame. 

d. If the user wants to add the crowns, then the number of crowns. 


How do we provide security to RMI classes? Write a program to implement Simple Student database application using RMI. Remote client consist of GUI for performing different database operations (For ex. Insert, delete, update) and retrieving data through RMI.


Regular service: $10.00 plus first 50 min. are free. Charges for over 50 min. are $0.20 per minPrem. service: $25.00 plus: calls made from 6:00 a.m. to 6:00 p.m., the first 75 min. are free; charges for over 75 minutes are $0.10 per mincalls made from 6:00 p.m. to 6:00 a.m., the first 100 minutes are free; charges for over 100 minutes are $0.05 per minprogram should prompt the user to enter an account num, a service code (type char), and the number of minutes the service was used. A service code of r or R means regular service; a service code of p means prem service. Treat any other character as an error. Your program should output the account number, type of service, number of min. the telephone service was used, and the amount due from the user. For the premium service, the customer may be using the service during the day and the night., to calculate the bill, you must ask the user to input the number of min the service was used during the day and the number of minutes the service was used during the night.


LATEST TUTORIALS
APPROVED BY CLIENTS