A+ Work


For this assignment, you are asked to prepare a PowerPoint presentation to include a detailed description for ONE of the following topics:

1. Describe the Sun’s evolutionary track from birth to death.

2. What are observational evidences for the existence of black holes?

Your presentation should be at least five slides in length. All sources used, including textbook, must be referenced; paraphrased and quoted material must have accompanying citations.

The purpose of this assignment is to provide you with an opportunity to examine the life stages of a star.

For this assignment. Describe the general characteristics, structure, composition, and motion of the Milky Way Galaxy. Your response should be at least 220words in length. All sources used, including the textbook, must be referenced; paraphrased and quoted material must have accompanying citations.

The purpose of this assignment is to allow you to analyze and describe the characteristic, structure, and main composition of a galaxy.

Write a C program that prompts the user to enter

CLICK HERE TO DOWNLOAD THIS ANSWER INSTANTLY $18 only

Write a C program that prompts the user to enter a line of text (up to 50 characters). It should then convert the text entered to uppercase letters and then to lowercase letters, and then to Sentence case.

Your program should use a character array: text[51]. It should use the gets function to prompt the user for the line of text.
Your program must use pointer notation and pointer math (i.e. no array index notation other than in the declaration section).

The dialog with the user must look like:

Enter a line of text (up to 50 characters):

ThiS is A LiNe of teXt! And this is TOO.

The line of text in uppercase is:

THIS IS A LINE OF TEXT! AND THIS IS TOO.

The line of text in lowercase is:

this is a line of text! and this is too.

The line of text in sentence case is:

This is a line of text! And this is too.


Note: The coral text represents the "output" from your program and is shown for clarity only here. It is not required that your output be in this color. (Do not even attempt to try!). Also note that what the user types in is indicated by the blue area above. Again, for clarity only.

Hints:
Your program requires 2 loops (either for or while). One to convert and display the string in uppercase letters, and the other to convert and display the string in lowercase letters.
Your program should use the C standard library functions toupper in one of the loops, and tolower in the other loop, to convert the string. Both of these functions are found in the header file ctype.h.

Real BIG hint:
You can click on the Assign_4_Hint link which provides a solution to the program using array notation. You can use it as a guide, if you so choose. An arrow symbol (->) at the beginning of a particular line of code indicates which lines of code need to be modified.

In the sentence case make sure every first letter after a period, exclamation or question mark is uppercase.

In this assignment you will build a stock


In this assignment you will build a stock portfolio manager. The manager program will consist of 3 dictionaries.


The first dictionary, called Names, maps the stock symbol to the company name (example: "GM" maps to "General Motors").


The second dictionary, called Prices, maps the stock symbol to a list of 2 floating point numbers corresponding to the buy price (the price the user paid for the stock) and the current market price (the price the user could sell the stock for today).


The third dictionary, called Exposure, maps the stock symbol to a list of 2 floating point numbers, corresponding to the number of shares purchased, and the risk associated with holding onto the stock (i.e. How likely the stock is to gain value in the future).

Your program should consist of the following functions:
AddName - Asks the user for a Stock Symbol and Name pairing then adds it to the Names dictionary.
AddPrices - Takes a Stock Symbol as an input parameter, then asks the user for the Buy price and the Current price of the corresponding stock, adding them to the Prices dictionary.
AddExposure - Takes a Stock Symbol as an input parameter, then asks the user for the Risk and Shares of the corresponding stock, adding them to the Exposure dictionary.
AddStock - Calls AddName, AddPrices, and AddExposure to add a new stock to the portfolio.
GetSale - Finds the maximum expected value of selling a stock. The expected sale value of a stock is the current profit minus the future value of the stock:

Expected Sale value = ( ( Current Price - Buy Price ) - Risk * CurrentPrice ) * Shares
The GetSale function should calculate this value for each stock in the portfolio, and return the stock symbol with the highest expected sale value.
Main - Should take no arguments, but present a menu item consisting of "1. Add Stock", "2. Recommend Sale" and "3. Exit". If the user selects '1,' the Add Stock function is called, and when it is complete, the menu is presented again. If the user selects '2,' the Symbol of the stock corresponding to the highest expected value (returned by GetSale) should be displayed, and the menu presented after completion. If the user selects '3', the program should end.


Create a separate class for the selected product


Create a separate class for the selected product that holds the item number, the name of the product, the department in which the product belongs, the number of units in stock, and the price of each unit. You must use the class name that is specified in the "Inventory Program Product Selection" post.

Create a Java application that displays the product number, the name of the product, the department name in which the product belongs, the number of units in stock, the price of each unit, and the value of the inventory (the number of units in stock multiplied by the price of each unit). Pay attention to the good programming practices in the text to ensure your source code is readable and well documented.

Click the Assignment Files tab to submit your assignment.



Selected Product:

Your product will be Mobile Phones. That means that your class must be called "MobilePhone". The department is Electronics. You will have a class that will keep track of the inventory and display the inventory to the user. You will need to create a separate product class that holds the item number, the name of the product, the department in which the product belongs, the number of units in stock, and the price of each unit. This requirement has not changed. However, you will name your product class "Mobile Phone". I do not want the class to be named "Product". You will still have the same properties:

item number

name of the product

name of the product's department

number of units in stock

price of each unit

A+ Work


Write a method to computer the following series: m(i) = 1/2 + 2/3 + . . . + i/i + 1

Write a test program that displays the following table: I m(i) 1 0.5000 2 1.1667 . . . 19 16.4023 20 17.3546

Formulas to achieve the above are: sum += k / (k + 1.0);

This would be placed within a for loop in the method m(). The for loop header can be written: for (int k = 1; k <= i; k++) One thing to notice here is the table. The results are for the numbers 1-20.

A+ Work


Write a java program and pseudocode to read a number up to 15 digits long or a date (dd/mm/yyyy). The program should distinguish numbers from input date, and prints them in alphabetic spelling form. Example: for input 234334564456455 the output should be : 234,334,564,456,455 is two hundred thirty four trillion, and three hundred thirty four billion, and five hundred sixty four million, and four hundred fifty six thousand, and four hundred fifty five. For input 23/3/1996 it should print: March 23, 1996. Split your program into appropriate methods. Note 1: Use arrays of strings. Note 2: Avoid using excessive if-else statements

A+ Work


The task this week is to complete the following 2 structures using a linked list:
Stack
Queue
Assume the occurrence of a linked list node is represented by the object “Node” and its “Data” and “NextRef” attributes.
Part 1: Assume a “Head” node exists with the NextRef attribute pointing to the first node in the stack or being null if the stack is empty. Create pseudo code for the following 3 stack methods, showing the logic tied to the inverted list. Include a summary of these actions.
push( item )

pop( )

display( )
Part 2: Assume “Front” and “Rear” nodes exist with the “NextRef” attributes pointing to the first and last nodes of the queue or being null if the queue is empty. Create pseudo code for the following 3 queue methods, showing the logic tied to the inverted list. Include a summary of these actions.
enqueue( item )

dequeue( )

display( )
Deliverables:
Pseudo code implemented for both the stack and queue methods
Documented pseudo code

Add the completed pseudo code and discussion to the Key Assignment template Section 1: Lists, Stacks, and Queues.