[solved] – Question 96522
Explanation:
Write a program for which the user has to log in before he/she can access it. The user supplies *two numbers* and the *sum of these numbers* (answer) himself. The program then shows whether the answer is *right* or *wrong*.
Expert Answer
[solved] – Question 96593
Write a program that accepts a time as an hour and minute. Add 15 minutes to the time, and output the result.
Expert Answer
[solved] – Question 96623
Write a program that asks the user to input their first and last names. The first prompt should state:
Expert Answer
[solved] – Question 9670
Program is used to help a man studying CS in college to maintain his study session – given this information that he do his college HWs based on:
1) time when he got the HW
2) priority (so, assume he needs to do task A before doing B, B before C, and A before C)
Given A B C … Z as Course A, Course B, and so on.
First line is describing NumberofCourse and NumberofPriority he has.
The output is a list of assignments he needs to do based on the problem.
Ex:
INPUT
7 7
A
B
C
D
E
F
G
A B
B A
C D
A E
E F
A G
C E
OUTPUT
A B E G C F D
Stuck in using vector, iterator and all of those stuffs. Help would really be appreciated. Thanks.
Expert Answer
[solved] – Question 9671
Python Programming Homework Help!!
Write a program that ask the user to imput the followings: number of shares, stock prices, and broker commission.
Here are the details of the purchase: number of shares that jim purchased was 1000, he paid 32.92 per share, selling price is 33.92, he paid stock broker commission 2% of the amount he recieved for stocks.
Display the following paid for stock,
the amount jim paid for the stock, commssion paid to broker when he bought the stock, the amount the stock was sold for, commission paid to broker for selling the stock, amount jim was left when he sold the stock and paid his broker (both times). if this amount is positive, jim makes a profit, if negative, then he lost money.
Expert Answer
[solved] – Question 96728
1. Throwing a ball. Below are all the steps you need to follow, but you should also add your own meaningful comments to the code as you write it.
a. Start a new file in the MATLAB Editor and save it as throwBall.m
b. At the top of the file, define some constants (you can pick your own variable names)
i. Initial height of ball at release = 1.5 m ii. Gravitational acceleration = 9.8 m/s2
iii. Velocity of ball at release = 4 m/s
iv. Angle of the velocity vector at time of release = 45 degrees
Expert Answer
[solved] – Question 9674
Consider the code
char
*a = “xyx”, *b = “xyz”;
if ( a==b )
printf(“The two strings have the same address!n”);
else
printf(“As I expected, the addresses are different.n”);
The expression a==b compares pointer values, not the contents of the strings.
Also, the expression a=b is an assignment of a pointer value, not an assignment
of a string. In this exercise we want to consider = and == with respect to their
use with structures. Suppose now that a and b are two structure variables of the
same type. The expression a=b is valid, but the expression a==b is not. The
operands of the == operator cannot be structures. Write a small test program to
see what your compiler does if you try to use the expression a==b, where a and
b are structures of the same type.
Expert Answer
[solved] – Question 9683
Design and implement a class called Box that contains instance
data that represents the height, width, and depth of the box. Also
include a boolean variable called full as instance data that represents
whether the box is full or not. Define the Box constructor
to accept and initialize the height, width, and depth of the
box. Each newly created Box is empty (the constructor should
initialize full to false). Include getter and setter methods for all
instance data. Include a toString method that returns a oneline
description of the box. Create a driver class called BoxTest,
whose main method instantiates and updates several Box objects
Expert Answer

