[solved] – Question 87856

what is the difference between a digital and analog computer

Expert Answer


[solved] – Question 87908

Write the pseudocode that will produce a slip similar to the one illustrated at
the beginning of the question

Williams & Son
VAT nr: 0123456
Product Price
Screwdriver R 100
Super glue R 20
_______________________
Total: R120

Expert Answer


[solved] – Question 87959

Draw a flow diagram for an algorithm which calculates how many numbers 1,2,3…n have to be added to reach a total greater than 500. Output the answer n

Expert Answer


[solved] – Question 87960

draw a flow diagram for an algorithm which calculates how much money a student will need per week to buy a meal and two drinks each weekday. The user should be prompted to enter how much a meal costs, how much a drink costs, and then calculate and display the total required

Expert Answer


[solved] – Question 87979

Write the definition of a class Player containing:
An instance variable name of type String, initialized to the empty String.
An instance variable score of type int, initialized to zero.
A method called set_name that has one parameter, whose value it assigns to the instance variable name.
A method called set_score that has one parameter, whose value it assigns to the instance variable score.
A method called get_name that has no parameters and that returns the value of the instance variable name.
A method called get_score that has no parameters and that returns the value of the instance variable score.

Expert Answer


[solved] – Question 88030

1.A robot moves in a surface starting from the original point (0,0). The robot can move toward UP, DOWN, LEFT and RIGHT with a given steps. The trace of robot movement is shown as the following:
UP 5
DOWN 3
LEFT 3
RIGHT 2
The numbers after the direction are steps. Please write a python program to compute the distance from current position after a sequence of movement and original point.
Example:
If the following tuples are given as input to the program:
UP 5
DOWN 3
LEFT 3
XYZ 5
RIGHT 2
Then, the output of the program should be … (program should ignore XYZ)
The total number of steps moved by the robot is 13, and the distance moved is: 2.23

Expert Answer


[solved] – Question 88032

What is SQL, and is SQL a scripting language? What do you have to support your answer?

Expert Answer


[solved] – Question 8808

Write a test program in your favorite language that determines and output the precedence and associativity of its arithmatic and Boolean operators.

Expert Answer


[solved] – Question 88126

Hi. I need someone to do my online class for intro to programming with c++. It starts from may 13 and ends Aug 8. You are able to do it at your own pace. How much would it cost total? Thanks.

Expert Answer


[solved] – Question 88138

The BlueMont chain hotels have 4 different types of room:

The size of the hotel chains in different locations may be different in terms of the number of floors and the type and the number of rooms on each floor.

You are required to write a program that calculates the occupancy rate and the total hotel income for one night and displays this information as well as some other information described below.
The program starts by asking the location where this hotel chain is located and the number of floors in the hotel. The number of floors may not exceed 5. The User then enters the total number of rooms for each floor. The program then asks specifically the number of occupied rooms for each room type on this floor. The total number of rooms on each floor may not exceed 30 and the program should check that the total number of occupied rooms on each floor does not exceed the total of rooms on that floor.

Expert Answer