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

Write a two dimensional array program that reads student scores and then assigns grades based on the following scheme:


Grade is A if score is > = 90;

Grade is B if score is > = 80;

Grade is C if score is > = 70;

Grade is D if score is > = 60;

Grade is F otherwise.


The program prompts the user to enter the total number of students, then prompts the user to enter all of the scores, and concludes by displaying the grades. 




A survey asks a person the percent of time at work they spend working, web-surfing, socializing, eating, and daydreaming. The person should enter the percents as 5 integers that should add to 100. Read 5 integers, and output OK if they sum to 100. Otherwise, output "Total should be 100. Your total: ___".

If the input is 20 30 10 10 30, the output is: OK

If the input is "80 10 10 10 5", the output is:

Total should be 100. Your total: 115

“Our state of the art algorithm allows you to simply input the width and height of your skyscraper, and using a specially trained machine learning model, it would automatically generate a “star” (*) image of the entire structure. Specifically, the foundation of the building would always be width + 2 stars wide, while the top of the tower contains 1 star if the width is an odd number, or 2 stars if the width is an even number. Are you ready to see how it works?”



Apart from the base and the top level of the tower, every level starts and ends with a white space(" ").




The first line will contain a message prompt to width of the skyscraper.




The second line will contain a message prompt to height of the skyscraper.





The succeeding lines will contain the skyscraper pattern.



For example:





Output:





Enter·width·of·skyscraper:·5




Enter·height·of·skyscraper:·10




*




*****




*****




*****




*****




*****




*****




*****




*****




*******

The first line will contain a message prompt to input the number of rows.


The second line will contain a message prompt to input the number of columns.


The succeeding lines will prompt to input the elements of the matrix.


The last line contains the matrix elements from a spiral form to a straight line.

Create a class of complex number having two attribute real and imaginary. Write a function to add two complex number and print the result. You need to write parameterized constructor. In main, create two objects of complex number, call the addition function and print the result.


Write a c++ program using constructor overloading to implement the following tasks:



1. Print sides of the cube


2. Print radius and height of the cylinder


3. Calculate and display the volume of the cube


4. Calculate and display volume of the cylinder


Write a C++ program to count number of digits in a number n which will be input by the user.


Write a C++ program to print all odd number between 1-100


Write a user defined method named getMark that can be used to get a valid mark from the user.


Your method must continuously ask the user for a mark, until a valid mark is entered (valid marks


are between 0 and 100). If a user enters an invalid mark, display an error message before asking


for a valid mark to be entered. The method must return the valid value to the calling program.


Write a user defined method named isPass that can be used to determine whether a mark is a


pass mark (greater or equal to 50). The method must take as input a mark, and return a boolean,


indicating whether the mark was a pass mark.


Write a program that reads in 5 marks by using the getMark method to ensure that valid marks are


processed. You need to calculate the sum and the average of the marks. Your program must also


use the isPass method to determine the number of pass marks entered. When the 5 marks have


been processed you need to display the sum, average and number of passes (from these marks).

A customer in a store is purchasing five items. Design a program that asks for the price of each item, and then displays the subtotal of the sale, the amount of sales tax, and the total. Assume sales tax is 6%


LATEST TUTORIALS
APPROVED BY CLIENTS